Project Alice
Loading...
Searching...
No Matches
parsers::scenario_building_context Struct Reference

#include <parsers_declarations.hpp>

Collaboration diagram for parsers::scenario_building_context:

Public Member Functions

 scenario_building_context (sys::state &state)
 
dcon::national_variable_id get_national_variable (std::string const &name)
 
dcon::national_flag_id get_national_flag (std::string const &name)
 
dcon::global_flag_id get_global_flag (std::string const &name)
 

Public Attributes

building_gfx_context gfx_context
 
sys::statestate
 
ankerl::unordered_dense::map< uint32_t, dcon::national_identity_id > map_of_ident_names
 
tagged_vector< std::string, dcon::national_identity_id > file_names_for_idents
 
ankerl::unordered_dense::map< std::string, dcon::religion_id > map_of_religion_names
 
ankerl::unordered_dense::map< std::string, dcon::culture_id > map_of_culture_names
 
ankerl::unordered_dense::map< std::string, dcon::culture_group_id > map_of_culture_group_names
 
ankerl::unordered_dense::map< std::string, dcon::commodity_id > map_of_commodity_names
 
ankerl::unordered_dense::map< std::string, dcon::factory_type_id > map_of_production_types
 
ankerl::unordered_dense::map< std::string, dcon::factory_type_id > map_of_factory_names
 
ankerl::unordered_dense::map< std::string, pending_ideology_contentmap_of_ideologies
 
ankerl::unordered_dense::map< std::string, dcon::ideology_group_id > map_of_ideology_groups
 
ankerl::unordered_dense::map< std::string, pending_option_contentmap_of_ioptions
 
ankerl::unordered_dense::map< std::string, pending_roption_contentmap_of_roptions
 
ankerl::unordered_dense::map< std::string, dcon::issue_id > map_of_iissues
 
ankerl::unordered_dense::map< std::string, dcon::reform_id > map_of_reforms
 
ankerl::unordered_dense::map< std::string, dcon::government_type_id > map_of_governments
 
ankerl::unordered_dense::map< std::string, pending_cb_contentmap_of_cb_types
 
ankerl::unordered_dense::map< std::string, dcon::leader_trait_id > map_of_leader_traits
 
ankerl::unordered_dense::map< std::string, pending_crime_contentmap_of_crimes
 
std::vector< pending_triggered_modifier_contentset_of_triggered_modifiers
 
ankerl::unordered_dense::map< std::string, dcon::modifier_id > map_of_modifiers
 
ankerl::unordered_dense::map< std::string, dcon::pop_type_id > map_of_poptypes
 
ankerl::unordered_dense::map< std::string, pending_rebel_type_contentmap_of_rebeltypes
 
ankerl::unordered_dense::map< std::string, terrain_typemap_of_terrain_types
 
ankerl::unordered_dense::map< std::string, int32_t > map_of_tech_folders
 
ankerl::unordered_dense::map< std::string, pending_tech_contentmap_of_technologies
 
ankerl::unordered_dense::map< std::string, pending_invention_contentmap_of_inventions
 
ankerl::unordered_dense::map< std::string, dcon::unit_type_id > map_of_unit_types
 
ankerl::unordered_dense::map< std::string, dcon::national_variable_id > map_of_national_variables
 
ankerl::unordered_dense::map< std::string, dcon::national_flag_id > map_of_national_flags
 
ankerl::unordered_dense::map< std::string, dcon::global_flag_id > map_of_global_flags
 
ankerl::unordered_dense::map< std::string, dcon::state_definition_id > map_of_state_names
 
ankerl::unordered_dense::map< std::string, dcon::region_id > map_of_region_names
 
ankerl::unordered_dense::map< int32_t, pending_nat_eventmap_of_national_events
 
ankerl::unordered_dense::map< int32_t, pending_prov_eventmap_of_provincial_events
 
ankerl::unordered_dense::map< std::string, dcon::leader_images_id > map_of_leader_graphics
 
ankerl::unordered_dense::map< std::string, std::vector< saved_stored_condition > > map_of_stored_triggers
 
ankerl::unordered_dense::map< std::string, dcon::national_focus_id > map_of_national_focuses
 
tagged_vector< province_data, dcon::province_id > prov_id_to_original_id_map
 
std::vector< dcon::province_id > original_id_to_prov_id_map
 
