mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
[Server] Add OnMpNumIncrement() script callback
This commit is contained in:
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…
x
Reference in New Issue
Block a user