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

Function ASSendMessage

Source/Scripting/angelscript/asfuncs.cpp:5574–5586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5572}
5573
5574void 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
5588void ASSendMessageString(int type, std::string msg) {
5589 the_scenegraph->map_editor->ReceiveMessage(msg);

Callers

nothing calls this directly

Calls 7

GetObjectFromIDMethod · 0.80
GetCallstackMethod · 0.80
topMethod · 0.80
DisplayErrorFunction · 0.50
c_strMethod · 0.45
strMethod · 0.45
ReceiveASVec3MessageMethod · 0.45

Tested by

no test coverage detected