More cleanup complete

This commit is contained in:
2024-09-08 15:30:41 -05:00
parent cffe7f73a2
commit 856bc306fe
29 changed files with 94 additions and 460 deletions

View File

@ -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() {

View File

@ -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.
*