Project Alice
Loading...
Searching...
No Matches
sys Namespace Reference

Namespaces

namespace  message_response
 
namespace  national_mod_offsets
 
namespace  provincial_mod_offsets
 

Classes

class  absolute_time_point
 
struct  build_queue_data
 
struct  cheat_data_s
 
struct  checksum_key
 
struct  commodity_modifier
 
struct  crisis_join_offer
 
struct  crisis_member_def
 
class  date
 
struct  dated_modifier
 
struct  event_option
 
struct  global_scenario_data_s
 
struct  great_nation
 
struct  hsv
 
struct  macro_builder_template
 
struct  mod_identifier
 
struct  modifier_hash
 
struct  msg_setting_entry
 
struct  national_modifier_definition
 
struct  player_data
 
struct  player_name
 
struct  provincial_modifier_definition
 
struct  rebel_org_modifier
 
struct  save_header
 
struct  scenario_header
 
struct  scenario_size
 
struct  state
 
struct  state_selection_data
 
struct  unit_modifier
 
struct  unit_variable_stats
 
struct  user_settings_s
 
struct  value_modifier_description
 
struct  value_modifier_segment
 
struct  year_month_day
 

Enumerations

enum class  virtual_key : uint8_t {
  NONE = 0x00 , LBUTTON = 0x01 , RBUTTON = 0x02 , CANCEL = 0x03 ,
  MBUTTON = 0x04 , XBUTTON_1 = 0x05 , XBUTTON_2 = 0x06 , BACK = 0x08 ,
  TAB = 0x09 , CLEAR = 0x0C , RETURN = 0x0D , SHIFT = 0x10 ,
  CONTROL = 0x11 , MENU = 0x12 , PAUSE = 0x13 , CAPITAL = 0x14 ,
  KANA = 0x15 , JUNJA = 0x17 , FINAL = 0x18 , KANJI = 0x19 ,
  ESCAPE = 0x1B , CONVERT = 0x1C , NONCONVERT = 0x1D , ACCEPT = 0x1E ,
  MODECHANGE = 0x1F , SPACE = 0x20 , PRIOR = 0x21 , NEXT = 0x22 ,
  END = 0x23 , HOME = 0x24 , LEFT = 0x25 , UP = 0x26 ,
  RIGHT = 0x27 , DOWN = 0x28 , SELECT = 0x29 , PRINT = 0x2A ,
  EXECUTE = 0x2B , SNAPSHOT = 0x2C , INSERT = 0x2D , DELETE_KEY = 0x2E ,
  HELP = 0x2F , NUM_0 = 0x30 , NUM_1 = 0x31 , NUM_2 = 0x32 ,
  NUM_3 = 0x33 , NUM_4 = 0x34 , NUM_5 = 0x35 , NUM_6 = 0x36 ,
  NUM_7 = 0x37 , NUM_8 = 0x38 , NUM_9 = 0x39 , A = 0x41 ,
  B = 0x42 , C = 0x43 , D = 0x44 , E = 0x45 ,
  F = 0x46 , G = 0x47 , H = 0x48 , I = 0x49 ,
  J = 0x4A , K = 0x4B , L = 0x4C , M = 0x4D ,
  N = 0x4E , O = 0x4F , P = 0x50 , Q = 0x51 ,
  R = 0x52 , S = 0x53 , T = 0x54 , U = 0x55 ,
  V = 0x56 , W = 0x57 , X = 0x58 , Y = 0x59 ,
  Z = 0x5A , LWIN = 0x5B , RWIN = 0x5C , APPS = 0x5D ,
  SLEEP = 0x5F , NUMPAD0 = 0x60 , NUMPAD1 = 0x61 , NUMPAD2 = 0x62 ,
  NUMPAD3 = 0x63 , NUMPAD4 = 0x64 , NUMPAD5 = 0x65 , NUMPAD6 = 0x66 ,
  NUMPAD7 = 0x67 , NUMPAD8 = 0x68 , NUMPAD9 = 0x69 , MULTIPLY = 0x6A ,
  ADD = 0x6B , SEPARATOR = 0x6C , SUBTRACT = 0x6D , DECIMAL = 0x6E ,
  DIVIDE = 0x6F , F1 = 0x70 , F2 = 0x71 , F3 = 0x72 ,
  F4 = 0x73 , F5 = 0x74 , F6 = 0x75 , F7 = 0x76 ,
  F8 = 0x77 , F9 = 0x78 , F10 = 0x79 , F11 = 0x7A ,
  F12 = 0x7B , F13 = 0x7C , F14 = 0x7D , F15 = 0x7E ,
  F16 = 0x7F , F17 = 0x80 , F18 = 0x81 , F19 = 0x82 ,
  F20 = 0x83 , F21 = 0x84 , F22 = 0x85 , F23 = 0x86 ,
  F24 = 0x87 , NAVIGATION_VIEW = 0x88 , NAVIGATION_MENU = 0x89 , NAVIGATION_UP = 0x8A ,
  NAVIGATION_DOWN = 0x8B , NAVIGATION_LEFT = 0x8C , NAVIGATION_RIGHT = 0x8D , NAVIGATION_ACCEPT = 0x8E ,
  NAVIGATION_CANCEL = 0x8F , NUMLOCK = 0x90 , SCROLL = 0x91 , OEM_NEC_EQUAL = 0x92 ,
  LSHIFT = 0xA0 , RSHIFT = 0xA1 , LCONTROL = 0xA2 , RCONTROL = 0xA3 ,
  LMENU = 0xA4 , RMENU = 0xA5 , SEMICOLON = 0xBA , PLUS = 0xBB ,
  COMMA = 0xBC , MINUS = 0xBD , PERIOD = 0xBE , FORWARD_SLASH = 0xBF ,
  TILDA = 0xC0 , OPEN_BRACKET = 0xDB , BACK_SLASH = 0xDC , CLOSED_BRACKET = 0xDD ,
  QUOTE = 0xDE
}
 
enum class  key_modifiers : uint8_t {
  modifiers_none = 0x0 , modifiers_alt = 0x4 , modifiers_ctrl = 0x2 , modifiers_shift = 0x1 ,
  modifiers_ctrl_shift = 0x3 , modifiers_ctrl_alt = 0x6 , modifiers_alt_shift = 0x5 , modifiers_all = 0x7
}
 
enum class  autosave_frequency : uint8_t { none = 0 , yearly = 1 , monthly = 2 , daily = 3 }
 
