This commit is contained in:
2025-09-19 23:20:55 -05:00
parent 96fcddea30
commit 1d16c0ae68
12 changed files with 256 additions and 39 deletions

View File

@@ -6,18 +6,39 @@
#pragma once
#include "time/Time.hpp"
#include "console/Console.hpp"
#include "display/Display.hpp"
namespace Dawn {
struct Engine {
private:
static std::shared_ptr<Engine> instance;
bool_t exitRequested = false;
public:
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();
/**
* Constructor for the Dawn engine.
*/
Engine();
/**
* Check if an exit has been requested.
*
* @return True if an exit has been requested, false otherwise.
*/
bool_t isExitRequested() const;
/**
* Update the engine state.
*/