#pragma once #include "ee_economy/components/container.hpp" #include #include #include #include namespace ee_ecs { class World { private: entt::registry registry; std::unordered_map statesTable; void updateEnterprises(); public: // Run every registered system void update(); entt::entity registerState(const int16_t id, const ee_economy::Container &resources); entt::entity spawnEnterprise( const bool isBuilding, const ee_economy::ACTION_TYPE action, const entt::entity state, const ee_economy::EnterpriseDefaults &defaults ); entt::registry& getRegistry(); }; }