Files
Dawn/src/engine/Engine.cpp
T
2025-09-20 17:57:56 -05:00

33 lines
567 B
C++

// Copyright (c) 2025 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "Engine.hpp"
using namespace Dawn;
Engine::Engine() :
time(),
console(),
display(*this),
input(*this)
{
console.registerCommand("exit", [this](auto console, auto args) {
this->exitRequested = true;
});
}
bool_t Engine::isExitRequested() const {
return this->exitRequested;
}
void Engine::update(void) {
time.update();
input.update();
console.update();
display.update();
}
Engine::~Engine() {
}