19#include <fmt/format.h>
26#include <entt/entt.hpp>
41 std::map<std::string, entt::entity>
goods;
43 std::map<std::string, entt::entity>
recipes;
46 std::map<std::string, entt::entity>
fields;
48 std::map<std::string, entt::entity>
planets;
52 std::map<std::string, entt::entity>
cities;
63 std::unique_ptr<cqsp::common::util::IRandom>
random;
78struct fmt::formatter<entt::entity> : formatter<std::string> {
79 template <
typename FormatContext>
80 constexpr auto format(entt::entity entity, FormatContext& ctx)
const {
81 return formatter<std::string>::format(std::to_string((uint64_t)entity), ctx);
Definition: universe.h:34
void DisableTick()
Definition: universe.h:58
std::unique_ptr< cqsp::common::util::IRandom > random
Definition: universe.h:63
std::map< std::string, entt::entity > recipes
Definition: universe.h:43
std::vector< entt::entity > consumergoods
Definition: universe.h:42
int GetDate()
Definition: universe.h:62
std::map< std::string, entt::entity > planets
Definition: universe.h:48
std::map< std::string, entt::entity > terrain_data
Definition: universe.h:44
std::map< int, entt::entity > province_colors
Definition: universe.h:53
std::map< std::string, entt::entity > goods
Definition: universe.h:41
std::map< std::string, entt::entity > cities
Definition: universe.h:52
std::map< std::string, entt::entity > countries
Definition: universe.h:50
components::StarDate date
Definition: universe.h:39
void ToggleTick()
Definition: universe.h:60
Universe()
Definition: universe.cpp:25
bool ToTick()
Definition: universe.h:59
std::map< std::string, entt::entity > fields
Definition: universe.h:46
double tick_fraction
What is the current fraction of the wait of the tick we are processing
Definition: universe.h:69
std::map< std::string, systems::names::NameGenerator > name_generators
Definition: universe.h:45
std::map< entt::entity, int > colors_province
Definition: universe.h:54
std::map< std::string, entt::entity > provinces
Definition: universe.h:51
std::map< std::string, entt::entity > time_zones
Definition: universe.h:49
std::map< std::string, entt::entity > technologies
Definition: universe.h:47
entt::entity sun
Definition: universe.h:55
void EnableTick()
Definition: universe.h:57
bool to_tick
Definition: universe.h:72
std::string uuid
Definition: universe.h:64
Holds and calculates the tick that is on going. Date is the number of hours that has been ongoing sin...
Definition: stardate.h:45
int GetDate()
Definition: stardate.h:56
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21