forked from mirror/openmw-tes3mp
[Server] Add OnServerPostInit callback
This commit is contained in:
parent
9992058942
commit
32284787de
2 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,7 @@ public:
|
||||||
static constexpr ScriptCallbackData callbacks[]{
|
static constexpr ScriptCallbackData callbacks[]{
|
||||||
{"Main", Function<int, int, int>()},
|
{"Main", Function<int, int, int>()},
|
||||||
{"OnServerInit", Function<void>()},
|
{"OnServerInit", Function<void>()},
|
||||||
|
{"OnServerPostInit", Function<void>()},
|
||||||
{"OnServerExit", Function<void, bool>()},
|
{"OnServerExit", Function<void, bool>()},
|
||||||
{"OnPlayerConnect", Function<bool, unsigned short>()},
|
{"OnPlayerConnect", Function<bool, unsigned short>()},
|
||||||
{"OnPlayerDisconnect", Function<void, unsigned short>()},
|
{"OnPlayerDisconnect", Function<void, unsigned short>()},
|
||||||
|
|
|
@ -251,6 +251,8 @@ int main(int argc, char *argv[])
|
||||||
networking.getMasterClient()->Start();
|
networking.getMasterClient()->Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Script::Call<Script::CallbackIdentity("OnServerPostInit")>();
|
||||||
|
|
||||||
int code = networking.mainLoop();
|
int code = networking.mainLoop();
|
||||||
|
|
||||||
RakNet::RakPeerInterface::DestroyInstance(peer);
|
RakNet::RakPeerInterface::DestroyInstance(peer);
|
||||||
|
|
Loading…
Reference in a new issue