enum class  map_label_mode : uint8_t { none = 0 , linear = 1 , quadratic = 2 , cubic = 3 }
 
enum class  map_zoom_mode : uint8_t {
  panning = 0 , inverted = 1 , centered = 2 , to_cursor = 3 ,
  away_from_cursor = 4
}
 
enum class  map_vassal_color_mode : uint8_t { inherit = 0 , same = 1 , none = 2 }
 
enum class  army_group_regiment_status : uint8_t {
  move_to_target , move_to_port , standby , await_transport ,
  is_transported , disembark , embark
}
 
enum class  army_group_regiment_task : uint8_t { idle , gather_at_hq , defend_position , siege }
 
enum class  army_group_order : uint8_t { siege , defend , designate_port , none }
 
enum class  commodity_group : uint8_t {
  military_goods = 0 , raw_material_goods , industrial_goods , consumer_goods ,
  industrial_and_consumer_goods , count
}
 
enum class  message_setting_type : uint8_t {
  revolt = 0 , war_on_nation = 1 , war_by_nation = 2 , wargoal_added = 3 ,
  siegeover_by_nation = 4 , siegeover_on_nation = 5 , colony_finished = 6 , reform_gained = 7 ,
  reform_lost = 8 , ruling_party_change = 9 , upperhouse = 10 , electionstart = 11 ,
  electiondone = 12 , breakcountry = 13 , peace_accepted_from_nation = 14 , peace_rejected_from_nation = 15 ,
  peace_accepted_by_nation = 16 , peace_rejected_by_nation = 17 , mobilization_start = 18 , mobilization_end = 19 ,
  factory_complete = 20 , rr_complete = 21 , fort_complete = 22 , naval_base_complete = 23 ,
  province_event = 24 , national_event = 25 , major_event = 26 , invention = 27 ,
  tech = 28 , leader_dies = 29 , land_combat_starts_on_nation = 30 , naval_combat_starts_on_nation = 31 ,
  land_combat_starts_by_nation = 32 , naval_combat_starts_by_nation = 33 , movement_finishes = 34 , decision = 35 ,
  lose_great_power = 36 , become_great_power = 37 , war_subsidies_start_by_nation = 38 , war_subsidies_start_on_nation = 39 ,
  war_subsidies_end_by_nation = 40 , war_subsidies_end_on_nation = 41 , reparations_start_by_nation = 42 , reparations_start_on_nation = 43 ,
  reparations_end_by_nation = 44 , reparations_end_on_nation = 45 , mil_access_start_by_nation = 46 , mil_access_start_on_nation = 47 ,
  mil_access_end_by_nation = 48 , mil_access_end_on_nation = 49 , mil_access_declined_by_nation = 50 , mil_access_declined_on_nation = 51 ,
  alliance_starts = 52 , alliance_ends = 53 , alliance_declined_by_nation = 54 , alliance_declined_on_nation = 55 ,
  ally_called_accepted_by_nation = 56 , ally_called_declined_by_nation = 57 , discredit_by_nation = 58 , ban_by_nation = 59 ,
  expell_by_nation = 60 , discredit_on_nation = 61 , ban_on_nation = 62 , expell_on_nation = 63 ,
  increase_opinion = 64 , decrease_opinion_by_nation = 65 , decrease_opinion_on_nation = 66 , rem_sphere_by_nation = 67 ,
  rem_sphere_on_nation = 68 , removed_from_sphere = 69 , add_sphere = 70 , added_to_sphere = 71 ,
  increase_relation_by_nation = 72 , increase_relation_on_nation = 73 , decrease_relation_by_nation = 74 , decrease_relation_on_nation = 75 ,
  join_war_by_nation = 76 , join_war_on_nation = 77 , gw_unlocked = 78 , war_becomes_great = 79 ,
  cb_detected_on_nation = 80 , cb_detected_by_nation = 81 , crisis_join_offer_accepted_by_nation = 82 , crisis_join_offer_declined_by_nation = 83 ,
  crisis_join_offer_accepted_from_nation = 84 , crisis_join_offer_declined_from_nation = 85 , crisis_resolution_accepted = 86 , crisis_becomes_war = 87 ,
  crisis_resolution_declined_from_nation = 88 , crisis_starts = 89 , crisis_attacker_backer = 90 , crisis_defender_backer = 91 ,
  crisis_fizzle = 92 , war_join_by = 93 , war_join_on = 94 , cb_fab_finished = 95 ,
  cb_fab_cancelled = 96 , crisis_voluntary_join = 97 , army_built = 98 , navy_built = 99 ,
  bankruptcy = 100 , entered_automatic_alliance = 101 , chat_message = 102 , count = 128
}
 
enum class  message_base_type : uint8_t {
  revolt = 0 , war = 1 , wargoal_added = 2 , siegeover = 3 ,
  colony_finished = 4 , reform_gained = 5 , reform_lost = 6 , ruling_party_change = 7 ,
  upperhouse = 8 , electionstart = 9 , electiondone = 10 , breakcountry = 11 ,
  peace_accepted = 12 , peace_rejected = 13 , mobilization_start = 14 , mobilization_end = 15 ,
  factory_complete = 16 , rr_complete = 17 , fort_complete = 18 , naval_base_complete = 19 ,
  province_event = 20 , national_event = 21 , major_event = 22 , invention = 23 ,
  tech = 24 , leader_dies = 25 , land_combat_starts = 26 , naval_combat_starts = 27 ,
  movement_finishes = 28 , decision = 29 , lose_great_power = 30 , become_great_power = 31 ,
  war_subsidies_start = 32 , war_subsidies_end = 33 , reparations_start = 34 , reparations_end = 35 ,
  mil_access_start = 36 , mil_access_end = 37 , mil_access_declined = 38 , alliance_starts = 39 ,
  alliance_ends = 40 , alliance_declined = 41 , ally_called_accepted = 42 , ally_called_declined = 43 ,
  discredit = 44 , ban = 45 , expell = 46 , increase_opinion = 47 ,
  decrease_opinion = 48 , rem_sphere = 49 , add_to_sphere = 50 , increase_relation = 51 ,
  decrease_relation = 52 , join_war = 53 , gw_unlocked = 54 , war_becomes_great = 55 ,
  cb_detected = 56 , crisis_join_offer_accepted = 57 , crisis_join_offer_declined = 58 , crisis_resolution_accepted = 59 ,
  crisis_becomes_war = 60 , crisis_resolution_declined = 61 , crisis_starts = 62 , crisis_attacker_backer = 63 ,
  crisis_defender_backer = 64 , crisis_fizzle = 65 , cb_fab_finished = 66 , cb_fab_cancelled = 67 ,
  crisis_voluntary_join = 68 , army_built = 69 , navy_built = 70 , bankruptcy = 71 ,
  entered_automatic_alliance = 72 , chat_message = 73 , count = 74
}
 
