| 147 | } |
| 148 | |
| 149 | static 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 | |
| 156 | void AttachAttackScriptGetter(ASContext *as_context) { |
| 157 | as_context->RegisterObjectType("AttackScriptGetter", 0, asOBJ_REF, "Used to query information from an attack xml file"); |
nothing calls this directly
no test coverage detected