Commit 62c984d5 authored by Ilya Prokhorov's avatar Ilya Prokhorov

Add remove cube test preparations

parent 9b8b0d2e
......@@ -50,7 +50,7 @@ void GLOBAL_fsegt_emscripten_gameLoop()
}
#endif
void MainGameController::startGameFromState(int startState)
void MainGameController::initializeGameFromState(int startState)
{
gameData = make_shared<FSEGTGameData>();
......@@ -63,7 +63,9 @@ void MainGameController::startGameFromState(int startState)
this->beforeStart();
this->switchToState(startState);
}
void MainGameController::startGameLoop() {
this->setIsRunning(true);
#ifndef __EMSCRIPTEN__
......@@ -71,7 +73,6 @@ void MainGameController::startGameFromState(int startState)
#else
emscripten_set_main_loop(GLOBAL_fsegt_emscripten_gameLoop, 60, 1);
#endif
}
void MainGameController::setIOSystem(shared_ptr<FSEGTIOSystem> ioSystem)
......
......@@ -38,11 +38,13 @@ public:
virtual void step();
void gameLoop();
void startGameFromState(int state);
void initializeGameFromState(int state);
void setIOSystem(shared_ptr<FSEGTIOSystem> ioSystem);
void switchToState(int state);
void startGameLoop();
protected:
shared_ptr<ResourcesLoader> resourcesLoader;
shared_ptr<ResourcesManager> resourcesManager;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment