forked from mirror/openmw-tes3mp
[Server] Add OnMpNumIncrement() script callback
This commit is contained in:
parent
3b34b9cd3e
commit
068835ba71
2 changed files with 3 additions and 1 deletions
|
@ -303,6 +303,7 @@ void Networking::setCurrentMpNum(int value)
|
||||||
int Networking::getNextMpNum()
|
int Networking::getNextMpNum()
|
||||||
{
|
{
|
||||||
currentMpNum++;
|
currentMpNum++;
|
||||||
|
Script::Call<Script::CallbackIdentity("OnMpNumIncrement")>(currentMpNum);
|
||||||
return currentMpNum;
|
return currentMpNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,8 @@ public:
|
||||||
{"OnContainer", Function<void, unsigned short, const char*>()},
|
{"OnContainer", Function<void, unsigned short, const char*>()},
|
||||||
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
|
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
|
||||||
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
|
{"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…
Reference in a new issue