mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-24 21:45:31 -04:00
[Server] Add OnServerPostInit callback
This commit is contained in:
parent
9992058942
commit
32284787de
@ -109,6 +109,7 @@ public:
|
||||
static constexpr ScriptCallbackData callbacks[]{
|
||||
{"Main", Function<int, int, int>()},
|
||||
{"OnServerInit", Function<void>()},
|
||||
{"OnServerPostInit", Function<void>()},
|
||||
{"OnServerExit", Function<void, bool>()},
|
||||
{"OnPlayerConnect", Function<bool, unsigned short>()},
|
||||
{"OnPlayerDisconnect", Function<void, unsigned short>()},
|
||||
|
@ -251,6 +251,8 @@ int main(int argc, char *argv[])
|
||||
networking.getMasterClient()->Start();
|
||||
}
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnServerPostInit")>();
|
||||
|
||||
int code = networking.mainLoop();
|
||||
|
||||
RakNet::RakPeerInterface::DestroyInstance(peer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user