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

#include <parsers_declarations.hpp>

Inheritance diagram for parsers::building_definition:
Collaboration diagram for parsers::building_definition:

Public Member Functions

void type (association_type, std::string_view value, error_handler &err, int32_t line, scenario_building_context &context)
 
void finish (scenario_building_context &context)
 
- Public Member Functions inherited from parsers::modifier_base
template<typename T >
void icon (association_type, uint32_t v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void tax_efficiency (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void global_population_growth (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void m_rgo_size (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void immigration (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void defender (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void attacker (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void defence (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void pop_growth (association_type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void unit_start_experience (association_type type, float v, error_handler &err, int32_t line, T &context)
 
template<typename T >
void finish (T &context)
 
sys::provincial_modifier_definition const & peek_province_mod () const
 
sys::national_modifier_definition const & peek_national_mod () const
 
sys::national_modifier_definition force_national_mod () const
 

Public Attributes

int_vector colonial_points
 
commodity_array goods_cost
 
bool default_enabled = false
 
std::string_view production_type
 
float infrastructure = 0.0f
 
int32_t colonial_range = 0
 
int32_t max_level = 0
 
int32_t naval_capacity = 0
 
int32_t time = 0
 
int32_t cost = 0
 
economy::province_building_type stored_type = economy::province_building_type::factory
 
- Public Attributes inherited from parsers::modifier_base
uint32_t next_to_add_p = 0
 
uint32_t next_to_add_n = 0
 
uint8_t icon_index = 0
 

Additional Inherited Members

- Protected Attributes inherited from parsers::modifier_base
sys::national_modifier_definition constructed_definition_n
 
sys::provincial_modifier_definition constructed_definition_p
 

Detailed Description

Definition at line 1053 of file parsers_declarations.hpp.

Member Function Documentation

◆ finish()

void parsers::building_definition::finish ( scenario_building_context context)
inline

Definition at line 1067 of file parsers_declarations.hpp.

◆ type()

void parsers::building_definition::type ( association_type  ,
std::string_view  value,
error_handler err,
int32_t  line,
scenario_building_context context 
)

Definition at line 41 of file econ_parsing.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ colonial_points

int_vector parsers::building_definition::colonial_points

Definition at line 1054 of file parsers_declarations.hpp.

◆ colonial_range

int32_t parsers::building_definition::colonial_range = 0

Definition at line 1059 of file parsers_declarations.hpp.

◆ cost

int32_t parsers::building_definition::cost = 0

Definition at line 1063 of file parsers_declarations.hpp.

◆ default_enabled

bool parsers::building_definition::default_enabled = false

Definition at line 1056 of file parsers_declarations.hpp.

◆ goods_cost

commodity_array parsers::building_definition::goods_cost

Definition at line 1055 of file parsers_declarations.hpp.

◆ infrastructure

float parsers::building_definition::infrastructure = 0.0f

Definition at line 1058 of file parsers_declarations.hpp.

◆ max_level

int32_t parsers::building_definition::max_level = 0

Definition at line 1060 of file parsers_declarations.hpp.

◆ naval_capacity

int32_t parsers::building_definition::naval_capacity = 0

Definition at line 1061 of file parsers_declarations.hpp.

◆ production_type

std::string_view parsers::building_definition::production_type

Definition at line 1057 of file parsers_declarations.hpp.

◆ stored_type

Definition at line 1064 of file parsers_declarations.hpp.

◆ time

int32_t parsers::building_definition::time = 0

Definition at line 1062 of file parsers_declarations.hpp.


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