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

Method RegisterToScript

Source/Objects/pathpointobject.cpp:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void PathPointObject::RegisterToScript(ASContext* as_context) {
156 as_context->RegisterObjectType("PathPointObject", 0, asOBJ_REF | asOBJ_NOCOUNT);
157 as_context->RegisterObjectMethod("PathPointObject",
158 "int NumConnectionIDs()",
159 asFUNCTION(ASNumConnectionIDs), asCALL_CDECL_OBJFIRST);
160 as_context->RegisterObjectMethod("PathPointObject",
161 "int GetConnectionID(int which)",
162 asFUNCTION(ASGetConnectionID), asCALL_CDECL_OBJFIRST);
163 as_context->DocsCloseBrace();
164}
165
166void PathPointObject::Draw() {
167 if (g_debug_runtime_disable_pathpoint_object_draw) {

Callers

nothing calls this directly

Calls 3

RegisterObjectTypeMethod · 0.80
DocsCloseBraceMethod · 0.80
RegisterObjectMethodMethod · 0.45

Tested by

no test coverage detected