enum class  network_mode_type { single_player , client , host }
 
enum class  color_blind_mode {
  none , protan , deutan , tritan ,
  achroma
}
 
enum  save_type : uint8_t { normal , autosave , bookmark }
 
enum class  gui_modes : uint8_t { faithful = 0 , nouveau = 1 , dummycabooseval = 2 }
 
enum class  projection_mode : uint8_t { globe_ortho = 0 , flat = 1 , globe_perpect = 2 , num_of_modes = 3 }
 
enum class  crisis_type : uint32_t {
  none = 0 , claim = 1 , liberation = 2 , colonial = 3 ,
  influence = 4
}
 
enum class  crisis_mode : uint32_t { inactive = 0 , finding_attacker = 1 , finding_defender = 2 , heating_up = 3 }
 

Functions

float red_from_int (uint32_t v)
 
float green_from_int (uint32_t v)
 
float blue_from_int (uint32_t v)
 
uint32_t pack_color (float r, float g, float b)
 
int32_t int_red_from_int (uint32_t v)
 
int32_t int_green_from_int (uint32_t v)
 
int32_t int_blue_from_int (uint32_t v)
 
uint32_t pack_color (int32_t r, int32_t g, int32_t b)
 
hsv rgb_to_hsv (uint32_t v)
 
uint32_t hsv_to_rgb (hsv v)
 
constexpr int days_from_civil (int y, unsigned m, unsigned d) noexcept
 
constexpr year_month_day civil_from_days (int64_t z) noexcept
 
bool is_playable_date (date d, absolute_time_point start, absolute_time_point end)
 
int32_t days_difference (year_month_day start, year_month_day end)
 
bool is_leap_year (int32_t year)
 
void apply_modifier_values_to_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id)
 
void apply_scaled_modifier_values_to_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id, float scale)
 
void apply_modifier_values_to_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id)
 
void add_modifier_to_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id, sys::date expiration)
 
void add_modifier_to_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id, sys::date expiration)
 
void remove_modifier_from_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id)
 
void remove_modifier_from_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id)
 
void toggle_modifier_from_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id, sys::date expiration)
 
template<typename F >
void bulk_apply_masked_modifier_to_nations (sys::state &state, dcon::modifier_id m, F const &mask_functor)
 
template<typename F >
void bulk_apply_scaled_modifier_to_nations (sys::state &state, dcon::modifier_id m, F const &scale_functor)
 
template<typename F >
void bulk_apply_masked_modifier_to_provinces (sys::state &state, dcon::modifier_id mod_id, F const &mask_functor)
 
void bulk_apply_modifier_to_provinces (sys::state &state, dcon::modifier_id mod_id)
 
template<typename F >
void bulk_apply_scaled_modifier_to_provinces (sys::state &state, dcon::modifier_id mod_id, F const &scale_functor)
 
void recreate_national_modifiers (sys::state &state)
 
void update_single_nation_modifiers (sys::state &state, dcon::nation_id n)
 
void recreate_province_modifiers (sys::state &state)
 
void repopulate_modifier_effects (sys::state &state)
 
void update_modifier_effects (sys::state &state)
 
void remove_expired_modifiers_from_nation (sys::state &state, dcon::nation_id target_nation)
 
void remove_expired_modifiers_from_province (sys::state &state, dcon::province_id target_prov)
 
uint8_t const * read_scenario_header (uint8_t const *ptr_in, scenario_header &header_out)
 
uint8_t const * read_save_header (uint8_t const *ptr_in, save_header &header_out)
 
uint8_twrite_scenario_header (uint8_t *ptr_in, scenario_header const &header_in)
 
uint8_twrite_save_header (uint8_t *ptr_in, save_header const &header_in)
 
size_t sizeof_scenario_header (scenario_header const &header_in)
 
size_t sizeof_save_header (save_header const &header_in)
 
void read_mod_path (uint8_t const *ptr_in, uint8_t const *lim, native_string &path_out)
 
uint8_t const * load_mod_path (uint8_t const *ptr_in, sys::state &state)
 
uint8_twrite_mod_path (uint8_t *ptr_in, native_string const &path_in)
 
size_t sizeof_mod_path (native_string const &path_in)
 
mod_identifier extract_mod_information (uint8_t const *ptr_in, uint64_t file_size)
 
uint8_twrite_compressed_section (uint8_t *ptr_out, uint8_t const *ptr_in, uint32_t uncompressed_size)
 
template<typename T >
uint8_t const * with_decompressed_section (uint8_t const *ptr_in, T const &function)
 
uint8_t const * read_scenario_section (uint8_t const *ptr_in, uint8_t const *section_end, sys::state &state)
 
uint8_twrite_scenario_section (uint8_t *ptr_in, sys::state &state)
 
scenario_size sizeof_scenario_section (sys::state &state)
 
uint8_t const * read_save_section (uint8_t const *ptr_in, uint8_t const *section_end, sys::state &state)
 
uint8_twrite_save_section (uint8_t *ptr_in, sys::state &state)
 
size_t sizeof_save_section (sys::state &state)
 
void write_scenario_file (sys::state &state, native_string_view name, uint32_t count)
 
bool try_read_scenario_file (sys::state &state, native_string_view name)
 
bool try_read_scenario_and_save_file (sys::state &state, native_string_view name)
 
bool try_read_scenario_as_save_file (sys::state &state, native_string_view name)
 
std::string make_time_string (uint64_t value)
 
void write_save_file (sys::state &state, save_type type, std::string const &name)
 
bool try_read_save_file (sys::state &state, native_string_view name)
 
template<typename T >
size_t serialize_size (std::vector< T > const &vec)
 
template<typename T >
uint8_tserialize (uint8_t *ptr_in, std::vector< T > const &vec)
 
template<typename T >
uint8_t const * deserialize (uint8_t const *ptr_in, std::vector< T > &vec)
 
template<typename T >
uint8_tmemcpy_serialize (uint8_t *ptr_in, T const &obj)
 
