Lua: add onShutdown

This commit is contained in:
Lion Kortlepel
2021-07-11 20:34:18 +02:00
parent 0acbb70d10
commit d18afdf84b

View File

@@ -48,6 +48,7 @@ int main(int argc, char** argv) {
bool Shutdown = false;
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
Application::RegisterShutdownHandler([] { TriggerLuaEvent("onShutdown", false, nullptr, {}, true); });
TServer Server(argc, argv);
TConfig Config;