ankerl::unordered_dense::map< uint32_t, dcon::province_id > map_color_to_province_id
 
std::optional< simple_fs::fileideologies_file
 
std::optional< simple_fs::fileissues_file
 
std::optional< simple_fs::filecb_types_file
 
std::optional< simple_fs::filecrimes_file
 
std::optional< simple_fs::filetriggered_modifiers_file
 
std::optional< simple_fs::filerebel_types_file
 
std::vector< simple_fs::filetech_and_invention_files
 
std::vector< dcon::province_id > special_impassible
 
dcon::text_key noimage
 
dcon::modifier_id modifier_by_terrain_index [64] = {}
 
uint32_t color_by_terrain_index [64]
 
dcon::modifier_id ocean_terrain
 
int32_t number_of_commodities_seen = 0
 
int32_t number_of_national_values_seen = 0
 
bool new_maps = false
 
bool money_set = false
 

Detailed Description

Definition at line 374 of file parsers_declarations.hpp.

Constructor & Destructor Documentation

◆ scenario_building_context()

parsers::scenario_building_context::scenario_building_context ( sys::state state)

Definition at line 9 of file parsers_declarations.cpp.

Member Function Documentation

◆ get_global_flag()

dcon::global_flag_id parsers::scenario_building_context::get_global_flag ( std::string const &  name)

Definition at line 768 of file nations_parsing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_national_flag()

dcon::national_flag_id parsers::scenario_building_context::get_national_flag ( std::string const &  name)

Definition at line 755 of file nations_parsing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_national_variable()

dcon::national_variable_id parsers::scenario_building_context::get_national_variable ( std::string const &  name)

Definition at line 742 of file nations_parsing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cb_types_file

std::optional<simple_fs::file> parsers::scenario_building_context::cb_types_file

Definition at line 424 of file parsers_declarations.hpp.

◆ color_by_terrain_index

uint32_t parsers::scenario_building_context::color_by_terrain_index[64]
Initial value:
= {
0}

Definition at line 435 of file parsers_declarations.hpp.

◆ crimes_file

std::optional<simple_fs::file> parsers::scenario_building_context::crimes_file

Definition at line 425 of file parsers_declarations.hpp.

◆ file_names_for_idents

tagged_vector<std::string, dcon::national_identity_id> parsers::scenario_building_context::file_names_for_idents

Definition at line 379 of file parsers_declarations.hpp.

◆ gfx_context

building_gfx_context parsers::scenario_building_context::gfx_context

Definition at line 375 of file parsers_declarations.hpp.

◆ ideologies_file

std::optional<simple_fs::file> parsers::scenario_building_context::ideologies_file

Definition at line 422 of file parsers_declarations.hpp.

◆ issues_file

std::optional<simple_fs::file> parsers::scenario_building_context::issues_file

Definition at line 423 of file parsers_declarations.hpp.

◆ map_color_to_province_id

ankerl::unordered_dense::map<uint32_t, dcon::province_id> parsers::scenario_building_context::map_color_to_province_id

Definition at line 420 of file parsers_declarations.hpp.

◆ map_of_cb_types

ankerl::unordered_dense::map<std::string, pending_cb_content> parsers::scenario_building_context::map_of_cb_types

Definition at line 394 of file parsers_declarations.hpp.

◆ map_of_commodity_names

ankerl::unordered_dense::map<std::string, dcon::commodity_id> parsers::scenario_building_context::map_of_commodity_names

Definition at line 384 of file parsers_declarations.hpp.

◆ map_of_crimes

ankerl::unordered_dense::map<std::string, pending_crime_content> parsers::scenario_building_context::map_of_crimes

Definition at line 396 of file parsers_declarations.hpp.

◆ map_of_culture_group_names

ankerl::unordered_dense::map<std::string, dcon::culture_group_id> parsers::scenario_building_context::map_of_culture_group_names

Definition at line 383 of file parsers_declarations.hpp.

◆ map_of_culture_names

ankerl::unordered_dense::map<std::string, dcon::culture_id> parsers::scenario_building_context::map_of_culture_names

Definition at line 382 of file parsers_declarations.hpp.

◆ map_of_factory_names

ankerl::unordered_dense::map<std::string, dcon::factory_type_id> parsers::scenario_building_context::map_of_factory_names

Definition at line 386 of file parsers_declarations.hpp.

