Project Alice
Loading...
Searching...
No Matches
commands.hpp File Reference
#include "dcon_generated.hpp"
#include "common_types.hpp"
#include "events.hpp"
#include "diplomatic_messages.hpp"
Include dependency graph for commands.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  command::pbutton_data
 
struct  command::nbutton_data
 
struct  command::national_focus_data
 
struct  command::start_research_data
 
struct  command::make_leader_data
 
struct  command::save_game_data
 
struct  command::province_building_data
 
struct  command::factory_building_data
 
struct  command::diplo_action_data
 
struct  command::naval_unit_construction_data
 
struct  command::rally_point_data
 
struct  command::land_unit_construction_data
 
struct  command::factory_data
 
struct  command::tag_target_data
 
struct  command::influence_action_data
 
struct  command::influence_priority_data
 
struct  command::generic_location_data
 
struct  command::cheat_location_data
 
struct  command::movement_data
 
struct  command::political_party_data
 
struct  command::reform_selection_data
 
struct  command::issue_selection_data
 
struct  command::budget_settings_data
 
struct  command::war_target_data
 
struct  command::crisis_join_data
 
struct  command::stockpile_settings_data
 
struct  command::decision_data
 
struct  command::message_data
 
struct  command::state_transfer_data
 
struct  command::call_to_arms_data
 
struct  command::pending_human_n_event_data
 
struct  command::pending_human_f_n_event_data
 
struct  command::pending_human_p_event_data
 
struct  command::pending_human_f_p_event_data
 
struct  command::cb_fabrication_data
 
struct  command::new_war_data
 
struct  command::new_war_goal_data
 
struct  command::crisis_invitation_data
 
struct  command::new_offer_data
 
struct  command::offer_wargoal_data
 
struct  command::army_movement_data
 
struct  command::navy_movement_data
 
struct  command::merge_army_data
 
struct  command::merge_navy_data
 
struct  command::new_general_data
 
struct  command::new_admiral_data
 
struct  command::naval_battle_data
 
struct  command::land_battle_data
 
struct  command::split_regiments_data
 
struct  command::split_ships_data
 
struct  command::cheat_data
 
struct  command::cheat_data_int
 
struct  command::cheat_event_data
 
struct  command::cheat_invention_data_t
 
struct  command::chat_message_data
 
struct  command::nation_pick_data
 
struct  command::advance_tick_data
 
struct  command::notify_save_loaded_data
 
struct  command::notify_reload_data
 
struct  command::notify_leaves_data
 
struct  command::payload
 
union  command::payload::dtype
 

Namespaces

namespace  command
 

Enumerations

enum class  command::command_type : uint8_t {
  command::invalid = 0 , command::change_nat_focus = 1 , command::start_research = 2 , command::make_leader = 3 ,
  command::begin_province_building_construction = 4 , command::increase_relations = 5 , command::decrease_relations = 6 , command::begin_factory_building_construction = 7 ,
  command::begin_naval_unit_construction = 8 , command::cancel_naval_unit_construction = 9 , command::change_factory_settings = 10 , command::delete_factory = 11 ,
  command::make_vassal = 12 , command::release_and_play_nation = 13 , command::war_subsidies = 14 , command::cancel_war_subsidies = 15 ,
  command::change_budget = 16 , command::start_election = 17 , command::change_influence_priority = 18 , command::discredit_advisors = 19 ,
  command::expel_advisors = 20 , command::ban_embassy = 21 , command::increase_opinion = 22 , command::decrease_opinion = 23 ,
  command::add_to_sphere = 24 , command::remove_from_sphere = 25 , command::upgrade_colony_to_state = 26 , command::invest_in_colony = 27 ,
  command::abandon_colony = 28 , command::finish_colonization = 29 , command::intervene_in_war = 30 , command::suppress_movement = 31 ,
  command::civilize_nation = 32 , command::appoint_ruling_party = 33 , command::change_issue_option = 34 , command::change_reform_option = 35 ,
  command::become_interested_in_crisis = 36 , command::take_sides_in_crisis = 37 , command::begin_land_unit_construction = 38 , command::cancel_land_unit_construction = 39 ,
  command::change_stockpile_settings = 40 , command::take_decision = 41 , command::make_n_event_choice = 42 , command::make_f_n_event_choice = 43 ,
  command::make_p_event_choice = 44 , command::make_f_p_event_choice = 45 , command::fabricate_cb = 46 , command::cancel_cb_fabrication = 47 ,
  command::ask_for_military_access = 48 , command::ask_for_alliance = 49 , command::call_to_arms = 50 , command::respond_to_diplomatic_message = 51 ,
  command::cancel_military_access = 52 , command::cancel_alliance = 53 , command::cancel_given_military_access = 54 , command::declare_war = 55 ,
  command::add_war_goal = 56 , command::start_peace_offer = 58 , command::add_peace_offer_term = 59 , command::send_peace_offer = 60 ,
  command::move_army = 61 , command::move_navy = 62 , command::embark_army = 63 , command::merge_armies = 64 ,
  command::merge_navies = 65 , command::split_army = 66 , command::split_navy = 67 , command::delete_army = 68 ,
  command::delete_navy = 69 , command::designate_split_regiments = 70 , command::designate_split_ships = 71 , command::naval_retreat = 72 ,
  command::land_retreat = 73 , command::start_crisis_peace_offer = 74 , command::invite_to_crisis = 75 , command::add_wargoal_to_crisis_offer = 76 ,
  command::send_crisis_peace_offer = 77 , command::change_admiral = 78 , command::change_general = 79 , command::toggle_mobilization = 80 ,
  command::give_military_access = 81 , command::set_rally_point = 82 , command::save_game = 83 , command::cancel_factory_building_construction = 84 ,
  command::disband_undermanned = 85 , command::even_split_army = 86 , command::even_split_navy = 87 , command::toggle_hunt_rebels = 88 ,
  command::toggle_select_province = 89 , command::toggle_immigrator_province = 90 , command::state_transfer = 91 , command::release_subject = 92 ,
  command::enable_debt = 93 , command::move_capital = 94 , command::toggle_unit_ai_control = 95 , command::toggle_mobilized_is_ai_controlled = 96 ,
  command::toggle_interested_in_alliance = 97 , command::pbutton_script = 98 , command::nbutton_script = 99 , command::notify_player_ban = 106 ,
  command::notify_player_kick = 107 , command::notify_player_picks_nation = 108 , command::notify_player_joins = 109 , command::notify_player_leaves = 110 ,
  command::notify_player_oos = 111 , command::notify_save_loaded = 112 , command::notify_start_game = 113 , command::notify_stop_game = 114 ,
  command::notify_pause_game = 115 , command::notify_reload = 116 , command::advance_tick = 120 , command::chat_message = 121 ,
  command::console_command = 255
}
 

Functions

void command::save_game (sys::state &state, dcon::nation_id source, bool and_quit)
 
void command::set_rally_point (sys::state &state, dcon::nation_id source, dcon::province_id location, bool naval, bool enable)
 
bool command::is_console_command (command_type t)
 
void command::set_national_focus (sys::state &state, dcon::nation_id source, dcon::state_instance_id target_state, dcon::national_focus_id focus)
 
bool command::can_set_national_focus (sys::state &state, dcon::nation_id source, dcon::state_instance_id target_state, dcon::national_focus_id focus)
 
void command::start_research (sys::state &state, dcon::nation_id source, dcon::technology_id tech)
 
bool command::can_start_research (sys::state &state, dcon::nation_id source, dcon::technology_id tech)
 
void command::make_leader (sys::state &state, dcon::nation_id source, bool general)
 
bool command::can_make_leader (sys::state &state, dcon::nation_id source, bool general)
 
void command::decrease_relations (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_decrease_relations (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::begin_province_building_construction (sys::state &state, dcon::nation_id source, dcon::province_id prov, economy::province_building_type type)
 
bool command::can_begin_province_building_construction (sys::state &state, dcon::nation_id source, dcon::province_id p, economy::province_building_type type)
 
void command::begin_factory_building_construction (sys::state &state, dcon::nation_id source, dcon::state_instance_id location, dcon::factory_type_id type, bool is_upgrade)
 
bool command::can_begin_factory_building_construction (sys::state &state, dcon::nation_id source, dcon::state_instance_id location, dcon::factory_type_id type, bool is_upgrade)
 
void command::cancel_factory_building_construction (sys::state &state, dcon::nation_id source, dcon::state_instance_id location, dcon::factory_type_id type)
 
bool command::can_cancel_factory_building_construction (sys::state &state, dcon::nation_id source, dcon::state_instance_id location, dcon::factory_type_id type)
 
void command::start_naval_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::unit_type_id type, dcon::province_id template_province)
 
bool command::can_start_naval_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::unit_type_id type, dcon::province_id template_province)
 
void command::start_land_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::culture_id soldier_culture, dcon::unit_type_id type, dcon::province_id template_province)
 
bool command::can_start_land_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::culture_id soldier_culture, dcon::unit_type_id type, dcon::province_id template_province)
 
void command::cancel_naval_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::unit_type_id type)
 
bool command::can_cancel_naval_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::unit_type_id type)
 
void command::cancel_land_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::culture_id soldier_culture, dcon::unit_type_id type)
 
bool command::can_cancel_land_unit_construction (sys::state &state, dcon::nation_id source, dcon::province_id location, dcon::culture_id soldier_culture, dcon::unit_type_id type)
 
void command::delete_factory (sys::state &state, dcon::nation_id source, dcon::factory_id f)
 
bool command::can_delete_factory (sys::state &state, dcon::nation_id source, dcon::factory_id f)
 
void command::change_factory_settings (sys::state &state, dcon::nation_id source, dcon::factory_id f, uint8_t priority, bool subsidized)
 
bool command::can_change_factory_settings (sys::state &state, dcon::nation_id source, dcon::factory_id f, uint8_t priority, bool subsidized)
 
void command::make_vassal (sys::state &state, dcon::nation_id source, dcon::national_identity_id t)
 
bool command::can_make_vassal (sys::state &state, dcon::nation_id source, dcon::national_identity_id t)
 
void command::release_and_play_as (sys::state &state, dcon::nation_id source, dcon::national_identity_id t)
 
bool command::can_release_and_play_as (sys::state &state, dcon::nation_id source, dcon::national_identity_id t)
 
void command::give_war_subsidies (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_give_war_subsidies (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::cancel_war_subsidies (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_cancel_war_subsidies (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::increase_relations (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_increase_relations (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
budget_settings_data command::make_empty_budget_settings ()
 
void command::change_budget_settings (sys::state &state, dcon::nation_id source, budget_settings_data const &values)
 
bool command::can_change_budget_settings (sys::state &state, dcon::nation_id source, budget_settings_data const &values)
 
void command::start_election (sys::state &state, dcon::nation_id source)
 
bool command::can_start_election (sys::state &state, dcon::nation_id source)
 
void command::change_influence_priority (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, uint8_t priority)
 
bool command::can_change_influence_priority (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, uint8_t priority)
 
void command::discredit_advisors (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
bool command::can_discredit_advisors (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::expel_advisors (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
bool command::can_expel_advisors (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::ban_embassy (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
bool command::can_ban_embassy (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::increase_opinion (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target)
 
bool command::can_increase_opinion (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target)
 
void command::execute_increase_opinion (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target)
 
void command::decrease_opinion (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
bool command::can_decrease_opinion (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::execute_decrease_opinion (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::add_to_sphere (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target)
 
bool command::can_add_to_sphere (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target)
 
void command::execute_add_to_sphere (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target)
 
void command::remove_from_sphere (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
bool command::can_remove_from_sphere (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::execute_remove_from_sphere (sys::state &state, dcon::nation_id source, dcon::nation_id influence_target, dcon::nation_id affected_gp)
 
void command::upgrade_colony_to_state (sys::state &state, dcon::nation_id source, dcon::state_instance_id si)
 
bool command::can_upgrade_colony_to_state (sys::state &state, dcon::nation_id source, dcon::state_instance_id si)
 
void command::invest_in_colony (sys::state &state, dcon::nation_id source, dcon::province_id pr)
 
bool command::can_invest_in_colony (sys::state &state, dcon::nation_id source, dcon::province_id p)
 
void command::abandon_colony (sys::state &state, dcon::nation_id source, dcon::province_id pr)
 
bool command::can_abandon_colony (sys::state &state, dcon::nation_id source, dcon::province_id pr)
 
void command::finish_colonization (sys::state &state, dcon::nation_id source, dcon::province_id pr)
 
bool command::can_finish_colonization (sys::state &state, dcon::nation_id source, dcon::province_id p)
 
void command::intervene_in_war (sys::state &state, dcon::nation_id source, dcon::war_id w, bool for_attacker)
 
bool command::can_intervene_in_war (sys::state &state, dcon::nation_id source, dcon::war_id w, bool for_attacker)
 
void command::execute_intervene_in_war (sys::state &state, dcon::nation_id source, dcon::war_id w, bool for_attacker)
 
void command::suppress_movement (sys::state &state, dcon::nation_id source, dcon::movement_id m)
 
bool command::can_suppress_movement (sys::state &state, dcon::nation_id source, dcon::movement_id m)
 
void command::civilize_nation (sys::state &state, dcon::nation_id source)
 
bool command::can_civilize_nation (sys::state &state, dcon::nation_id source)
 
void command::appoint_ruling_party (sys::state &state, dcon::nation_id source, dcon::political_party_id pa)
 
bool command::can_appoint_ruling_party (sys::state &state, dcon::nation_id source, dcon::political_party_id p)
 
void command::enact_reform (sys::state &state, dcon::nation_id source, dcon::reform_option_id r)
 
bool command::can_enact_reform (sys::state &state, dcon::nation_id source, dcon::reform_option_id r)
 
void command::enact_issue (sys::state &state, dcon::nation_id source, dcon::issue_option_id i)
 
bool command::can_enact_issue (sys::state &state, dcon::nation_id source, dcon::issue_option_id i)
 
void command::become_interested_in_crisis (sys::state &state, dcon::nation_id source)
 
bool command::can_become_interested_in_crisis (sys::state &state, dcon::nation_id source)
 
void command::take_sides_in_crisis (sys::state &state, dcon::nation_id source, bool join_attacker)
 
bool command::can_take_sides_in_crisis (sys::state &state, dcon::nation_id source, bool join_attacker)
 
void command::change_stockpile_settings (sys::state &state, dcon::nation_id source, dcon::commodity_id c, float target_amount, bool draw_on_stockpiles)
 
bool command::can_change_stockpile_settings (sys::state &state, dcon::nation_id source, dcon::commodity_id c, float target_amount, bool draw_on_stockpiles)
 
void command::take_decision (sys::state &state, dcon::nation_id source, dcon::decision_id d)
 
bool command::can_take_decision (sys::state &state, dcon::nation_id source, dcon::decision_id d)
 
void command::make_event_choice (sys::state &state, event::pending_human_n_event const &e, uint8_t option_id)
 
void command::make_event_choice (sys::state &state, event::pending_human_f_n_event const &e, uint8_t option_id)
 
void command::make_event_choice (sys::state &state, event::pending_human_p_event const &e, uint8_t option_id)
 
void command::make_event_choice (sys::state &state, event::pending_human_f_p_event const &e, uint8_t option_id)
 
void command::fabricate_cb (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::cb_type_id type)
 
bool command::can_fabricate_cb (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::cb_type_id type)
 
void command::cancel_cb_fabrication (sys::state &state, dcon::nation_id source)
 
bool command::can_cancel_cb_fabrication (sys::state &state, dcon::nation_id source)
 
void command::ask_for_military_access (sys::state &state, dcon::nation_id asker, dcon::nation_id target)
 
bool command::can_ask_for_access (sys::state &state, dcon::nation_id asker, dcon::nation_id target, bool ignore_cost)
 
void command::give_military_access (sys::state &state, dcon::nation_id asker, dcon::nation_id target)
 
bool command::can_give_military_access (sys::state &state, dcon::nation_id asker, dcon::nation_id target, bool ignore_cost)
 
void command::ask_for_alliance (sys::state &state, dcon::nation_id asker, dcon::nation_id target)
 
bool command::can_ask_for_alliance (sys::state &state, dcon::nation_id asker, dcon::nation_id target, bool ignore_cost)
 
void command::execute_ask_for_alliance (sys::state &state, dcon::nation_id asker, dcon::nation_id target)
 
void command::toggle_interested_in_alliance (sys::state &state, dcon::nation_id asker, dcon::nation_id target)
 
bool command::can_toggle_interested_in_alliance (sys::state &state, dcon::nation_id asker, dcon::nation_id target)
 
void command::call_to_arms (sys::state &state, dcon::nation_id asker, dcon::nation_id target, dcon::war_id w)
 
void command::execute_call_to_arms (sys::state &state, dcon::nation_id asker, dcon::nation_id target, dcon::war_id w)
 
bool command::can_call_to_arms (sys::state &state, dcon::nation_id asker, dcon::nation_id target, dcon::war_id w, bool ignore_cost)
 
void command::respond_to_diplomatic_message (sys::state &state, dcon::nation_id source, dcon::nation_id from, diplomatic_message::type type, bool accept)
 
void command::cancel_military_access (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_cancel_military_access (sys::state &state, dcon::nation_id source, dcon::nation_id target, bool ignore_cost)
 
void command::cancel_alliance (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_cancel_alliance (sys::state &state, dcon::nation_id source, dcon::nation_id target, bool ignore_cost)
 
void command::execute_cancel_alliance (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::cancel_given_military_access (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_cancel_given_military_access (sys::state &state, dcon::nation_id source, dcon::nation_id target, bool ignore_cost)
 
void command::declare_war (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation, bool call_attacker_allies)
 
bool command::can_declare_war (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
void command::execute_declare_war (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation, bool call_attacker_allies)
 
void command::add_war_goal (sys::state &state, dcon::nation_id source, dcon::war_id w, dcon::nation_id target, dcon::cb_type_id cb_type, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
bool command::can_add_war_goal (sys::state &state, dcon::nation_id source, dcon::war_id w, dcon::nation_id target, dcon::cb_type_id cb_type, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
void command::move_army (sys::state &state, dcon::nation_id source, dcon::army_id a, dcon::province_id dest, bool reset)
 
std::vector< dcon::province_id > command::can_move_army (sys::state &state, dcon::nation_id source, dcon::army_id a, dcon::province_id dest)
 
void command::move_navy (sys::state &state, dcon::nation_id source, dcon::navy_id n, dcon::province_id dest, bool reset)
 
std::vector< dcon::province_id > command::can_move_navy (sys::state &state, dcon::nation_id source, dcon::navy_id n, dcon::province_id dest)
 
void command::embark_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
bool command::can_embark_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::merge_armies (sys::state &state, dcon::nation_id source, dcon::army_id a, dcon::army_id b)
 
bool command::can_merge_armies (sys::state &state, dcon::nation_id source, dcon::army_id a, dcon::army_id b)
 
void command::merge_navies (sys::state &state, dcon::nation_id source, dcon::navy_id a, dcon::navy_id b)
 
bool command::can_merge_navies (sys::state &state, dcon::nation_id source, dcon::navy_id a, dcon::navy_id b)
 
void command::split_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
bool command::can_split_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::disband_undermanned_regiments (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
bool command::can_disband_undermanned_regiments (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::split_navy (sys::state &state, dcon::nation_id source, dcon::navy_id a)
 
bool command::can_split_navy (sys::state &state, dcon::nation_id source, dcon::navy_id a)
 
void command::evenly_split_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
bool command::can_evenly_split_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::toggle_rebel_hunting (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::toggle_unit_ai_control (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::toggle_mobilized_is_ai_controlled (sys::state &state, dcon::nation_id source)
 
void command::evenly_split_navy (sys::state &state, dcon::nation_id source, dcon::navy_id a)
 
bool command::can_evenly_split_navy (sys::state &state, dcon::nation_id source, dcon::navy_id a)
 
void command::delete_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
bool command::can_delete_army (sys::state &state, dcon::nation_id source, dcon::army_id a)
 
void command::delete_navy (sys::state &state, dcon::nation_id source, dcon::navy_id a)
 
bool command::can_delete_navy (sys::state &state, dcon::nation_id source, dcon::navy_id a)
 
void command::mark_regiments_to_split (sys::state &state, dcon::nation_id source, std::array< dcon::regiment_id, num_packed_units > const &list)
 
void command::mark_ships_to_split (sys::state &state, dcon::nation_id source, std::array< dcon::ship_id, num_packed_units > const &list)
 
void command::retreat_from_naval_battle (sys::state &state, dcon::nation_id source, dcon::naval_battle_id b)
 
bool command::can_retreat_from_naval_battle (sys::state &state, dcon::nation_id source, dcon::naval_battle_id b)
 
void command::retreat_from_land_battle (sys::state &state, dcon::nation_id source, dcon::land_battle_id b)
 
bool command::can_retreat_from_land_battle (sys::state &state, dcon::nation_id source, dcon::land_battle_id b)
 
void command::change_general (sys::state &state, dcon::nation_id source, dcon::army_id a, dcon::leader_id l)
 
bool command::can_change_general (sys::state &state, dcon::nation_id source, dcon::army_id a, dcon::leader_id l)
 
void command::change_admiral (sys::state &state, dcon::nation_id source, dcon::navy_id a, dcon::leader_id l)
 
bool command::can_change_admiral (sys::state &state, dcon::nation_id source, dcon::navy_id a, dcon::leader_id l)
 
void command::invite_to_crisis (sys::state &state, dcon::nation_id source, dcon::nation_id invitation_to, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
bool command::can_invite_to_crisis (sys::state &state, dcon::nation_id source, dcon::nation_id invitation_to, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
void command::toggle_mobilization (sys::state &state, dcon::nation_id source)
 
void command::enable_debt (sys::state &state, dcon::nation_id source, bool debt_is_enabled)
 
void command::move_capital (sys::state &state, dcon::nation_id source, dcon::province_id prov)
 
bool command::can_move_capital (sys::state &state, dcon::nation_id source, dcon::province_id p)
 
void command::use_province_button (sys::state &state, dcon::nation_id source, dcon::gui_def_id d, dcon::province_id i)
 
bool command::can_use_province_button (sys::state &state, dcon::nation_id source, dcon::gui_def_id d, dcon::province_id p)
 
void command::use_nation_button (sys::state &state, dcon::nation_id source, dcon::gui_def_id d, dcon::nation_id n)
 
bool command::can_use_nation_button (sys::state &state, dcon::nation_id source, dcon::gui_def_id d, dcon::nation_id n)
 
void command::start_peace_offer (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::war_id war, bool is_concession)
 
bool command::can_start_peace_offer (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::war_id war, bool is_concession)
 
void command::execute_start_peace_offer (sys::state &state, dcon::nation_id source, dcon::nation_id target, dcon::war_id war, bool is_concession)
 
void command::add_to_peace_offer (sys::state &state, dcon::nation_id source, dcon::wargoal_id goal)
 
bool command::can_add_to_peace_offer (sys::state &state, dcon::nation_id source, dcon::wargoal_id goal)
 
void command::execute_add_to_peace_offer (sys::state &state, dcon::nation_id source, dcon::wargoal_id goal)
 
void command::send_peace_offer (sys::state &state, dcon::nation_id source)
 
bool command::can_send_peace_offer (sys::state &state, dcon::nation_id source)
 
void command::execute_send_peace_offer (sys::state &state, dcon::nation_id source)
 
void command::start_crisis_peace_offer (sys::state &state, dcon::nation_id source, bool is_concession)
 
bool command::can_start_crisis_peace_offer (sys::state &state, dcon::nation_id source, bool is_concession)
 
void command::execute_start_crisis_peace_offer (sys::state &state, dcon::nation_id source, bool is_concession)
 
void command::add_to_crisis_peace_offer (sys::state &state, dcon::nation_id source, dcon::nation_id wargoal_from, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
bool command::can_add_to_crisis_peace_offer (sys::state &state, dcon::nation_id source, dcon::nation_id wargoal_from, dcon::nation_id target, dcon::cb_type_id primary_cb, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation)
 
void command::send_crisis_peace_offer (sys::state &state, dcon::nation_id source)
 
bool command::can_send_crisis_peace_offer (sys::state &state, dcon::nation_id source)
 
void command::execute_send_crisis_peace_offer (sys::state &state, dcon::nation_id source)
 
void command::toggle_select_province (sys::state &state, dcon::nation_id source, dcon::province_id prov)
 
bool command::can_toggle_select_province (sys::state &state, dcon::nation_id source, dcon::province_id prov)
 
void command::toggle_immigrator_province (sys::state &state, dcon::nation_id source, dcon::province_id prov)
 
bool command::can_toggle_immigrator_province (sys::state &state, dcon::nation_id source, dcon::province_id prov)
 
void command::chat_message (sys::state &state, dcon::nation_id source, std::string_view body, dcon::nation_id target)
 
bool command::can_chat_message (sys::state &state, dcon::nation_id source, std::string_view body, dcon::nation_id target)
 
void command::release_subject (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_release_subject (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::state_transfer (sys::state &state, dcon::nation_id asker, dcon::nation_id target, dcon::state_definition_id sid)
 
bool command::can_state_transfer (sys::state &state, dcon::nation_id asker, dcon::nation_id target, dcon::state_definition_id sid)
 
void command::advance_tick (sys::state &state, dcon::nation_id source)
 
void command::notify_player_ban (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_notify_player_ban (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::notify_player_kick (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_notify_player_kick (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::notify_player_joins (sys::state &state, dcon::nation_id source, sys::player_name &name)
 
bool command::can_notify_player_joins (sys::state &state, dcon::nation_id source, sys::player_name &name)
 
void command::notify_player_leaves (sys::state &state, dcon::nation_id source, bool make_ai)
 
bool command::can_notify_player_leaves (sys::state &state, dcon::nation_id source, bool make_ai)
 
void command::notify_player_picks_nation (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
bool command::can_notify_player_picks_nation (sys::state &state, dcon::nation_id source, dcon::nation_id target)
 
void command::notify_player_oos (sys::state &state, dcon::nation_id source)
 
void command::notify_save_loaded (sys::state &state, dcon::nation_id source)
 
void command::notify_reload (sys::state &state, dcon::nation_id source)
 
void command::notify_start_game (sys::state &state, dcon::nation_id source)
 
void command::notify_stop_game (sys::state &state, dcon::nation_id source)
 
void command::notify_pause_game (sys::state &state, dcon::nation_id source)
 
void command::execute_command (sys::state &state, payload &c)
 
void command::execute_pending_commands (sys::state &state)
 
bool command::can_perform_command (sys::state &state, payload &c)
 
void command::notify_console_command (sys::state &state)
 

Variables

constexpr size_t command::num_packed_units = 10