8 auto owners = state.world.province_get_nation_from_province_ownership(ids);
9 auto owner_cap = state.world.nation_get_capital(owners);
10 return (state.world.province_get_continent(ids) != state.world.province_get_continent(owner_cap)) &&
11 (state.world.province_get_connected_region_id(ids) != state.world.province_get_connected_region_id(owner_cap));
16 int32_t last = state.province_definitions.first_sea_province.index();
17 for(int32_t i = 0; i < last; ++i) {
18 dcon::province_id pid{dcon::province_id::value_base_t(i)};
25 int32_t last = state.province_definitions.first_sea_province.index();
26 ve::execute_serial<dcon::province_id>(
uint32_t(last), func);
31 int32_t first = state.province_definitions.first_sea_province.index();
32 for(int32_t i = first; i < int32_t(state.world.province_size()); ++i) {
33 dcon::province_id pid{dcon::province_id::value_base_t(i)};
40 auto d = state.world.state_instance_get_definition(s);
41 auto o = state.world.state_instance_get_nation_from_state_ownership(s);
42 for(
auto p : state.world.state_definition_get_abstract_state_membership(d)) {
43 if(p.get_province().get_nation_from_province_ownership() == o) {
44 func(p.get_province().id);
bool is_overseas(sys::state const &state, dcon::province_id ids)
void ve_for_each_land_province(sys::state &state, F const &func)
void for_each_province_in_state_instance(sys::state &state, dcon::state_instance_id s, F const &func)
void for_each_sea_province(sys::state &state, F const &func)
void for_each_land_province(sys::state &state, F const &func)