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

Function ccAddExternalScriptObject

Engine/script/script_runtime.cpp:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool ccAddExternalScriptObject(const String &name, void *ptr, IScriptObject *manager)
63{
64 return simp.Add(name, RuntimeScriptValue().SetScriptObject(ptr, manager), nullptr) != UINT32_MAX;
65}
66
67bool ccAddExternalScriptObjectHandle(const String &name, void *ptr)
68{

Callers 2

RegisterStaticArraysFunction · 0.85
RegisterStaticObjectsFunction · 0.85

Calls 2

RuntimeScriptValueClass · 0.70
AddMethod · 0.45

Tested by

no test coverage detected