◆ map_of_global_flags

ankerl::unordered_dense::map<std::string, dcon::global_flag_id> parsers::scenario_building_context::map_of_global_flags

Definition at line 408 of file parsers_declarations.hpp.

◆ map_of_governments

ankerl::unordered_dense::map<std::string, dcon::government_type_id> parsers::scenario_building_context::map_of_governments

Definition at line 393 of file parsers_declarations.hpp.

◆ map_of_ident_names

ankerl::unordered_dense::map<uint32_t, dcon::national_identity_id> parsers::scenario_building_context::map_of_ident_names

Definition at line 378 of file parsers_declarations.hpp.

◆ map_of_ideologies

ankerl::unordered_dense::map<std::string, pending_ideology_content> parsers::scenario_building_context::map_of_ideologies

Definition at line 387 of file parsers_declarations.hpp.

◆ map_of_ideology_groups

ankerl::unordered_dense::map<std::string, dcon::ideology_group_id> parsers::scenario_building_context::map_of_ideology_groups

Definition at line 388 of file parsers_declarations.hpp.

◆ map_of_iissues

ankerl::unordered_dense::map<std::string, dcon::issue_id> parsers::scenario_building_context::map_of_iissues

Definition at line 391 of file parsers_declarations.hpp.

◆ map_of_inventions

ankerl::unordered_dense::map<std::string, pending_invention_content> parsers::scenario_building_context::map_of_inventions

Definition at line 404 of file parsers_declarations.hpp.

◆ map_of_ioptions

ankerl::unordered_dense::map<std::string, pending_option_content> parsers::scenario_building_context::map_of_ioptions

Definition at line 389 of file parsers_declarations.hpp.

◆ map_of_leader_graphics

ankerl::unordered_dense::map<std::string, dcon::leader_images_id> parsers::scenario_building_context::map_of_leader_graphics

Definition at line 413 of file parsers_declarations.hpp.

◆ map_of_leader_traits

ankerl::unordered_dense::map<std::string, dcon::leader_trait_id> parsers::scenario_building_context::map_of_leader_traits

Definition at line 395 of file parsers_declarations.hpp.

◆ map_of_modifiers

ankerl::unordered_dense::map<std::string, dcon::modifier_id> parsers::scenario_building_context::map_of_modifiers

Definition at line 398 of file parsers_declarations.hpp.

◆ map_of_national_events

ankerl::unordered_dense::map<int32_t, pending_nat_event> parsers::scenario_building_context::map_of_national_events

Definition at line 411 of file parsers_declarations.hpp.

◆ map_of_national_flags

ankerl::unordered_dense::map<std::string, dcon::national_flag_id> parsers::scenario_building_context::map_of_national_flags

Definition at line 407 of file parsers_declarations.hpp.

◆ map_of_national_focuses

ankerl::unordered_dense::map<std::string, dcon::national_focus_id> parsers::scenario_building_context::map_of_national_focuses

Definition at line 415 of file parsers_declarations.hpp.

◆ map_of_national_variables

ankerl::unordered_dense::map<std::string, dcon::national_variable_id> parsers::scenario_building_context::map_of_national_variables

Definition at line 406 of file parsers_declarations.hpp.

◆ map_of_poptypes

ankerl::unordered_dense::map<std::string, dcon::pop_type_id> parsers::scenario_building_context::map_of_poptypes

Definition at line 399 of file parsers_declarations.hpp.

◆ map_of_production_types

ankerl::unordered_dense::map<std::string, dcon::factory_type_id> parsers::scenario_building_context::map_of_production_types

Definition at line 385 of file parsers_declarations.hpp.

◆ map_of_provincial_events

ankerl::unordered_dense::map<int32_t, pending_prov_event> parsers::scenario_building_context::map_of_provincial_events

Definition at line 412 of file parsers_declarations.hpp.

◆ map_of_rebeltypes

ankerl::unordered_dense::map<std::string, pending_rebel_type_content> parsers::scenario_building_context::map_of_rebeltypes

Definition at line 400 of file parsers_declarations.hpp.

◆ map_of_reforms

ankerl::unordered_dense::map<std::string, dcon::reform_id> parsers::scenario_building_context::map_of_reforms

Definition at line 392 of file parsers_declarations.hpp.

◆ map_of_region_names

ankerl::unordered_dense::map<std::string, dcon::region_id> parsers::scenario_building_context::map_of_region_names