template<typename T >
uint8_t const * memcpy_deserialize (uint8_t const *ptr_in, T &obj)
 
template<typename T , typename tag_type >
size_t serialize_size (tagged_vector< T, tag_type > const &vec)
 
template<typename T , typename tag_type >
uint8_tserialize (uint8_t *ptr_in, tagged_vector< T, tag_type > const &vec)
 
template<typename T , typename tag_type >
uint8_t const * deserialize (uint8_t const *ptr_in, tagged_vector< T, tag_type > &vec)
 
size_t serialize_size (ankerl::unordered_dense::map< dcon::text_key, uint32_t, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &vec)
 
size_t serialize_size (ankerl::unordered_dense::set< dcon::text_key, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &vec)
 
uint8_tserialize (uint8_t *ptr_in, ankerl::unordered_dense::map< dcon::text_key, uint32_t, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &vec)
 
uint8_tserialize (uint8_t *ptr_in, ankerl::unordered_dense::set< dcon::text_key, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &vec)
 
uint8_t const * deserialize (uint8_t const *ptr_in, ankerl::unordered_dense::map< dcon::text_key, uint32_t, text::vector_backed_ci_hash, text::vector_backed_ci_eq > &vec)
 
uint8_t const * deserialize (uint8_t const *ptr_in, ankerl::unordered_dense::set< dcon::text_key, text::vector_backed_ci_hash, text::vector_backed_ci_eq > &vec)
 
size_t serialize_size (ankerl::unordered_dense::map< dcon::modifier_id, dcon::gfx_object_id, sys::modifier_hash > const &vec)
 
uint8_tserialize (uint8_t *ptr_in, ankerl::unordered_dense::map< dcon::modifier_id, dcon::gfx_object_id, sys::modifier_hash > const &vec)
 
uint8_t const * deserialize (uint8_t const *ptr_in, ankerl::unordered_dense::map< dcon::modifier_id, dcon::gfx_object_id, sys::modifier_hash > &vec)
 
size_t serialize_size (ankerl::unordered_dense::map< uint16_t, dcon::text_key > const &vec)
 
uint8_tserialize (uint8_t *ptr_in, ankerl::unordered_dense::map< uint16_t, dcon::text_key > const &vec)
 
uint8_t const * deserialize (uint8_t const *ptr_in, ankerl::unordered_dense::map< uint16_t, dcon::text_key > &vec)
 
void list_pop_types (sys::state &state, parsers::scenario_building_context &context)
 

Variables

constexpr float ui_scales [] = {0.25f, 0.30f, 0.35f, 0.5f, 0.75f, 1.0f, 1.25f, 1.5f, 1.75f, 2.0f, 2.5f, 3.0f}
 
constexpr uint32_t ui_scales_count = 12
 
constexpr int32_t max_autosaves = 16
 
constexpr msg_setting_entry message_setting_map [size_t(message_base_type::count)]
 
constexpr int32_t max_event_options = 8
 
constexpr uint32_t max_languages = 64
 
constexpr uint32_t save_file_version = 42
 
constexpr uint32_t scenario_file_version = 133 + save_file_version
 
constexpr int32_t tooltip_width = 400
 

Enumeration Type Documentation

◆ army_group_order

enum class sys::army_group_order : uint8_t
strong
Enumerator
siege 
defend 
designate_port 
none 

Definition at line 216 of file constants.hpp.

◆ army_group_regiment_status

Enumerator
move_to_target 
move_to_port 
standby 
await_transport 
is_transported 
disembark 
embark 

Definition at line 199 of file constants.hpp.

◆ army_group_regiment_task

Enumerator
idle 
gather_at_hq 
defend_position 
siege 

Definition at line 209 of file constants.hpp.

◆ autosave_frequency

enum class sys::autosave_frequency : uint8_t
strong
Enumerator
none 
yearly 
monthly 
daily 

Definition at line 169 of file constants.hpp.

◆ color_blind_mode

enum class sys::color_blind_mode
strong
Enumerator
none 
protan 
deutan 
tritan 
achroma 

Definition at line 554 of file constants.hpp.

◆ commodity_group

enum class sys::commodity_group : uint8_t
strong
Enumerator
military_goods 
raw_material_goods 
industrial_goods 
consumer_goods 
industrial_and_consumer_goods 
count 

Definition at line 223 of file constants.hpp.

◆ crisis_mode

enum class sys::crisis_mode : uint32_t
strong
Enumerator
inactive 
finding_attacker 
finding_defender 
heating_up 

Definition at line 438 of file system_state.hpp.

◆ crisis_type

enum class sys::crisis_type : uint32_t
strong
Enumerator
none 
claim 
liberation 
colonial 
influence 

Definition at line 437 of file system_state.hpp.

◆ gui_modes

enum class sys::gui_modes : uint8_t
strong
Enumerator
faithful 
nouveau 
dummycabooseval 

Definition at line 42 of file system_state.hpp.

◆ key_modifiers

enum class sys::key_modifiers : uint8_t
strong
Enumerator
modifiers_none 
modifiers_alt 
modifiers_ctrl 
modifiers_shift 
modifiers_ctrl_shift 
modifiers_ctrl_alt 
modifiers_alt_shift 
modifiers_all 

Definition at line 156 of file constants.hpp.

◆ map_label_mode

enum class sys::map_label_mode : uint8_t
strong
Enumerator
none 
linear 
quadratic 
cubic 

Definition at line 178 of file constants.hpp.

◆ map_vassal_color_mode

enum class sys::map_vassal_color_mode : uint8_t
strong
Enumerator
inherit 
same 
none 

Definition at line 193 of file constants.hpp.

◆ map_zoom_mode

enum class sys::map_zoom_mode : uint8_t
strong
Enumerator
panning 
inverted 
centered 
to_cursor 
away_from_cursor 

Definition at line 185 of file constants.hpp.

◆ message_base_type

