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

#include <parsers_declarations.hpp>

Collaboration diagram for parsers::production_type:

Public Member Functions

void output_goods (association_type, std::string_view v, error_handler &err, int32_t line, production_context &context)
 
void bonus (production_bonus const &v, error_handler &err, int32_t line, production_context &context)
 
void type (association_type, std::string_view v, error_handler &err, int32_t line, production_context &context)
 
void as_template (association_type, std::string_view v, error_handler &err, int32_t line, production_context &context)
 
void finish (production_context &)
 

Public Attributes

commodity_array efficiency
 
commodity_array input_goods
 
production_employee owner
 
production_employee_set employees
 
int32_t workforce = 0
 
bool farm = false
 
bool mine = false
 
bool is_coastal = false
 
float value = 0.0f
 
std::vector< production_bonusbonuses
 
dcon::commodity_id output_goods_
 
production_type_enum type_ = production_type_enum::none
 

Detailed Description

Definition at line 2479 of file parsers_declarations.hpp.

Member Function Documentation

◆ as_template()

void parsers::production_type::as_template ( association_type  ,
std::string_view  v,
error_handler err,
int32_t  line,
production_context context 
)
inline

Definition at line 2517 of file parsers_declarations.hpp.

◆ bonus()

void parsers::production_type::bonus ( production_bonus const &  v,
error_handler err,
int32_t  line,
production_context context 
)
inline

Definition at line 2503 of file parsers_declarations.hpp.

◆ finish()

void parsers::production_type::finish ( production_context )
inline

Definition at line 2525 of file parsers_declarations.hpp.

◆ output_goods()

void parsers::production_type::output_goods ( association_type  ,
std::string_view  v,
error_handler err,
int32_t  line,
production_context context 
)
inline

Definition at line 2494 of file parsers_declarations.hpp.

◆ type()

void parsers::production_type::type ( association_type  ,
std::string_view  v,
error_handler err,
int32_t  line,
production_context context 
)
inline

Definition at line 2506 of file parsers_declarations.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ bonuses

std::vector<production_bonus> parsers::production_type::bonuses

Definition at line 2490 of file parsers_declarations.hpp.

◆ efficiency

commodity_array parsers::production_type::efficiency

Definition at line 2480 of file parsers_declarations.hpp.

◆ employees

production_employee_set parsers::production_type::employees

Definition at line 2483 of file parsers_declarations.hpp.

◆ farm

bool parsers::production_type::farm = false

Definition at line 2485 of file parsers_declarations.hpp.

◆ input_goods

commodity_array parsers::production_type::input_goods

Definition at line 2481 of file parsers_declarations.hpp.

◆ is_coastal

bool parsers::production_type::is_coastal = false

Definition at line 2487 of file parsers_declarations.hpp.

◆ mine

bool parsers::production_type::mine = false

Definition at line 2486 of file parsers_declarations.hpp.

◆ output_goods_

dcon::commodity_id parsers::production_type::output_goods_

Definition at line 2491 of file parsers_declarations.hpp.

◆ owner

production_employee parsers::production_type::owner

Definition at line 2482 of file parsers_declarations.hpp.

◆ type_

production_type_enum parsers::production_type::type_ = production_type_enum::none

Definition at line 2492 of file parsers_declarations.hpp.

◆ value

float parsers::production_type::value = 0.0f

Definition at line 2488 of file parsers_declarations.hpp.

◆ workforce

int32_t parsers::production_type::workforce = 0

Definition at line 2484 of file parsers_declarations.hpp.


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