Project Alice
|
#include <stdint.h>
#include <cstring>
#include "dcon_generated.hpp"
Go to the source code of this file.
Classes | |
union | trigger::payload |
Namespaces | |
namespace | effect |
namespace | trigger |
Macros | |
#define | EFFECT_BYTECODE_LIST |
#define | EFFECT_BYTECODE_ELEMENT(code, name, arg) constexpr inline uint16_t name = code; |
#define | EFFECT_BYTECODE_ELEMENT(code, name, arg) arg, |
#define | TRIGGER_BYTECODE_LIST |
#define | TRIGGER_BYTECODE_ELEMENT(code, name, arg) constexpr inline uint16_t name = code; |
#define | TRIGGER_BYTECODE_ELEMENT(code, name, arg) arg, |
Enumerations | |
enum class | trigger::slot_contents { trigger::empty = 0 , trigger::province = 1 , trigger::state = 2 , trigger::pop = 3 , trigger::nation = 4 , trigger::rebel = 5 } |
Functions | |
int32_t | effect::get_effect_non_scope_payload_size (uint16_t const *data) |
int32_t | effect::get_effect_scope_payload_size (uint16_t const *data) |
int32_t | effect::get_generic_effect_payload_size (uint16_t const *data) |
int32_t | effect::effect_scope_data_payload (uint16_t code) |
bool | effect::effect_scope_has_single_member (uint16_t const *source) |
template<typename T > | |
uint32_t | effect::recurse_over_effects (uint16_t *source, T const &f) |
int32_t | trigger::get_trigger_non_scope_payload_size (uint16_t const *data) |
int32_t | trigger::get_trigger_scope_payload_size (uint16_t const *data) |
int32_t | trigger::get_trigger_payload_size (uint16_t const *data) |
int32_t | trigger::trigger_scope_data_payload (uint16_t code) |
template<typename T > | |
uint16_t * | trigger::recurse_over_triggers (uint16_t *source, T const &f) |
uint32_t | trigger::count_subtriggers (uint16_t const *source) |
Variables | |
constexpr uint16_t | effect::no_payload = 0x4000 |
constexpr uint16_t | effect::is_random_scope = 0x2000 |
constexpr uint16_t | effect::scope_has_limit = 0x1000 |
constexpr uint16_t | effect::code_mask = 0x0FFF |
EFFECT_BYTECODE_LIST constexpr uint16_t | effect::first_scope_code = 0x01C0 |
constexpr uint16_t | effect::generic_scope = first_scope_code + 0x0000 |
constexpr uint16_t | effect::x_neighbor_province_scope = first_scope_code + 0x0001 |
constexpr uint16_t | effect::x_neighbor_country_scope = first_scope_code + 0x0002 |
constexpr uint16_t | effect::x_country_scope = first_scope_code + 0x0003 |
constexpr uint16_t | effect::x_country_scope_nation = first_scope_code + 0x0004 |
constexpr uint16_t | effect::x_empty_neighbor_province_scope = first_scope_code + 0x0005 |
constexpr uint16_t | effect::x_greater_power_scope = first_scope_code + 0x0006 |
constexpr uint16_t | effect::poor_strata_scope_nation = first_scope_code + 0x0007 |
constexpr uint16_t | effect::poor_strata_scope_state = first_scope_code + 0x0008 |
constexpr uint16_t | effect::poor_strata_scope_province = first_scope_code + 0x0009 |
constexpr uint16_t | effect::middle_strata_scope_nation = first_scope_code + 0x000A |
constexpr uint16_t | effect::middle_strata_scope_state = first_scope_code + 0x000B |
constexpr uint16_t | effect::middle_strata_scope_province = first_scope_code + 0x000C |
constexpr uint16_t | effect::rich_strata_scope_nation = first_scope_code + 0x000D |
constexpr uint16_t | effect::rich_strata_scope_state = first_scope_code + 0x000E |
constexpr uint16_t | effect::rich_strata_scope_province = first_scope_code + 0x000F |
constexpr uint16_t | effect::x_pop_scope_nation = first_scope_code + 0x0010 |
constexpr uint16_t | effect::x_pop_scope_state = first_scope_code + 0x0011 |
constexpr uint16_t | effect::x_pop_scope_province = first_scope_code + 0x0012 |
constexpr uint16_t | effect::x_owned_scope_nation = first_scope_code + 0x0013 |
constexpr uint16_t | effect::x_owned_scope_state = first_scope_code + 0x0014 |
constexpr uint16_t | effect::x_core_scope = first_scope_code + 0x0015 |
constexpr uint16_t | effect::x_state_scope = first_scope_code + 0x0016 |
constexpr uint16_t | effect::random_list_scope = first_scope_code + 0x0017 |
constexpr uint16_t | effect::random_scope = first_scope_code + 0x0018 |
constexpr uint16_t | effect::owner_scope_state = first_scope_code + 0x0019 |
constexpr uint16_t | effect::owner_scope_province = first_scope_code + 0x001A |
constexpr uint16_t | effect::controller_scope = first_scope_code + 0x001B |
constexpr uint16_t | effect::location_scope = first_scope_code + 0x001C |
constexpr uint16_t | effect::country_scope_pop = first_scope_code + 0x001D |
constexpr uint16_t | effect::country_scope_state = first_scope_code + 0x001E |
constexpr uint16_t | effect::capital_scope = first_scope_code + 0x001F |
constexpr uint16_t | effect::this_scope_nation = first_scope_code + 0x0020 |
constexpr uint16_t | effect::this_scope_state = first_scope_code + 0x0021 |
constexpr uint16_t | effect::this_scope_province = first_scope_code + 0x0022 |
constexpr uint16_t | effect::this_scope_pop = first_scope_code + 0x0023 |
constexpr uint16_t | effect::from_scope_nation = first_scope_code + 0x0024 |
constexpr uint16_t | effect::from_scope_state = first_scope_code + 0x0025 |
constexpr uint16_t | effect::from_scope_province = first_scope_code + 0x0026 |
constexpr uint16_t | effect::from_scope_pop = first_scope_code + 0x0027 |
constexpr uint16_t | effect::sea_zone_scope = first_scope_code + 0x0028 |
constexpr uint16_t | effect::cultural_union_scope = first_scope_code + 0x0029 |
constexpr uint16_t | effect::overlord_scope = first_scope_code + 0x002A |
constexpr uint16_t | effect::sphere_owner_scope = first_scope_code + 0x002B |
constexpr uint16_t | effect::independence_scope = first_scope_code + 0x002C |
constexpr uint16_t | effect::flashpoint_tag_scope = first_scope_code + 0x002D |
constexpr uint16_t | effect::crisis_state_scope = first_scope_code + 0x002E |
constexpr uint16_t | effect::state_scope_pop = first_scope_code + 0x002F |
constexpr uint16_t | effect::state_scope_province = first_scope_code + 0x0030 |
constexpr uint16_t | effect::x_substate_scope = first_scope_code + 0x0031 |
constexpr uint16_t | effect::capital_scope_province = first_scope_code + 0x0032 |
constexpr uint16_t | effect::x_core_scope_province = first_scope_code + 0x0033 |
constexpr uint16_t | effect::tag_scope = first_scope_code + 0x0034 |
constexpr uint16_t | effect::integer_scope = first_scope_code + 0x0035 |
constexpr uint16_t | effect::pop_type_scope_nation = first_scope_code + 0x0036 |
constexpr uint16_t | effect::pop_type_scope_state = first_scope_code + 0x0037 |
constexpr uint16_t | effect::pop_type_scope_province = first_scope_code + 0x0038 |
constexpr uint16_t | effect::region_proper_scope = first_scope_code + 0x0039 |
constexpr uint16_t | effect::region_scope = first_scope_code + 0x003A |
constexpr uint16_t | effect::if_scope = first_scope_code + 0x003B |
constexpr uint16_t | effect::else_if_scope = first_scope_code + 0x003C |
constexpr uint16_t | effect::x_event_country_scope = first_scope_code + 0x003D |
constexpr uint16_t | effect::x_decision_country_scope = first_scope_code + 0x003E |
constexpr uint16_t | effect::x_event_country_scope_nation = first_scope_code + 0x003F |
constexpr uint16_t | effect::x_decision_country_scope_nation = first_scope_code + 0x0040 |
constexpr uint16_t | effect::from_bounce_scope = first_scope_code + 0x0041 |
constexpr uint16_t | effect::this_bounce_scope = first_scope_code + 0x0042 |
constexpr uint16_t | effect::random_by_modifier_scope = first_scope_code + 0x0043 |
constexpr uint16_t | effect::x_neighbor_province_scope_nation = first_scope_code + 0x0044 |
constexpr uint16_t | effect::x_empty_neighbor_province_scope_nation = first_scope_code + 0x0045 |
constexpr uint16_t | effect::first_invalid_code = first_scope_code + 0x0046 |
constexpr int8_t | effect::data_sizes [] |
constexpr uint16_t | trigger::is_disjunctive_scope = 0x4000 |
constexpr uint16_t | trigger::is_existence_scope = 0x2000 |
constexpr uint16_t | trigger::association_mask = 0x7000 |
constexpr uint16_t | trigger::association_eq = 0x1000 |
constexpr uint16_t | trigger::association_gt = 0x2000 |
constexpr uint16_t | trigger::association_ge = 0x3000 |
constexpr uint16_t | trigger::association_lt = 0x4000 |
constexpr uint16_t | trigger::association_le = 0x5000 |
constexpr uint16_t | trigger::association_ne = 0x6000 |
constexpr uint16_t | trigger::no_payload = 0x0800 |
constexpr uint16_t | trigger::code_mask = 0x07FF |
TRIGGER_BYTECODE_LIST constexpr uint16_t | trigger::first_scope_code = 0x02E4 |
constexpr uint16_t | trigger::generic_scope = first_scope_code + 0x0000 |
constexpr uint16_t | trigger::x_neighbor_province_scope = first_scope_code + 0x0001 |
constexpr uint16_t | trigger::x_neighbor_country_scope_nation = first_scope_code + 0x0002 |
constexpr uint16_t | trigger::x_neighbor_country_scope_pop = first_scope_code + 0x0003 |
constexpr uint16_t | trigger::x_war_countries_scope_nation = first_scope_code + 0x0004 |
constexpr uint16_t | trigger::x_war_countries_scope_pop = first_scope_code + 0x0005 |
constexpr uint16_t | trigger::x_greater_power_scope = first_scope_code + 0x0006 |
constexpr uint16_t | trigger::x_owned_province_scope_state = first_scope_code + 0x0007 |
constexpr uint16_t | trigger::x_owned_province_scope_nation = first_scope_code + 0x0008 |
constexpr uint16_t | trigger::x_core_scope_province = first_scope_code + 0x0009 |
constexpr uint16_t | trigger::x_core_scope_nation = first_scope_code + 0x000A |
constexpr uint16_t | trigger::x_state_scope = first_scope_code + 0x000B |
constexpr uint16_t | trigger::x_substate_scope = first_scope_code + 0x000C |
constexpr uint16_t | trigger::x_sphere_member_scope = first_scope_code + 0x000D |
constexpr uint16_t | trigger::x_pop_scope_province = first_scope_code + 0x000E |
constexpr uint16_t | trigger::x_pop_scope_state = first_scope_code + 0x000F |
constexpr uint16_t | trigger::x_pop_scope_nation = first_scope_code + 0x0010 |
constexpr uint16_t | trigger::x_provinces_in_variable_region = first_scope_code + 0x0011 |
constexpr uint16_t | trigger::owner_scope_state = first_scope_code + 0x0012 |
constexpr uint16_t | trigger::owner_scope_province = first_scope_code + 0x0013 |
constexpr uint16_t | trigger::controller_scope = first_scope_code + 0x0014 |
constexpr uint16_t | trigger::location_scope = first_scope_code + 0x0015 |
constexpr uint16_t | trigger::country_scope_state = first_scope_code + 0x0016 |
constexpr uint16_t | trigger::country_scope_pop = first_scope_code + 0x0017 |
constexpr uint16_t | trigger::capital_scope = first_scope_code + 0x0018 |
constexpr uint16_t | trigger::this_scope_pop = first_scope_code + 0x0019 |
constexpr uint16_t | trigger::this_scope_nation = first_scope_code + 0x001A |
constexpr uint16_t | trigger::this_scope_state = first_scope_code + 0x001B |
constexpr uint16_t | trigger::this_scope_province = first_scope_code + 0x001C |
constexpr uint16_t | trigger::from_scope_pop = first_scope_code + 0x001D |
constexpr uint16_t | trigger::from_scope_nation = first_scope_code + 0x001E |
constexpr uint16_t | trigger::from_scope_state = first_scope_code + 0x001F |
constexpr uint16_t | trigger::from_scope_province = first_scope_code + 0x0020 |
constexpr uint16_t | trigger::sea_zone_scope = first_scope_code + 0x0021 |
constexpr uint16_t | trigger::cultural_union_scope = first_scope_code + 0x0022 |
constexpr uint16_t | trigger::overlord_scope = first_scope_code + 0x0023 |
constexpr uint16_t | trigger::sphere_owner_scope = first_scope_code + 0x0024 |
constexpr uint16_t | trigger::independence_scope = first_scope_code + 0x0025 |
constexpr uint16_t | trigger::flashpoint_tag_scope = first_scope_code + 0x0026 |
constexpr uint16_t | trigger::crisis_state_scope = first_scope_code + 0x0027 |
constexpr uint16_t | trigger::state_scope_pop = first_scope_code + 0x0028 |
constexpr uint16_t | trigger::state_scope_province = first_scope_code + 0x0029 |
constexpr uint16_t | trigger::tag_scope = first_scope_code + 0x002A |
constexpr uint16_t | trigger::integer_scope = first_scope_code + 0x002B |
constexpr uint16_t | trigger::country_scope_nation = first_scope_code + 0x002C |
constexpr uint16_t | trigger::country_scope_province = first_scope_code + 0x002D |
constexpr uint16_t | trigger::cultural_union_scope_pop = first_scope_code + 0x002E |
constexpr uint16_t | trigger::capital_scope_province = first_scope_code + 0x002F |
constexpr uint16_t | trigger::capital_scope_pop = first_scope_code + 0x0030 |
constexpr uint16_t | trigger::x_country_scope = first_scope_code + 0x0031 |
constexpr uint16_t | trigger::x_neighbor_province_scope_state = first_scope_code + 0x0032 |
constexpr uint16_t | trigger::x_provinces_in_variable_region_proper = first_scope_code + 0x0033 |
constexpr uint16_t | trigger::first_invalid_code = first_scope_code + 0x0034 |
constexpr uint16_t | trigger::placeholder_not_scope = code_mask |
constexpr int8_t | trigger::data_sizes [] |
#define EFFECT_BYTECODE_ELEMENT | ( | code, | |
name, | |||
arg | |||
) | constexpr inline uint16_t name = code; |
Definition at line 473 of file script_constants.hpp.
#define EFFECT_BYTECODE_ELEMENT | ( | code, | |
name, | |||
arg | |||
) | arg, |
Definition at line 473 of file script_constants.hpp.
#define EFFECT_BYTECODE_LIST |
Definition at line 22 of file script_constants.hpp.
#define TRIGGER_BYTECODE_ELEMENT | ( | code, | |
name, | |||
arg | |||
) | constexpr inline uint16_t name = code; |
Definition at line 1382 of file script_constants.hpp.
#define TRIGGER_BYTECODE_ELEMENT | ( | code, | |
name, | |||
arg | |||
) | arg, |
Definition at line 1382 of file script_constants.hpp.
#define TRIGGER_BYTECODE_LIST |
Definition at line 637 of file script_constants.hpp.