MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / StartNewModule

Method StartNewModule

external/as_add_on/scriptbuilder/scriptbuilder.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49int CScriptBuilder::StartNewModule(asIScriptEngine *inEngine, const char *moduleName)
50{
51 if(inEngine == 0 ) return -1;
52
53 engine = inEngine;
54 module = inEngine->GetModule(moduleName, asGM_ALWAYS_CREATE);
55 if( module == 0 )
56 return -1;
57
58 ClearAll();
59
60 return 0;
61}
62
63asIScriptEngine *CScriptBuilder::GetEngine()
64{

Callers 1

initMethod · 0.80

Calls 1

GetModuleMethod · 0.80

Tested by

no test coverage detected