| 5572 | } |
| 5573 | |
| 5574 | void ASSendMessage(int target, int type, vec3 vec_a, vec3 vec_b) { |
| 5575 | Object* obj = the_scenegraph->GetObjectFromID(target); |
| 5576 | if (!obj) { |
| 5577 | std::string callstack = active_context_stack.top()->GetCallstack(); |
| 5578 | std::ostringstream oss; |
| 5579 | oss << "No object with id: " << target << "\n"; |
| 5580 | oss << "Called from:\n" |
| 5581 | << callstack; |
| 5582 | DisplayError("Error", oss.str().c_str()); |
| 5583 | return; |
| 5584 | } |
| 5585 | obj->ReceiveASVec3Message(type, vec_a, vec_b); |
| 5586 | } |
| 5587 | |
| 5588 | void ASSendMessageString(int type, std::string msg) { |
| 5589 | the_scenegraph->map_editor->ReceiveMessage(msg); |
nothing calls this directly
no test coverage detected