22#include <entt/entt.hpp>
72 std::vector<std::pair<entt::entity, ZoningAllocation>>
zoning;
84 operator int()
const {
return toInt(
r,
g,
b); }
94 int r = (color & 0xFF0000) >> 16;
95 int g = (color & 0x00FF00) >> 8;
96 int b = (color & 0x0000FF);
Definition: surface.h:103
entt::entity province
Definition: surface.h:34
entt::entity time_zone
Definition: surface.h:59
Definition: surface.h:105
std::vector< entt::entity > docked_ships
Definition: surface.h:106
static int toInt(int r, int g, int b)
Definition: surface.h:86
ProvinceColor(int r, int g, int b)
Definition: surface.h:80
bool operator==(const ProvinceColor &other) const
Definition: surface.h:82
int r
Definition: surface.h:76
int g
Definition: surface.h:77
static ProvinceColor fromInt(int color)
Definition: surface.h:93
int b
Definition: surface.h:78
std::vector< entt::entity > neighbors
Definition: surface.h:71
entt::entity country
Definition: surface.h:68
std::vector< std::pair< entt::entity, ZoningAllocation > > zoning
Definition: surface.h:72
std::vector< entt::entity > cities
Definition: surface.h:70
entt::entity planet
Definition: surface.h:69
std::string province_definitions
Definition: surface.h:40
std::string province_map
Definition: surface.h:39
std::string adjacencies
Definition: surface.h:41
Definition: surface.h:109
int resources
Definition: surface.h:111
int science
Definition: surface.h:110
A settlement is a place where a population can live in, such as a city or a space station
Definition: surface.h:47
std::vector< std::pair< entt::entity, double > > job_demands
Definition: surface.h:49
std::vector< entt::entity > population
Definition: surface.h:48
The list of cities and settlements that are on a city
Definition: surface.h:28
std::vector< entt::entity > settlements
Definition: surface.h:29
std::vector< entt::entity > provinces
Definition: surface.h:30
double time_diff
Definition: surface.h:55
uint32_t allocated
Definition: surface.h:63
uint32_t filled
Definition: surface.h:64