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

Function AttachMessages

Source/Scripting/angelscript/asfuncs.cpp:5606–5612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5604}
5605
5606void AttachMessages(ASContext* context) {
5607 context->RegisterGlobalFunction("void SendMessage(int target, int type, vec3 vec_a, vec3 vec_b)", asFUNCTION(ASSendMessage), asCALL_CDECL);
5608 context->RegisterGlobalFunction("void SendMessage(int type, string msg)", asFUNCTION(ASSendMessageString), asCALL_CDECL);
5609 context->RegisterGlobalFunction("void SendGlobalMessage(string msg)", asFUNCTION(ASSendGlobalMessage), asCALL_CDECL);
5610 context->RegisterGlobalProperty("int _plant_movement_msg", (void*)&as_plant_movement_msg);
5611 context->RegisterGlobalProperty("int _editor_msg", (void*)&as_editor_msg);
5612}
5613
5614float ASatof(const std::string& str) {
5615 return (float)atof(str.c_str());

Callers 4

InitializeMethod · 0.85
InitializeMethod · 0.85
InitializeMethod · 0.85
InitializeMethod · 0.85

Calls 2

Tested by

no test coverage detected