[Server] Add OnMpNumIncrement() script callback

This commit is contained in:
David Cernat 2017-04-05 01:18:42 +03:00
parent 3b34b9cd3e
commit 068835ba71
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -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>()}
};
};