This commit is contained in:
2025-09-20 17:57:56 -05:00
parent a896b772fb
commit 90c3b6149e
16 changed files with 469 additions and 74 deletions

View File

@@ -7,11 +7,12 @@
#include "time/Time.hpp"
#include "console/Console.hpp"
#include "display/Display.hpp"
#include "input/Input.hpp"
namespace Dawn {
struct Engine {
private:
static std::shared_ptr<Engine> instance;
static Engine* instance;
bool_t exitRequested = false;
@@ -19,13 +20,7 @@ namespace Dawn {
Time time;
Console console;
Display display;
/**
* Get the singleton instance of the engine.
*
* @return A shared pointer to the engine instance.
*/
static std::shared_ptr<Engine> getInstance();
Input input;
/**
* Constructor for the Dawn engine.