| 47 | } |
| 48 | |
| 49 | void Application::Shutdown() { |
| 50 | if (gameWorld->IsGameStarted()) { |
| 51 | gameWorld->StopGame(); |
| 52 | } |
| 53 | |
| 54 | sandbox = LuaCpp::Selector(); |
| 55 | |
| 56 | BE1::prefabManager.Shutdown(); |
| 57 | |
| 58 | BE1::GameWorld::DestroyInstance(gameWorld, true); |
| 59 | |
| 60 | BE1::GameSettings::Shutdown(); |
| 61 | |
| 62 | BE1::cmdSystem.RemoveCommand("map"); |
| 63 | } |
| 64 | |
| 65 | bool Application::LoadAppScript(const char *sandboxName) { |
| 66 | state = &gameWorld->GetLuaVM().State(); |
no test coverage detected