4#include "dcon_generated.hpp"
30static_assert(
sizeof(building_information) == 104);
43static_assert(
sizeof(building_information) ==
76 return "railroad_level";
80 return "naval_base_level";
84 return "university_level";
102static_assert(
sizeof(global_economy_state) ==
116constexpr inline dcon::commodity_id
money(0);
160 dcon::state_instance_id s,
174 ve::tagged_vector<dcon::market_id> s,
385 float total_relevant_population
403 dcon::factory_type_id factory_type
409 dcon::factory_type_id factory_type
421 ve::tagged_vector<dcon::market_id> markets,
422 ve::tagged_vector<dcon::nation_id>
nations,
427 dcon::market_id market,
float estimate_reparations_income(sys::state &state, dcon::nation_id n)
bool state_contains_factory(sys::state &state, dcon::state_instance_id s, dcon::factory_type_id ft)
void initialize(sys::state &state)
float global_market_commodity_daily_increase(sys::state &state, dcon::commodity_id c)
constexpr float factory_pworkers_cut
float factory_input_total_cost(sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type)
float factory_throughput_multiplier(sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n, dcon::province_id p, dcon::state_instance_id s)
float estimate_war_subsidies(sys::state &state, dcon::nation_fat_id target, dcon::nation_fat_id source)
float factory_max_production_scale(sys::state const &state, dcon::factory_id fac, float mobilization_impact, bool occupied)
dcon::modifier_id get_province_immigrator_modifier(sys::state &state)
constexpr float subsistence_score_life
constexpr float factory_owners_cut
float factory_min_e_input_available(sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type)
float estimate_subsidy_spending(sys::state &state, dcon::nation_id n)
float factory_type_output_cost(sys::state &state, dcon::nation_id n, dcon::market_id m, dcon::factory_type_id factory_type)
trade_and_tariff explain_trade_route_commodity(sys::state &state, dcon::trade_route_id trade_route, dcon::commodity_id cid)
float government_consumption(sys::state &state, dcon::nation_id n, dcon::commodity_id c)
float estimate_social_spending(sys::state &state, dcon::nation_id n)
float estimate_subject_payments_paid(sys::state &state, dcon::nation_id n)
std::vector< full_construction_state > estimate_private_investment_upgrade(sys::state &state, dcon::nation_id nid)
construction_status province_building_construction(sys::state &state, dcon::province_id p, province_building_type t)
float rgo_total_effective_size(sys::state &state, dcon::nation_id n, dcon::province_id p)
float nation_total_imports(sys::state &state, dcon::nation_id n)
float factory_e_input_total_cost(sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type)
float consumption(sys::state &state, dcon::market_id s, dcon::commodity_id c)
float factory_desired_raw_profit(dcon::factory_id fac, float spendings)
bool state_contains_constructed_factory(sys::state &state, dcon::state_instance_id s, dcon::factory_type_id ft)
float estimate_construction_spending_from_budget(sys::state &state, dcon::nation_id n, float current_budget)
bool has_building(sys::state const &state, dcon::state_instance_id si, dcon::factory_type_id fac)
float factory_max_employment(sys::state const &state, dcon::factory_id f)
void update_factory_employment(sys::state &state)
constexpr float merchant_cut_foreign
bool is_bankrupt_debtor_to(sys::state &state, dcon::nation_id debt_holder, dcon::nation_id debtor)
int32_t state_factory_count(sys::state &state, dcon::state_instance_id sid, dcon::nation_id n)
float estimate_diplomatic_expenses(sys::state &state, dcon::nation_id n)
std::string_view province_building_type_get_name(economy::province_building_type v)
float estimate_diplomatic_balance(sys::state &state, dcon::nation_id n)
void prune_factories(sys::state &state)
float supply(sys::state &state, dcon::market_id s, dcon::commodity_id c)
constexpr uint32_t gdp_history_length
float estimate_pop_payouts_by_income_type(sys::state &state, dcon::nation_id n, culture::income_type in)
float estimate_domestic_investment(sys::state &state, dcon::nation_id n)
constexpr float subsistence_score_total
int32_t previous_price_record_index(sys::state &state)
rgo_workers_breakdown rgo_relevant_population(sys::state &state, dcon::province_id p, dcon::nation_id n)
constexpr float artisans_greed
float factory_min_input_available(sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type)
float farmer_min_wage(sys::state &state, dcon::market_id m, float min_wage_factor)
float factory_input_multiplier(sys::state const &state, dcon::factory_id fac, dcon::nation_id n, dcon::province_id p, dcon::state_instance_id s)
float estimate_overseas_penalty_spending(sys::state &state, dcon::nation_id n)
float nation_factory_consumption(sys::state &state, dcon::nation_id n, dcon::commodity_id c)
trade_volume_data_detailed import_volume_detailed(sys::state &state, dcon::nation_id s, dcon::commodity_id c)
constexpr float stockpile_to_supply
constexpr float factory_workers_cut
bool has_factory(sys::state const &state, dcon::state_instance_id si)
float max_loan(sys::state &state, dcon::nation_id n)
trade_volume_data_detailed export_volume_detailed(sys::state &state, dcon::nation_id s, dcon::commodity_id c)
float estimate_construction_spending(sys::state &state, dcon::nation_id n)
float estimate_private_construction_spendings(sys::state &state, dcon::nation_id nid)
float estimate_war_subsidies_income(sys::state &state, dcon::nation_id n)
construction_status factory_upgrade(sys::state &state, dcon::factory_id f)
void presimulate(sys::state &state)
constexpr float price_rigging
void update_rgo_employment(sys::state &state)
void daily_update(sys::state &state, bool presimulation, float presimulation_stage)
float estimate_land_spending(sys::state &state, dcon::nation_id n)
float rgo_total_employment(sys::state &state, dcon::nation_id n, dcon::province_id p)
constexpr float merchant_cut_domestic
command::budget_settings_data budget_minimums(sys::state &state, dcon::nation_id n)
commodity_production_type
float estimate_daily_income(sys::state &state, dcon::nation_id n)
float price(sys::state const &state, dcon::state_instance_id s, dcon::commodity_id c)
float estimate_tariff_import_income(sys::state &state, dcon::nation_id n)
constexpr uint32_t price_history_length
float rgo_total_max_employment(sys::state &state, dcon::nation_id n, dcon::province_id p)
void regenerate_unsaved_values(sys::state &state)
constexpr dcon::commodity_id money(0)
float domestic_trade_volume(sys::state &state, dcon::nation_id s, dcon::commodity_id c)
float laborer_min_wage(sys::state &state, dcon::market_id m, float min_wage_factor)
bool can_take_loans(sys::state &state, dcon::nation_id n)
int32_t factory_priority(sys::state const &state, dcon::factory_id f)
dcon::modifier_id get_province_selector_modifier(sys::state &state)
float unit_construction_progress(sys::state &state, dcon::province_land_construction_id c)
constexpr float stockpile_expected_spending_per_commodity
constexpr float factory_closed_threshold
float estimate_investment_pool_daily_loss(sys::state &state, dcon::nation_id n)
int32_t most_recent_price_record_index(sys::state &state)
float factory_type_build_cost(sys::state &state, dcon::nation_id n, dcon::market_id m, dcon::factory_type_id factory_type)
std::vector< trade_breakdown_item > explain_national_tariff(sys::state &state, dcon::nation_id n, bool import_flag, bool export_flag)
float rgo_expected_worker_norm_profit(sys::state &state, dcon::province_id p, dcon::market_id m, dcon::nation_id n, dcon::commodity_id c)
float import_volume(sys::state &state, dcon::market_id s, dcon::commodity_id c)
constexpr float factory_sworkers_cut
void try_add_factory_to_state(sys::state &state, dcon::state_instance_id s, dcon::factory_type_id t)
bool nation_is_constructing_factories(sys::state &state, dcon::nation_id n)
float pop_income(sys::state &state, dcon::pop_id p)
void sanity_check(sys::state &state)
float rgo_effective_size(sys::state const &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c)
float estimate_diplomatic_income(sys::state &state, dcon::nation_id n)
constexpr float payouts_spending_multiplier
float estimate_subject_payments_received(sys::state &state, dcon::nation_id o)
float nation_factory_output_multiplier(sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n)
constexpr float primary_greed
float effective_tariff_import_rate(sys::state &state, dcon::nation_id n)
float estimate_war_subsidies_spending(sys::state &state, dcon::nation_id n)
float demand_satisfaction(sys::state &state, dcon::market_id s, dcon::commodity_id c)
float commodity_daily_production_amount(sys::state &state, dcon::commodity_id c)
std::string_view province_building_type_get_level_text(economy::province_building_type v)
float rgo_desired_worker_norm_profit(sys::state &state, dcon::province_id p, dcon::market_id m, dcon::nation_id n, float min_wage, float total_relevant_population)
constexpr int32_t max_building_types
constexpr float subsistence_factor
constexpr float production_scale_delta
bool factory_is_profitable(sys::state const &state, dcon::factory_id f)
auto desired_needs_spending(sys::state const &state, T pop_indices)
std::vector< full_construction_state > estimate_private_investment_construct(sys::state &state, dcon::nation_id nid, bool craved)
float estimate_reparations_spending(sys::state &state, dcon::nation_id n)
float nation_factory_input_multiplier(sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n)
int32_t most_recent_gdp_record_index(sys::state &state)
float estimate_naval_spending(sys::state &state, dcon::nation_id n)
float subsistence_max_pseudoemployment(sys::state &state, dcon::nation_id n, dcon::province_id p)
void go_bankrupt(sys::state &state, dcon::nation_id n)
void bound_budget_settings(sys::state &state, dcon::nation_id n)
float average_capitalists_luxury_cost(sys::state &state, dcon::nation_id s)
float factory_secondary_employment(sys::state const &state, dcon::factory_id f)
constexpr float production_throughput_multiplier
constexpr float stockpile_spoilage
float market_pool(sys::state &state, dcon::market_id s, dcon::commodity_id c)
float rgo_max_employment(sys::state &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c)
float pop_min_wage_factor(sys::state &state, dcon::nation_id n)
void resolve_constructions(sys::state &state)
float priority_multiplier(sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n)
float estimate_tax_income_by_strata(sys::state &state, dcon::nation_id n, culture::pop_strata ps)
float factory_total_employment(sys::state const &state, dcon::factory_id f)
float export_volume(sys::state &state, dcon::market_id s, dcon::commodity_id c)
float estimate_stockpile_filling_spending(sys::state &state, dcon::nation_id n)
constexpr float rgo_owners_cut
float stockpile_commodity_daily_increase(sys::state &state, dcon::commodity_id c, dcon::nation_id n)
float estimate_tariff_export_income(sys::state &state, dcon::nation_id n)
constexpr float secondary_greed
constexpr float secondary_employment_output_bonus
constexpr float price_speed_mod
float rgo_full_production_quantity(sys::state &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c)
float demand(sys::state &state, dcon::market_id s, dcon::commodity_id c)
float interest_payment(sys::state &state, dcon::nation_id n)
std::vector< dcon::factory_type_id > commodity_get_factory_types_as_output(sys::state const &state, dcon::commodity_id output_good)
void set_factory_priority(sys::state &state, dcon::factory_id f, int32_t priority)
float factory_primary_employment(sys::state const &state, dcon::factory_id f)
bool nation_has_closed_factories(sys::state &state, dcon::nation_id n)
float gdp_adjusted(sys::state &state, dcon::market_id n)
float nation_pop_consumption(sys::state &state, dcon::nation_id n, dcon::commodity_id c)
float effective_tariff_export_rate(sys::state &state, dcon::nation_id n)
std::vector< full_construction_province > estimate_private_investment_province(sys::state &state, dcon::nation_id nid)
int32_t previous_gdp_record_index(sys::state &state)
constexpr float subsistence_score_everyday
ve::fp_vector base_artisan_profit(sys::state &state, T markets, S nations, dcon::commodity_id c)
float estimate_gold_income(sys::state &state, dcon::nation_id n)
float factory_type_input_cost(sys::state &state, dcon::nation_id n, dcon::market_id m, dcon::factory_type_id factory_type)
command::budget_settings_data budget_maximums(sys::state &state, dcon::nation_id n)
float factory_output_multiplier(sys::state const &state, dcon::factory_id fac, dcon::nation_id n, dcon::market_id m, dcon::province_id p)
constexpr float aristocrats_greed
bool is_under_construction
dcon::province_id province
province_building_type type
dcon::factory_type_id type
dcon::state_instance_id state
dcon::modifier_id selector_modifier
building_information building_definitions[max_building_types]
dcon::modifier_id immigrator_modifier
dcon::factory_type_id type
dcon::nation_id target_nation
float payment_received_per_unit
dcon::nation_id origin_nation
dcon::commodity_id commodity
dcon::nation_id trade_partner
nation_enriched_float targets[5]
dcon::commodity_id commodity
dcon::factory_type_id type
Holds important data about the game world, state, and other data regarding windowing,...