MCPcopy Create free account
hub / github.com/anjo76/angelscript / StartNewModule

Method StartNewModule

sdk/add_on/scriptbuilder/scriptbuilder.cpp:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

GetControllerScriptMethod · 0.80
CompileScriptFunction · 0.80
CompileScriptFunction · 0.80
CompileScriptFunction · 0.80
TestFunction · 0.80
TestExecuteScriptFunction · 0.80
TestFunction · 0.80

Calls 1

GetModuleMethod · 0.45

Tested by 3

TestFunction · 0.64
TestExecuteScriptFunction · 0.64
TestFunction · 0.64