feat: update engine features
- WIP start/stop methods - Remove test module
This commit is contained in:
@@ -12,16 +12,32 @@
|
||||
class MscEngine : public IMscEngineModuleAPI
|
||||
{
|
||||
private:
|
||||
/// Loaded modules list
|
||||
using clock = std::chrono::steady_clock;
|
||||
|
||||
/// @brief Loaded modules list
|
||||
std::vector<std::shared_ptr<MscEngineModule>> _modules;
|
||||
|
||||
/// @brief Common event bus
|
||||
MscEventBus _bus;
|
||||
|
||||
/// @brief Is engine running rn
|
||||
bool _isRunning = false;
|
||||
|
||||
/// @brief Last update time
|
||||
clock::time_point _lastUpdate;
|
||||
|
||||
public:
|
||||
/// Actual version
|
||||
static uint16_t REV;
|
||||
|
||||
MscEngine(std::vector<std::shared_ptr<MscEngineModule>> modules);
|
||||
|
||||
/// @brief Start engine
|
||||
void start();
|
||||
|
||||
/// @brief Stop engine
|
||||
void stop();
|
||||
|
||||
MscEventBus &getBus() override;
|
||||
std::unordered_map<std::string, std::uint16_t> getLoadedModules() const override;
|
||||
MscEngineModule &getModule(const std::string &name) override;
|
||||
|
||||
Reference in New Issue
Block a user