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

Function AttachLevelSet

Source/Game/levelset_script.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void AttachLevelSet(ASContext* as_context) {
77 as_context->RegisterObjectType("LevelSetReader", 0, asOBJ_REF);
78 as_context->RegisterObjectBehaviour("LevelSetReader", asBEHAVE_FACTORY, "LevelSetReader@ f(const string &in path)", asFUNCTION(LevelSetReader_Factory), asCALL_CDECL);
79 as_context->RegisterObjectBehaviour("LevelSetReader", asBEHAVE_FACTORY, "LevelSetReader@ f()", asFUNCTION(LevelSetReader_DefaultFactory), asCALL_CDECL);
80 as_context->RegisterObjectBehaviour("LevelSetReader", asBEHAVE_ADDREF, "void f()", asMETHOD(LevelSetReader, AddRef), asCALL_THISCALL);
81 as_context->RegisterObjectBehaviour("LevelSetReader", asBEHAVE_RELEASE, "void f()", asMETHOD(LevelSetReader, Release), asCALL_THISCALL);
82 as_context->RegisterObjectMethod("LevelSetReader", "bool Next(string &out str)", asMETHOD(LevelSetReader, Next), asCALL_THISCALL);
83 as_context->DocsCloseBrace();
84}

Callers 2

InitializeMethod · 0.85
InitializeMethod · 0.85

Calls 4

RegisterObjectTypeMethod · 0.80
DocsCloseBraceMethod · 0.80
RegisterObjectMethodMethod · 0.45

Tested by

no test coverage detected