mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-01-01 01:09:50 -06:00
Move mailbox closing to its script (#740)
This commit is contained in:
@@ -9,3 +9,11 @@ void MailBoxServer::OnUse(Entity* self, Entity* user) {
|
||||
args.InsertValue("state", value);
|
||||
GameMessages::SendUIMessageServerToSingleClient(user, user->GetSystemAddress(), "pushGameState", &args);
|
||||
}
|
||||
|
||||
void MailBoxServer::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) {
|
||||
if (args == "toggleMail") {
|
||||
AMFArrayValue args;
|
||||
args.InsertValue("visible", new AMFFalseValue());
|
||||
GameMessages::SendUIMessageServerToSingleClient(sender, sender->GetSystemAddress(), "ToggleMail", &args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user