2#include "dcon_generated.hpp"
11 char values[] = {char((v >> 16) & 0xFF), char((v >> 8) & 0xFF), char((v >> 0) & 0xFF)};
12 return std::string(values, values + 3);
22 dcon::national_event_id
id;
28 dcon::national_event_id
id;
35 dcon::provincial_event_id
id;
377 dcon::nation_id from);
constexpr uint8_t is_banned
constexpr uint8_t level_friendly
uint8_t decrease_level(uint8_t v)
constexpr uint8_t is_discredited
uint8_t decrease_priority(uint8_t v)
constexpr uint8_t priority_zero
constexpr uint8_t level_opposed
constexpr uint8_t level_neutral
constexpr uint8_t level_hostile
constexpr uint8_t priority_three
uint8_t increase_level(uint8_t v)
constexpr uint8_t priority_mask
constexpr uint8_t priority_one
constexpr uint8_t level_in_sphere
constexpr uint8_t level_mask
int32_t get_level(sys::state &state, dcon::nation_id gp, dcon::nation_id target)
uint8_t increase_priority(uint8_t v)
constexpr uint8_t priority_two
bool is_influence_level_greater_or_equal(int32_t l, int32_t r)
bool is_influence_level_greater(int32_t l, int32_t r)
constexpr uint8_t level_cordial
void remove_cores_from_owned(sys::state &state, dcon::nation_id n, dcon::national_identity_id tag)
void cleanup_crisis_peace_offer(sys::state &state, dcon::peace_offer_id peace)
float colonial_points_from_naval_bases(sys::state &state, dcon::nation_id n)
bool nth_crisis_war_goal_is_for_attacker(sys::state &state, int32_t index)
void make_uncivilized(sys::state &state, dcon::nation_id n)
status get_status(sys::state &state, dcon::nation_id n)
void accept_crisis_peace_offer(sys::state &state, dcon::nation_id from, dcon::nation_id to, dcon::peace_offer_id peace)
bool is_great_power(sys::state const &state, dcon::nation_id id)
void enact_reform(sys::state &state, dcon::nation_id source, dcon::reform_option_id r)
int32_t free_colonial_points(sys::state &state, dcon::nation_id n)
void break_alliance(sys::state &state, dcon::diplomatic_relation_id rel)
std::string int_to_tag(uint32_t v)
bool is_losing_colonial_race(sys::state &state, dcon::nation_id n)
void run_gc(sys::state &state)
bool can_release_as_vassal(sys::state const &state, dcon::nation_id n, dcon::national_identity_id releasable)
void adjust_prestige(sys::state &state, dcon::nation_id n, float delta)
bool has_political_reform_available(sys::state &state, dcon::nation_id n)
void destroy_diplomatic_relationships(sys::state &state, dcon::nation_id n)
void restore_unsaved_values(sys::state &state)
bool is_committed_in_crisis(sys::state const &state, dcon::nation_id n)
void daily_update_flashpoint_tension(sys::state &state)
bool is_involved_in_crisis(sys::state const &state, dcon::nation_id n)
float get_foreign_investment(sys::state &state, dcon::nation_id n)
void monthly_flashpoint_update(sys::state &state)
bool identity_has_holder(sys::state const &state, dcon::national_identity_id ident)
void make_vassal(sys::state &state, dcon::nation_id subject, dcon::nation_id overlord)
void update_administrative_efficiency(sys::state &state)
void release_vassal(sys::state &state, dcon::overlord_id rel)
bool are_allied(sys::state &state, dcon::nation_id a, dcon::nation_id b)
void reject_crisis_participation(sys::state &state)
@ immigration_colonization_focus
military::full_wg get_nth_crisis_war_goal(sys::state &state, int32_t index)
void release_nation_from(sys::state &state, dcon::national_identity_id liberated, dcon::nation_id from)
void update_pop_acceptance(sys::state &state, dcon::nation_id n)
int32_t num_crisis_wargoals(sys::state &state)
void get_active_political_parties(sys::state &state, dcon::nation_id n, std::vector< dcon::political_party_id > &parties)
float tariff_efficiency(sys::state &state, dcon::nation_id n)
void make_alliance(sys::state &state, dcon::nation_id a, dcon::nation_id b)
void adjust_foreign_investment(sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta)
void adjust_influence_with_overflow(sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta)
float used_colonial_points(sys::state &state, dcon::nation_id n)
float get_base_shares(sys::state &state, dcon::gp_relationship_id gp, float total_gain, int32_t total_influence_shares)
bool has_sphere_neighbour(sys::state &state, dcon::nation_id n, dcon::nation_id target)
bool can_expand_colony(sys::state &state, dcon::nation_id n)
void liberate_nation_from(sys::state &state, dcon::national_identity_id liberated, dcon::nation_id from)
void adjust_influence(sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta)
bool can_put_flashpoint_focus_in_state(sys::state &state, dcon::state_instance_id s, dcon::nation_id fp_nation)
void enact_issue(sys::state &state, dcon::nation_id source, dcon::issue_option_id i)
float diplomatic_points(sys::state const &state, dcon::nation_id n)
void update_influence(sys::state &state)
bool has_social_reform_available(sys::state &state, dcon::nation_id n)
void update_military_scores(sys::state &state)
float get_debt(sys::state &state, dcon::nation_id n)
float suppression_points(sys::state const &state, dcon::nation_id n)
float get_yesterday_income(sys::state &state, dcon::nation_id n)
void add_as_primary_crisis_defender(sys::state &state, dcon::nation_id n)
void cleanup_nation(sys::state &state, dcon::nation_id n)
dcon::nation_id get_nth_great_power(sys::state const &state, uint16_t n)
bool is_landlocked(sys::state &state, dcon::nation_id n)
void update_monthly_points(sys::state &state)
float prestige_score(sys::state const &state, dcon::nation_id n)
void add_as_primary_crisis_attacker(sys::state &state, dcon::nation_id n)
float colonial_points_from_technology(sys::state &state, dcon::nation_id n)
void generate_initial_state_instances(sys::state &state)
void update_cached_values(sys::state &state)
void make_substate(sys::state &state, dcon::nation_id subject, dcon::nation_id overlord)
float leadership_points(sys::state const &state, dcon::nation_id n)
float monthly_diplomatic_points(sys::state const &state, dcon::nation_id n)
float daily_research_points(sys::state &state, dcon::nation_id n)
bool has_decision_available(sys::state &state, dcon::nation_id n)
dcon::nation_id get_relationship_partner(sys::state const &state, dcon::diplomatic_relation_id rel_id, dcon::nation_id query)
void make_civilized(sys::state &state, dcon::nation_id n)
float get_bank_funds(sys::state &state, dcon::nation_id n)
uint32_t get_total_pop_in_owned_provinces(sys::state &state, dcon::nation_id n)
dcon::text_key name_from_tag(sys::state &state, dcon::national_identity_id tag)
void update_revanchism(sys::state &state)
void adjust_relationship(sys::state &state, dcon::nation_id a, dcon::nation_id b, float delta)
int64_t get_monthly_pop_increase_of_nation(sys::state &state, dcon::nation_id n)
bool sphereing_progress_is_possible(sys::state &state, dcon::nation_id n)
sys::date get_research_end_date(sys::state &state, dcon::technology_id tech_id, dcon::nation_id n)
uint32_t tag_to_int(char first, char second, char third)
void create_nation_based_on_template(sys::state &state, dcon::nation_id n, dcon::nation_id base)
void update_industrial_scores(sys::state &state)
void update_research_points(sys::state &state)
void perform_nationalization(sys::state &state, dcon::nation_id n)
void restore_state_instances(sys::state &state)
int32_t national_focuses_in_use(sys::state &state, dcon::nation_id n)
bool has_reform_available(sys::state &state, dcon::nation_id n)
float get_foreign_investment_as_gp(sys::state &state, dcon::nation_id n)
void update_great_powers(sys::state &state)
void cleanup_crisis(sys::state &state)
dcon::nation_id owner_of_pop(sys::state const &state, dcon::pop_id pop_ids)
dcon::technology_id current_research(sys::state const &state, dcon::nation_id n)
bool can_accumulate_influence_with(sys::state &state, dcon::nation_id gp, dcon::nation_id target, dcon::gp_relationship_id rel)
int32_t max_national_focuses(sys::state &state, dcon::nation_id n)
float get_treasury(sys::state &state, dcon::nation_id n)
void update_ui_rankings(sys::state &state)
void update_rankings(sys::state &state)
float tax_efficiency(sys::state &state, dcon::nation_id n)
int32_t max_colonial_points(sys::state &state, dcon::nation_id n)
float colonial_points_from_ships(sys::state &state, dcon::nation_id n)
void update_crisis(sys::state &state)
dcon::national_event_id id
dcon::issue_id issue_group
dcon::trigger_key condition
dcon::national_event_id id
dcon::trigger_key condition
dcon::trigger_key condition
dcon::provincial_event_id id
std::vector< fixed_event > on_surrender
std::vector< fixed_event > on_colony_to_state
std::vector< fixed_event > on_lost_great_nation
dcon::modifier_id overseas
std::vector< fixed_event > on_yearly_pulse
dcon::modifier_id total_occupation
dcon::modifier_id total_blockaded
std::vector< fixed_event > on_civilize
std::vector< fixed_event > on_debtor_default_small
std::vector< fixed_event > on_state_conquest
std::vector< fixed_event > on_election_started
dcon::modifier_id land_province
dcon::modifier_id easy_ai
tagged_vector< dcon::text_key, dcon::national_variable_id > variable_names
dcon::modifier_id very_hard_ai
std::vector< dcon::nation_id > nations_by_rank
dcon::modifier_id base_values
dcon::modifier_id generalised_debt_default
dcon::modifier_id coastal_sea
dcon::national_identity_id rebel_id
dcon::modifier_id very_hard_player
dcon::modifier_id hard_ai
std::vector< fixed_event > on_election_finished
dcon::modifier_id nationalism
bool is_global_flag_variable_set(dcon::global_flag_id id) const
std::vector< fixed_province_event > on_battle_won
dcon::modifier_id debt_default_to
dcon::modifier_id coastal
tagged_vector< dcon::text_key, dcon::global_flag_id > global_flag_variable_names
std::vector< fixed_event > on_colony_to_state_free_slaves
dcon::modifier_id hard_player
dcon::modifier_id very_easy_ai
dcon::modifier_id unciv_nation
std::vector< fixed_event > on_quarterly_pulse
dcon::modifier_id non_coastal
dcon::modifier_id in_bankrupcy
dcon::modifier_id disarming
dcon::modifier_id easy_player
int32_t num_allocated_global_flags
dcon::modifier_id bad_debter
void set_global_flag_variable(dcon::global_flag_id id, bool state)
tagged_vector< dcon::text_key, dcon::national_flag_id > flag_variable_names
dcon::modifier_id civ_nation
dcon::national_focus_id flashpoint_focus
dcon::national_focus_id secondary_factory_worker_focus
dcon::modifier_id plurality
dcon::modifier_id no_adjacent_controlled
std::vector< fixed_event > on_debtor_default
std::vector< fixed_event > on_crisis_declare_interest
dcon::national_focus_id clergy_focus
dcon::modifier_id sea_zone
dcon::national_focus_id aristocrat_focus
dcon::modifier_id blockaded
int32_t num_allocated_national_variables
int32_t num_allocated_national_flags
dcon::national_focus_id capitalist_focus
std::vector< triggered_modifier > triggered_modifiers
std::vector< fixed_event > on_my_factories_nationalized
dcon::modifier_id great_power
std::vector< fixed_election_event > on_election_tick
dcon::national_focus_id primary_factory_worker_focus
dcon::modifier_id war_exhaustion
dcon::national_focus_id soldier_focus
dcon::modifier_id infrastructure
dcon::modifier_id average_literacy
dcon::modifier_id second_power
dcon::modifier_id occupied
dcon::modifier_id very_easy_player
dcon::modifier_id has_siege
std::vector< fixed_event > on_new_great_nation
std::vector< fixed_event > on_debtor_default_second
std::vector< fixed_province_event > on_battle_lost
std::vector< dcon::bitfield_type > global_flag_variables
dcon::trigger_key trigger_condition
dcon::modifier_id linked_modifier