22#include <entt/entt.hpp>
75 operator int()
const {
return toInt(
r,
g,
b); }
85 int r = (color & 0xFF0000) >> 16;
86 int g = (color & 0x00FF00) >> 8;
87 int b = (color & 0x0000FF);
entt::entity time_zone
Definition: surface.h:57
std::vector< entt::entity > docked_ships
Definition: surface.h:97
If people are living on a planet or not
Definition: surface.h:32
std::vector< entt::entity > settlements
Definition: surface.h:33
ProvinceColor(int r, int g, int b)
Definition: surface.h:71
static int toInt(int r, int g, int b)
Definition: surface.h:77
int r
Definition: surface.h:67
static ProvinceColor fromInt(int color)
Definition: surface.h:84
int g
Definition: surface.h:68
int b
Definition: surface.h:69
bool operator==(const ProvinceColor &other) const
Definition: surface.h:73
std::vector< entt::entity > cities
Definition: surface.h:62
std::vector< entt::entity > neighbors
Definition: surface.h:63
entt::entity country
Definition: surface.h:61
std::string province_map
Definition: surface.h:40
std::string province_texture
Definition: surface.h:38
std::string province_definitions
Definition: surface.h:41
std::string adjacencies
Definition: surface.h:42
A settlement is a place where a population can live in, such as a city or a space station
Definition: surface.h:48
std::vector< entt::entity > population
Definition: surface.h:49
int64_t seed
Definition: surface.h:26
double time_diff
Definition: surface.h:53