6 uint32_t province_size = state.world.province_size();
7 uint32_t texture_size = province_size + 256 - province_size % 256;
9 std::vector<uint32_t> prov_color(texture_size * 2);
11 state.world.for_each_province([&](dcon::province_id prov_id) {
13 auto nation = fat_id.get_nation_from_province_ownership();
15 if(nation == state.local_player_nation) {
21 stripe_color = 0x005500;
25 stripe_color = 0x00FF00;
32 stripe_color = 0x005500;
38 prov_color[i] = color;
39 prov_color[i + texture_size] = stripe_color;
pop_satisfaction_wrapper_fat fatten(data_container const &c, pop_satisfaction_wrapper_id id) noexcept
bool has_naval_base_being_built(sys::state &state, dcon::province_id id)
bool can_build_naval_base(sys::state &state, dcon::province_id id, dcon::nation_id n)
constexpr uint16_t to_map_id(dcon::province_id id)
uint32_t pack_color(float r, float g, float b)
std::vector< uint32_t > naval_map_from(sys::state &state)