#pragma once #include "ee_economy/components/container.hpp" #include #include #include #include namespace ee_ecs { class world { private: entt::registry registry; std::unordered_map states_table; void update_enterprises(); public: // Run every registered system void update(); entt::entity register_state(const int16_t id, const ee_economy::container &resources); entt::entity spawn_enterprise( const bool is_building, const ee_economy::ACTION_TYPE action, const entt::entity state, const ee_economy::enterprise_defaults &defaults ); entt::registry& get_registry(); }; }