[Server] Add OnMpNumIncrement() script callback

0.6.1
David Cernat 8 years ago
parent 3b34b9cd3e
commit 068835ba71

@ -303,6 +303,7 @@ void Networking::setCurrentMpNum(int value)
int Networking::getNextMpNum()
{
currentMpNum++;
Script::Call<Script::CallbackIdentity("OnMpNumIncrement")>(currentMpNum);
return currentMpNum;
}

@ -130,7 +130,8 @@ public:
{"OnContainer", Function<void, unsigned short, const char*>()},
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}
{"OnGUIAction", Function<void, unsigned short, int, const char*>()},
{"OnMpNumIncrement", Function<void, int>()}
};
};

Loading…
Cancel
Save