| 5604 | } |
| 5605 | |
| 5606 | void 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 | |
| 5614 | float ASatof(const std::string& str) { |
| 5615 | return (float)atof(str.c_str()); |
no test coverage detected