MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AttachScriptableUI

Function AttachScriptableUI

Source/GUI/scriptable_ui.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49namespace {
50void AttachScriptableUI(ASContext* as_context, ScriptableUI* sui) {
51 as_context->RegisterObjectType("ScriptableUI", 0, asOBJ_REF | asOBJ_NOHANDLE);
52 as_context->RegisterObjectMethod("ScriptableUI", "void SendCallback(const string &in)", asMETHOD(ScriptableUI, SendCallback), asCALL_THISCALL);
53 as_context->DocsCloseBrace();
54 as_context->RegisterGlobalProperty("ScriptableUI this_ui", sui);
55}
56} // Anonymous namespace
57
58void ScriptableUI::Initialize(const Path& script_path, const ASData& as_data, bool debug_break) {

Callers 1

InitializeMethod · 0.85

Calls 4

RegisterObjectTypeMethod · 0.80
DocsCloseBraceMethod · 0.80
RegisterObjectMethodMethod · 0.45

Tested by

no test coverage detected