enum class sys::message_base_type : uint8_t
strong
Enumerator
revolt 
war 
wargoal_added 
siegeover 
colony_finished 
reform_gained 
reform_lost 
ruling_party_change 
upperhouse 
electionstart 
electiondone 
breakcountry 
peace_accepted 
peace_rejected 
mobilization_start 
mobilization_end 
factory_complete 
rr_complete 
fort_complete 
naval_base_complete 
province_event 
national_event 
major_event 
invention 
tech 
leader_dies 
land_combat_starts 
naval_combat_starts 
movement_finishes 
decision 
lose_great_power 
become_great_power 
war_subsidies_start 
war_subsidies_end 
reparations_start 
reparations_end 
mil_access_start 
mil_access_end 
mil_access_declined 
alliance_starts 
alliance_ends 
alliance_declined 
ally_called_accepted 
ally_called_declined 
discredit 
ban 
expell 
increase_opinion 
decrease_opinion 
rem_sphere 
add_to_sphere 
increase_relation 
decrease_relation 
join_war 
gw_unlocked 
war_becomes_great 
cb_detected 
crisis_join_offer_accepted 
crisis_join_offer_declined 
crisis_resolution_accepted 
crisis_becomes_war 
crisis_resolution_declined 
crisis_starts 
crisis_attacker_backer 
crisis_defender_backer 
crisis_fizzle 
cb_fab_finished 
cb_fab_cancelled 
crisis_voluntary_join 
army_built 
navy_built 
bankruptcy 
entered_automatic_alliance 
chat_message 
count 

Definition at line 333 of file constants.hpp.

◆ message_setting_type

enum class sys::message_setting_type : uint8_t
strong
Enumerator
revolt 
war_on_nation 
war_by_nation 
wargoal_added 
siegeover_by_nation 
siegeover_on_nation 
colony_finished 
reform_gained 
reform_lost 
ruling_party_change 
upperhouse 
electionstart 
electiondone 
breakcountry 
peace_accepted_from_nation 
peace_rejected_from_nation 
peace_accepted_by_nation 
peace_rejected_by_nation 
mobilization_start 
mobilization_end 
factory_complete 
rr_complete 
fort_complete 
naval_base_complete 
province_event 
national_event 
major_event 
invention 
tech 
leader_dies 
land_combat_starts_on_nation 
naval_combat_starts_on_nation 
land_combat_starts_by_nation 
naval_combat_starts_by_nation 
movement_finishes 
decision 
lose_great_power 
become_great_power 
war_subsidies_start_by_nation 
war_subsidies_start_on_nation 
war_subsidies_end_by_nation 
war_subsidies_end_on_nation 
reparations_start_by_nation 
reparations_start_on_nation 
reparations_end_by_nation 
reparations_end_on_nation 
mil_access_start_by_nation 
mil_access_start_on_nation 
mil_access_end_by_nation 
mil_access_end_on_nation 
mil_access_declined_by_nation 
mil_access_declined_on_nation 
alliance_starts 
alliance_ends 
alliance_declined_by_nation 
alliance_declined_on_nation 
ally_called_accepted_by_nation 
ally_called_declined_by_nation 
discredit_by_nation 
ban_by_nation 
expell_by_nation 
discredit_on_nation 
ban_on_nation 
expell_on_nation 
increase_opinion 
decrease_opinion_by_nation 
decrease_opinion_on_nation 
rem_sphere_by_nation 
rem_sphere_on_nation 
removed_from_sphere 
add_sphere 
added_to_sphere 
increase_relation_by_nation 
increase_relation_on_nation 
decrease_relation_by_nation 
decrease_relation_on_nation 
join_war_by_nation 
join_war_on_nation 
gw_unlocked 
war_becomes_great 
cb_detected_on_nation 
cb_detected_by_nation 
crisis_join_offer_accepted_by_nation 
crisis_join_offer_declined_by_nation 
crisis_join_offer_accepted_from_nation 
crisis_join_offer_declined_from_nation 
crisis_resolution_accepted 
crisis_becomes_war 
crisis_resolution_declined_from_nation 
crisis_starts 
crisis_attacker_backer 
crisis_defender_backer 
crisis_fizzle 
war_join_by 
war_join_on 
cb_fab_finished 
cb_fab_cancelled 
crisis_voluntary_join 
army_built 
navy_built 
bankruptcy 
entered_automatic_alliance 
chat_message 
count 

Definition at line 225 of file constants.hpp.

◆ network_mode_type

enum class sys::network_mode_type
strong
Enumerator
single_player 
client 
host 

Definition at line 548 of file constants.hpp.

◆ projection_mode

enum class sys::projection_mode : uint8_t
strong
Enumerator
globe_ortho 
flat 
globe_perpect 
num_of_modes 

Definition at line 43 of file system_state.hpp.

◆ save_type

Enumerator
normal 
autosave 
bookmark 

Definition at line 565 of file constants.hpp.

◆ virtual_key

enum class sys::virtual_key : uint8_t
strong
Enumerator
NONE 
LBUTTON 
RBUTTON 
CANCEL 
MBUTTON 
XBUTTON_1 
XBUTTON_2 
BACK 
TAB 
CLEAR 
RETURN 
SHIFT 
CONTROL 
MENU 
PAUSE 
CAPITAL 
KANA 
JUNJA 
FINAL 
KANJI 
ESCAPE 
CONVERT 
NONCONVERT 
ACCEPT 
MODECHANGE 
SPACE 
PRIOR 
NEXT 
END 
HOME 
LEFT 
UP 
RIGHT 
DOWN 
SELECT 
PRINT 
EXECUTE 
SNAPSHOT 
INSERT 
DELETE_KEY 
HELP 
NUM_0 
NUM_1 
NUM_2 
NUM_3 
NUM_4 
NUM_5 
NUM_6 
NUM_7 
NUM_8 
NUM_9 
LWIN 
RWIN 
APPS 
SLEEP 
NUMPAD0 
NUMPAD1 
NUMPAD2 
NUMPAD3 
NUMPAD4 
NUMPAD5 
NUMPAD6 
NUMPAD7 
NUMPAD8 
NUMPAD9 
MULTIPLY 
ADD 
SEPARATOR 
SUBTRACT 
DECIMAL 
DIVIDE 
F1 
F2 
F3 
F4 
F5 
F6 
F7 
F8 
F9 
F10 
F11 
F12 
F13 
F14 
F15 
F16 
F17 
F18 
F19 
F20 
F21 
F22 
F23 
F24 
NAVIGATION_VIEW 
NAVIGATION_MENU 
NAVIGATION_UP 
NAVIGATION_DOWN 
NAVIGATION_LEFT 
NAVIGATION_RIGHT 
NAVIGATION_ACCEPT 
NAVIGATION_CANCEL 
NUMLOCK 
SCROLL 
OEM_NEC_EQUAL 
LSHIFT 
RSHIFT 
LCONTROL 
RCONTROL 
LMENU 
RMENU 
SEMICOLON 
PLUS 
COMMA 
MINUS 
PERIOD 
FORWARD_SLASH 
TILDA 
OPEN_BRACKET 
BACK_SLASH 
CLOSED_BRACKET 
QUOTE 

Definition at line 5 of file constants.hpp.

Function Documentation

◆ add_modifier_to_nation()

void sys::add_modifier_to_nation ( sys::state state,
dcon::nation_id  target_nation,
dcon::modifier_id  mod_id,
sys::date  expiration 
)

Definition at line 63 of file modifiers.cpp.

Here is the caller graph for this function:

◆ add_modifier_to_province()

void sys::add_modifier_to_province ( sys::state state,
dcon::province_id  target_prov,
dcon::modifier_id  mod_id,
sys::date  expiration 
)

Definition at line 75 of file modifiers.cpp.

Here is the caller graph for this function:

◆ apply_modifier_values_to_nation()

void sys::apply_modifier_values_to_nation ( sys::state state,
dcon::nation_id  target_nation,
dcon::modifier_id  mod_id 
)

Definition at line 14 of file modifiers.cpp.

Here is the caller graph for this function:

◆ apply_modifier_values_to_province()

void sys::apply_modifier_values_to_province ( sys::state state,
dcon::province_id  target_prov,
dcon::modifier_id  mod_id 
)

Definition at line 39 of file modifiers.cpp.

◆ apply_scaled_modifier_values_to_nation()

void sys::apply_scaled_modifier_values_to_nation ( sys::state state,
dcon::nation_id  target_nation,
dcon::modifier_id  mod_id,
float  scale 
)

Definition at line 26 of file modifiers.cpp.

Here is the caller graph for this function:

◆ blue_from_int()

float sys::blue_from_int ( uint32_t  v)
inline

Definition at line 15 of file container_types.hpp.

Here is the caller graph for this function:

◆ bulk_apply_masked_modifier_to_nations()

template<typename F >
void sys::bulk_apply_masked_modifier_to_nations ( sys::state state,
dcon::modifier_id  m,
F const &  mask_functor 
)

Definition at line 123 of file modifiers.cpp.

Here is the caller graph for this function:

◆ bulk_apply_masked_modifier_to_provinces()

template<typename F >
void sys::bulk_apply_masked_modifier_to_provinces ( sys::state state,
dcon::modifier_id  mod_id,
F const &  mask_functor 
)

Definition at line 156 of file modifiers.cpp.

Here is the call graph for this function:

◆ bulk_apply_modifier_to_provinces()

void sys::bulk_apply_modifier_to_provinces ( sys::state state,
dcon::modifier_id  mod_id 
)

Definition at line 194 of file modifiers.cpp.

Here is the call graph for this function:

◆ bulk_apply_scaled_modifier_to_nations()

template<typename F >
void sys::bulk_apply_scaled_modifier_to_nations ( sys::state state,
dcon::modifier_id  m,
F const &  scale_functor 
)

Definition at line 140 of file modifiers.cpp.

Here is the caller graph for this function:

◆ bulk_apply_scaled_modifier_to_provinces()

template<typename F >
void sys::bulk_apply_scaled_modifier_to_provinces ( sys::state state,
dcon::modifier_id  mod_id,
F const &  scale_functor 
)

Definition at line 212 of file modifiers.cpp.

Here is the call graph for this function:

◆ civil_from_days()

constexpr year_month_day sys::civil_from_days ( int64_t  z)
constexprnoexcept

Definition at line 16 of file date_interface.cpp.

Here is the caller graph for this function:

◆ days_difference()

int32_t sys::days_difference ( year_month_day  start,
year_month_day  end 
)

Definition at line 48 of file date_interface.cpp.

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

◆ days_from_civil()

constexpr int sys::days_from_civil ( int  y,
unsigned  m,
unsigned  d 
)
constexprnoexcept

Definition at line 7 of file date_interface.cpp.

Here is the caller graph for this function:

◆ deserialize() [1/6]

uint8_t const * sys::deserialize ( uint8_t const *  ptr_in,
ankerl::unordered_dense::map< dcon::modifier_id, dcon::gfx_object_id, sys::modifier_hash > &  vec 
)
inline

Definition at line 122 of file serialization.hpp.

◆ deserialize() [2/6]

uint8_t const * sys::deserialize ( uint8_t const *  ptr_in,
ankerl::unordered_dense::map< dcon::text_key, uint32_t, text::vector_backed_ci_hash, text::vector_backed_ci_eq > &  vec 
)
inline

Definition at line 88 of file serialization.hpp.

◆ deserialize() [3/6]

uint8_t const * sys::deserialize ( uint8_t const *  ptr_in,
ankerl::unordered_dense::map< uint16_t, dcon::text_key > &  vec 
)
inline

Definition at line 142 of file serialization.hpp.

◆ deserialize() [4/6]

uint8_t const * sys::deserialize ( uint8_t const *  ptr_in,
ankerl::unordered_dense::set< dcon::text_key, text::vector_backed_ci_hash, text::vector_backed_ci_eq > &  vec 
)
inline

Definition at line 100 of file serialization.hpp.

◆ deserialize() [5/6]

template<typename T >
uint8_t const * sys::deserialize ( uint8_t const *  ptr_in,
std::vector< T > &  vec 
)
inline

Definition at line 24 of file serialization.hpp.

Here is the caller graph for this function:

◆ deserialize() [6/6]

template<typename T , typename tag_type >
uint8_t const * sys::deserialize ( uint8_t const *  ptr_in,
tagged_vector< T, tag_type > &  vec 
)
inline

Definition at line 58 of file serialization.hpp.

Here is the call graph for this function:

◆ extract_mod_information()

mod_identifier sys::extract_mod_information ( uint8_t const *  ptr_in,
uint64_t  file_size 
)

Definition at line 87 of file serialization.cpp.

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

◆ green_from_int()

float sys::green_from_int ( uint32_t  v)
inline

Definition at line 12 of file container_types.hpp.

Here is the caller graph for this function:

◆ hsv_to_rgb()

uint32_t sys::hsv_to_rgb ( hsv  v)
inline

Definition at line 68 of file container_types.hpp.

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

◆ int_blue_from_int()

int32_t sys::int_blue_from_int ( uint32_t  v)
inline

Definition at line 28 of file container_types.hpp.

Here is the caller graph for this function:

◆ int_green_from_int()

int32_t sys::int_green_from_int ( uint32_t  v)
inline

