| 32 | } |
| 33 | |
| 34 | void Application::Init() { |
| 35 | BE1::cmdSystem.AddCommand("map", Cmd_Map); |
| 36 | |
| 37 | BE1::prefabManager.Init(); |
| 38 | |
| 39 | BE1::GameSettings::Init(); |
| 40 | |
| 41 | gameWorld = (BE1::GameWorld *)BE1::GameWorld::CreateInstance(); |
| 42 | gameWorld->SetDebuggable(true); |
| 43 | gameWorld->GetLuaVM().RegisterEngineModuleCallback(RegisterApp); |
| 44 | gameWorld->GetLuaVM().InitEngineModule(gameWorld); |
| 45 | |
| 46 | BE1::GameSettings::LoadSettings(gameWorld); |
| 47 | } |
| 48 | |
| 49 | void Application::Shutdown() { |
| 50 | if (gameWorld->IsGameStarted()) { |
no test coverage detected