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

Function ASLoad

Source/Game/attackscript.cpp:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static void ASLoad(AttackScriptGetter *asg, const std::string &path) {
150 if (!asg->Load(path)) {
151 std::string callstack = active_context_stack.top()->GetCallstack();
152 FatalError("Error", "Attempting to load attack with empty path\n Called from:\n%s", callstack.c_str());
153 }
154}
155
156void AttachAttackScriptGetter(ASContext *as_context) {
157 as_context->RegisterObjectType("AttackScriptGetter", 0, asOBJ_REF, "Used to query information from an attack xml file");

Callers

nothing calls this directly

Calls 5

GetCallstackMethod · 0.80
topMethod · 0.80
FatalErrorFunction · 0.50
LoadMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected