Simutrans-Squirrel-API
|
Public Member Functions | |
building_desc_x | get_building_desc () |
array< factory_slot_information_x > | get_inputs () |
table< factory_desc_x > | get_list () |
string | get_name () |
array< factory_slot_information_x > | get_outputs () |
integer | get_productivity_base () |
integer | get_productivity_range () |
bool | is_electricity_producer () |
Public Member Functions inherited from obj_desc_x | |
string | get_name () |
bool | is_equal (obj_desc_x other) |
bool | is_valid () |
Object descriptors for factories.
Definition at line 273 of file api_obj_desc.cc.
building_desc_x factory_desc_x::get_building_desc | ( | ) |
Descriptor of associated building.
array<factory_slot_information_x> factory_desc_x::get_inputs | ( | ) |
Returns array with information about input goods
table<factory_desc_x> factory_desc_x::get_list | ( | ) |
Returns table with all factory types. The factory names are used as table keys.
string factory_desc_x::get_name | ( | ) |
array<factory_slot_information_x> factory_desc_x::get_outputs | ( | ) |
Returns array with information about input goods
integer factory_desc_x::get_productivity_base | ( | ) |
Initial production of a factory is get_productivity_base() + rand( get_productivity_range() ).
integer factory_desc_x::get_productivity_range | ( | ) |
bool factory_desc_x::is_electricity_producer | ( | ) |