feat: update engine features
- WIP start/stop methods - Remove test module
This commit is contained in:
@@ -49,11 +49,38 @@ MscEngine::MscEngine(std::vector<std::shared_ptr<MscEngineModule>> modules)
|
||||
std::to_string(current_rev));
|
||||
}
|
||||
}
|
||||
|
||||
module.get()->onInitialize(*this);
|
||||
}
|
||||
|
||||
_modules = std::move(modules);
|
||||
}
|
||||
|
||||
void MscEngine::start()
|
||||
{
|
||||
if (_isRunning)
|
||||
return;
|
||||
|
||||
_isRunning = true;
|
||||
_lastUpdate = clock::now();
|
||||
|
||||
double accumulator = 0.0;
|
||||
constexpr double fixedDt = 1.0 / 30.0;
|
||||
|
||||
while (_isRunning)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
void MscEngine::stop()
|
||||
{
|
||||
if (!_isRunning)
|
||||
return;
|
||||
|
||||
_isRunning = false;
|
||||
}
|
||||
|
||||
MscEventBus &MscEngine::getBus()
|
||||
{
|
||||
return _bus;
|
||||
|
||||
Reference in New Issue
Block a user