Definition at line 410 of file parsers_declarations.hpp.

◆ map_of_religion_names

ankerl::unordered_dense::map<std::string, dcon::religion_id> parsers::scenario_building_context::map_of_religion_names

Definition at line 381 of file parsers_declarations.hpp.

◆ map_of_roptions

ankerl::unordered_dense::map<std::string, pending_roption_content> parsers::scenario_building_context::map_of_roptions

Definition at line 390 of file parsers_declarations.hpp.

◆ map_of_state_names

ankerl::unordered_dense::map<std::string, dcon::state_definition_id> parsers::scenario_building_context::map_of_state_names

Definition at line 409 of file parsers_declarations.hpp.

◆ map_of_stored_triggers

ankerl::unordered_dense::map<std::string, std::vector<saved_stored_condition> > parsers::scenario_building_context::map_of_stored_triggers

Definition at line 414 of file parsers_declarations.hpp.

◆ map_of_tech_folders

ankerl::unordered_dense::map<std::string, int32_t> parsers::scenario_building_context::map_of_tech_folders

Definition at line 402 of file parsers_declarations.hpp.

◆ map_of_technologies

ankerl::unordered_dense::map<std::string, pending_tech_content> parsers::scenario_building_context::map_of_technologies

Definition at line 403 of file parsers_declarations.hpp.

◆ map_of_terrain_types

ankerl::unordered_dense::map<std::string, terrain_type> parsers::scenario_building_context::map_of_terrain_types

Definition at line 401 of file parsers_declarations.hpp.

◆ map_of_unit_types

ankerl::unordered_dense::map<std::string, dcon::unit_type_id> parsers::scenario_building_context::map_of_unit_types

Definition at line 405 of file parsers_declarations.hpp.

◆ modifier_by_terrain_index

dcon::modifier_id parsers::scenario_building_context::modifier_by_terrain_index[64] = {}

Definition at line 434 of file parsers_declarations.hpp.

◆ money_set

bool parsers::scenario_building_context::money_set = false

Definition at line 448 of file parsers_declarations.hpp.

◆ new_maps

bool parsers::scenario_building_context::new_maps = false

Definition at line 447 of file parsers_declarations.hpp.

◆ noimage

dcon::text_key parsers::scenario_building_context::noimage

Definition at line 432 of file parsers_declarations.hpp.

◆ number_of_commodities_seen

int32_t parsers::scenario_building_context::number_of_commodities_seen = 0

Definition at line 445 of file parsers_declarations.hpp.

◆ number_of_national_values_seen

int32_t parsers::scenario_building_context::number_of_national_values_seen = 0

Definition at line 446 of file parsers_declarations.hpp.

◆ ocean_terrain

dcon::modifier_id parsers::scenario_building_context::ocean_terrain

Definition at line 437 of file parsers_declarations.hpp.

◆ original_id_to_prov_id_map

std::vector<dcon::province_id> parsers::scenario_building_context::original_id_to_prov_id_map

Definition at line 418 of file parsers_declarations.hpp.

◆ prov_id_to_original_id_map

tagged_vector<province_data, dcon::province_id> parsers::scenario_building_context::prov_id_to_original_id_map

Definition at line 417 of file parsers_declarations.hpp.

◆ rebel_types_file

std::optional<simple_fs::file> parsers::scenario_building_context::rebel_types_file

Definition at line 427 of file parsers_declarations.hpp.

◆ set_of_triggered_modifiers

std::vector<pending_triggered_modifier_content> parsers::scenario_building_context::set_of_triggered_modifiers

Definition at line 397 of file parsers_declarations.hpp.

◆ special_impassible

std::vector<dcon::province_id> parsers::scenario_building_context::special_impassible

Definition at line 430 of file parsers_declarations.hpp.

◆ state

sys::state& parsers::scenario_building_context::state

Definition at line 377 of file parsers_declarations.hpp.

◆ tech_and_invention_files

std::vector<simple_fs::file> parsers::scenario_building_context::tech_and_invention_files

Definition at line 428 of file parsers_declarations.hpp.

◆ triggered_modifiers_file

std::optional<simple_fs::file> parsers::scenario_building_context::triggered_modifiers_file

Definition at line 426 of file parsers_declarations.hpp.


The documentation for this struct was generated from the following files: