Add initial simulator base

This commit is contained in:
2024-08-19 01:41:51 +02:00
parent a6c0f1c406
commit 895aa66b82
2 changed files with 58 additions and 2 deletions
+24 -1
View File
@@ -1 +1,24 @@
#pragma once
#pragma once
#include "UI.hpp"
#include "timer.hpp"
class SimulatorBase {
public:
SimulatorBase(std::string name);
void add_UI_item(UI_item* item);
json get_UI_items() const;
UI_item* get_UI_item(std::string id) const;
void run();
virtual void timer() {};
protected:
std::string p_name;
std::vector<UI_item*> p_UI_items;
std::map<std::string, UI_item*> p_UI_items_map;
Timer p_timer;
};