MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / Init

Method Init

Source/Player/Application.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void 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
49void Application::Shutdown() {
50 if (gameWorld->IsGameStarted()) {

Callers 2

InitInstanceFunction · 0.45
InitDisplayFunction · 0.45

Calls 5

CreateInstanceFunction · 0.85
AddCommandMethod · 0.80
SetDebuggableMethod · 0.80
InitEngineModuleMethod · 0.80

Tested by

no test coverage detected