#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 p_UI_items; std::map p_UI_items_map; Timer p_timer; };