More cleanup complete
This commit is contained in:
@ -18,8 +18,8 @@ void Game::init() {
|
||||
inputManager.init(shared_from_this());
|
||||
saveManager.init(shared_from_this());
|
||||
|
||||
auto initialScene = GameInit::getInitialScene();
|
||||
nextFrameScene = std::make_shared<Scene>(shared_from_this(), initialScene);
|
||||
auto initialScene = Scene::getInitialScene();
|
||||
this->nextFrameScene = std::make_shared<Scene>(shared_from_this(), initialScene);
|
||||
}
|
||||
|
||||
void Game::update() {
|
||||
|
@ -31,6 +31,13 @@ namespace Dawn {
|
||||
TimeoutEvent onTimeout;
|
||||
IntervalEvent onInterval;
|
||||
|
||||
/**
|
||||
* Returns the initial scene for the game.
|
||||
*
|
||||
* @return Initial scene function.
|
||||
*/
|
||||
static const std::function<void(Scene&)> getInitialScene();
|
||||
|
||||
/**
|
||||
* Constructs a scene object.
|
||||
*
|
||||
|
Reference in New Issue
Block a user