Display
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user