MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / ccAddExternalScriptObjectHandle

Function ccAddExternalScriptObjectHandle

Engine/script/script_runtime.cpp:67–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool ccAddExternalScriptObjectHandle(const String &name, void *ptr)
68{
69 return simp.Add(name, RuntimeScriptValue().SetScriptObject(ptr, &GlobalStaticManager), nullptr, kScValHint_Handle) != UINT32_MAX;
70}
71
72bool ccAddExternalScriptSymbol(const String &name, const RuntimeScriptValue &prval, RuntimeScript *script)
73{

Callers 8

InitAndRegisterDialogsFunction · 0.85
InitAndRegisterGUIFunction · 0.85
InitAndRegisterInvItemsFunction · 0.85
export_all_gui_controlsFunction · 0.85
load_new_roomFunction · 0.85

Calls 2

RuntimeScriptValueClass · 0.70
AddMethod · 0.45

Tested by

no test coverage detected