Definition at line 25 of file container_types.hpp.

Here is the caller graph for this function:

◆ int_red_from_int()

int32_t sys::int_red_from_int ( uint32_t  v)
inline

Definition at line 22 of file container_types.hpp.

Here is the caller graph for this function:

◆ is_leap_year()

bool sys::is_leap_year ( int32_t  year)

Definition at line 52 of file date_interface.cpp.

Here is the caller graph for this function:

◆ is_playable_date()

bool sys::is_playable_date ( date  d,
absolute_time_point  start,
absolute_time_point  end 
)

Definition at line 44 of file date_interface.cpp.

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

◆ list_pop_types()

void sys::list_pop_types ( sys::state state,
parsers::scenario_building_context context 
)

Definition at line 1716 of file system_state.cpp.

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

◆ load_mod_path()

uint8_t const * sys::load_mod_path ( uint8_t const *  ptr_in,
sys::state state 
)

Definition at line 63 of file serialization.cpp.

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

◆ make_time_string()

std::string sys::make_time_string ( uint64_t  value)

Definition at line 997 of file serialization.cpp.

Here is the caller graph for this function:

◆ memcpy_deserialize()

template<typename T >
uint8_t const * sys::memcpy_deserialize ( uint8_t const *  ptr_in,
T obj 
)
inline

Definition at line 39 of file serialization.hpp.

Here is the caller graph for this function:

◆ memcpy_serialize()

template<typename T >
uint8_t * sys::memcpy_serialize ( uint8_t ptr_in,
T const &  obj 
)
inline

Definition at line 33 of file serialization.hpp.

Here is the caller graph for this function:

◆ pack_color() [1/2]

uint32_t sys::pack_color ( float  r,
float  g,
float  b 
)
inline

Definition at line 18 of file container_types.hpp.

◆ pack_color() [2/2]

uint32_t sys::pack_color ( int32_t  r,
int32_t  g,
int32_t  b 
)
inline

Definition at line 31 of file container_types.hpp.

◆ read_mod_path()

void sys::read_mod_path ( uint8_t const *  ptr_in,
uint8_t const *  lim,
native_string path_out 
)

Definition at line 50 of file serialization.cpp.

Here is the caller graph for this function:

◆ read_save_header()

uint8_t const * sys::read_save_header ( uint8_t const *  ptr_in,
save_header header_out 
)

Definition at line 22 of file serialization.cpp.

Here is the caller graph for this function:

◆ read_save_section()

uint8_t const * sys::read_save_section ( uint8_t const *  ptr_in,
uint8_t const *  section_end,
sys::state state 
)

Definition at line 680 of file serialization.cpp.

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

◆ read_scenario_header()

uint8_t const * sys::read_scenario_header ( uint8_t const *  ptr_in,
scenario_header header_out 
)

Definition at line 15 of file serialization.cpp.

Here is the caller graph for this function:

◆ read_scenario_section()

uint8_t const * sys::read_scenario_section ( uint8_t const *  ptr_in,
uint8_t const *  section_end,
sys::state state 
)

Definition at line 137 of file serialization.cpp.

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

◆ recreate_national_modifiers()

void sys::recreate_national_modifiers ( sys::state state)

Definition at line 248 of file modifiers.cpp.

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

◆ recreate_province_modifiers()

void sys::recreate_province_modifiers ( sys::state state)

Definition at line 560 of file modifiers.cpp.

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

◆ red_from_int()

float sys::red_from_int ( uint32_t  v)
inline

Definition at line 9 of file container_types.hpp.

Here is the caller graph for this function:

◆ remove_expired_modifiers_from_nation()

void sys::remove_expired_modifiers_from_nation ( sys::state state,
dcon::nation_id  target_nation 
)

◆ remove_expired_modifiers_from_province()

void sys::remove_expired_modifiers_from_province ( sys::state state,
dcon::province_id  target_prov 
)

◆ remove_modifier_from_nation()

void sys::remove_modifier_from_nation ( sys::state state,
dcon::nation_id  target_nation,
dcon::modifier_id  mod_id 
)

Definition at line 87 of file modifiers.cpp.

Here is the caller graph for this function:

◆ remove_modifier_from_province()

void sys::remove_modifier_from_province ( sys::state state,
dcon::province_id  target_prov,
dcon::modifier_id  mod_id 
)

Definition at line 98 of file modifiers.cpp.

Here is the caller graph for this function:

◆ repopulate_modifier_effects()

void sys::repopulate_modifier_effects ( sys::state state)

Definition at line 653 of file modifiers.cpp.

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

◆ rgb_to_hsv()

hsv sys::rgb_to_hsv ( uint32_t  v)
inline

Definition at line 41 of file container_types.hpp.

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

◆ serialize() [1/6]

uint8_t * sys::serialize ( uint8_t ptr_in,
ankerl::unordered_dense::map< dcon::modifier_id, dcon::gfx_object_id, sys::modifier_hash > const &  vec 
)
inline

Definition at line 118 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize() [2/6]

uint8_t * sys::serialize ( uint8_t ptr_in,
ankerl::unordered_dense::map< dcon::text_key, uint32_t, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &  vec 
)
inline

Definition at line 78 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize() [3/6]

uint8_t * sys::serialize ( uint8_t ptr_in,
ankerl::unordered_dense::map< uint16_t, dcon::text_key > const &  vec 
)
inline

Definition at line 139 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize() [4/6]

uint8_t * sys::serialize ( uint8_t ptr_in,
ankerl::unordered_dense::set< dcon::text_key, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &  vec 
)
inline

Definition at line 83 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize() [5/6]

template<typename T >
uint8_t * sys::serialize ( uint8_t ptr_in,
std::vector< T > const &  vec 
)
inline

Definition at line 16 of file serialization.hpp.

Here is the caller graph for this function:

◆ serialize() [6/6]

template<typename T , typename tag_type >
uint8_t * sys::serialize ( uint8_t ptr_in,
tagged_vector< T, tag_type > const &  vec 
)
inline

Definition at line 50 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize_size() [1/6]

size_t sys::serialize_size ( ankerl::unordered_dense::map< dcon::modifier_id, dcon::gfx_object_id, sys::modifier_hash > const &  vec)
inline

Definition at line 113 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize_size() [2/6]

size_t sys::serialize_size ( ankerl::unordered_dense::map< dcon::text_key, uint32_t, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &  vec)
inline

Definition at line 66 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize_size() [3/6]

size_t sys::serialize_size ( ankerl::unordered_dense::map< uint16_t, dcon::text_key > const &  vec)
inline

Definition at line 135 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize_size() [4/6]

size_t sys::serialize_size ( ankerl::unordered_dense::set< dcon::text_key, text::vector_backed_ci_hash, text::vector_backed_ci_eq > const &  vec)
inline

Definition at line 72 of file serialization.hpp.

Here is the call graph for this function:

◆ serialize_size() [5/6]

template<typename T >
size_t sys::serialize_size ( std::vector< T > const &  vec)
inline

Definition at line 11 of file serialization.hpp.

Here is the caller graph for this function:

◆ serialize_size() [6/6]

template<typename T , typename tag_type >
size_t sys::serialize_size ( tagged_vector< T, tag_type > const &  vec)
inline

Definition at line 45 of file serialization.hpp.

Here is the call graph for this function:

◆ sizeof_mod_path()

size_t sys::sizeof_mod_path ( native_string const &  path_in)

Definition at line 79 of file serialization.cpp.

Here is the caller graph for this function:

◆ sizeof_save_header()

size_t sys::sizeof_save_header ( save_header const &  header_in)

Definition at line 46 of file serialization.cpp.

Here is the caller graph for this function:

◆ sizeof_save_section()

size_t sys::sizeof_save_section ( sys::state state)

Definition at line 779 of file serialization.cpp.

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

◆ sizeof_scenario_header()

size_t sys::sizeof_scenario_header ( scenario_header const &  header_in)

Definition at line 42 of file serialization.cpp.

Here is the caller graph for this function:

◆ sizeof_scenario_section()

scenario_size sys::sizeof_scenario_section ( sys::state state)

Definition at line 501 of file serialization.cpp.

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

◆ toggle_modifier_from_province()

void sys::toggle_modifier_from_province ( sys::state state,
dcon::province_id  target_prov,
dcon::modifier_id  mod_id,
sys::date  expiration 
)

Definition at line 109 of file modifiers.cpp.

Here is the caller graph for this function:

◆ try_read_save_file()

bool sys::try_read_save_file ( sys::state state,
native_string_view  name 
)

Definition at line 1095 of file serialization.cpp.

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

◆ try_read_scenario_and_save_file()

bool sys::try_read_scenario_and_save_file ( sys::state state,
native_string_view  name 
)

Definition at line 911 of file serialization.cpp.

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

◆ try_read_scenario_as_save_file()

bool sys::try_read_scenario_as_save_file ( sys::state state,
native_string_view  name 
)

Definition at line 954 of file serialization.cpp.

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

◆ try_read_scenario_file()

bool sys::try_read_scenario_file ( sys::state state,
native_string_view  name 
)

Definition at line 875 of file serialization.cpp.

Here is the call graph for this function:

◆ update_modifier_effects()

void sys::update_modifier_effects ( sys::state state)

Definition at line 661 of file modifiers.cpp.

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

◆ update_single_nation_modifiers()

void sys::update_single_nation_modifiers ( sys::state state,
dcon::nation_id  n 
)

Definition at line 426 of file modifiers.cpp.

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

◆ with_decompressed_section()

template<typename T >
uint8_t const * sys::with_decompressed_section ( uint8_t const *  ptr_in,
T const &  function 
)

Definition at line 119 of file serialization.cpp.

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

◆ write_compressed_section()

uint8_t * sys::write_compressed_section ( uint8_t ptr_out,
uint8_t const *  ptr_in,
uint32_t  uncompressed_size 
)

Definition at line 106 of file serialization.cpp.

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

◆ write_mod_path()

uint8_t * sys::write_mod_path ( uint8_t ptr_in,
native_string const &  path_in 
)

Definition at line 71 of file serialization.cpp.

Here is the caller graph for this function:

◆ write_save_file()

void sys::write_save_file ( sys::state state,
save_type  type,
std::string const &  name 
)

Definition at line 1005 of file serialization.cpp.

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

◆ write_save_header()

uint8_t * sys::write_save_header ( uint8_t ptr_in,
save_header const &  header_in 
)

Definition at line 35 of file serialization.cpp.

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

◆ write_save_section()

uint8_t * sys::write_save_section ( uint8_t ptr_in,
sys::state state 
)

Definition at line 734 of file serialization.cpp.

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

◆ write_scenario_file()

void sys::write_scenario_file ( sys::state state,
native_string_view  name,
uint32_t  count 
)

Definition at line 827 of file serialization.cpp.

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

◆ write_scenario_header()

uint8_t * sys::write_scenario_header ( uint8_t ptr_in,
scenario_header const &  header_in 
)

Definition at line 29 of file serialization.cpp.

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

◆ write_scenario_section()

uint8_t * sys::write_scenario_section ( uint8_t ptr_in,
sys::state state 
)

Definition at line 320 of file serialization.cpp.

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

Variable Documentation

◆ max_autosaves

constexpr int32_t sys::max_autosaves = 16
inlineconstexpr

Definition at line 176 of file constants.hpp.

◆ max_event_options

constexpr int32_t sys::max_event_options = 8
constexpr

Definition at line 562 of file constants.hpp.

◆ max_languages

constexpr uint32_t sys::max_languages = 64
constexpr

Definition at line 563 of file constants.hpp.

◆ message_setting_map

constexpr msg_setting_entry sys::message_setting_map[size_t(message_base_type::count)]
inlineconstexpr

Definition at line 417 of file constants.hpp.

◆ save_file_version

constexpr uint32_t sys::save_file_version = 42
inlineconstexpr

Definition at line 154 of file serialization.hpp.

◆ scenario_file_version

constexpr uint32_t sys::scenario_file_version = 133 + save_file_version
inlineconstexpr

Definition at line 155 of file serialization.hpp.

◆ tooltip_width

constexpr int32_t sys::tooltip_width = 400
inlineconstexpr

Definition at line 458 of file system_state.cpp.

◆ ui_scales

constexpr float sys::ui_scales[] = {0.25f, 0.30f, 0.35f, 0.5f, 0.75f, 1.0f, 1.25f, 1.5f, 1.75f, 2.0f, 2.5f, 3.0f}
inlineconstexpr

Definition at line 166 of file constants.hpp.

◆ ui_scales_count

constexpr uint32_t sys::ui_scales_count = 12
inlineconstexpr

Definition at line 167 of file constants.hpp.