OpenTTD Source 20241224-master-gee860a5c8e
|
Defines the data structure of each individual tile of an industry. More...
#include <industrytype.h>
Data Fields | |
std::array< CargoID, INDUSTRY_NUM_INPUTS > | accepts_cargo |
Cargo accepted by this tile. | |
std::array< int8_t, INDUSTRY_NUM_INPUTS > | acceptance |
Level of acceptance per cargo type (signed, may be negative!) | |
Slope | slopes_refused |
slope pattern on which this tile cannot be built | |
uint8_t | anim_production |
Animation frame to start when goods are produced. | |
uint8_t | anim_next |
Next frame in an animation. | |
bool | anim_state |
When true, the tile has to be drawn using the animation state instead of the construction state. | |
uint8_t | callback_mask |
Bitmask of industry tile callbacks that have to be called. | |
AnimationInfo | animation |
Information about the animation (is it looping, how many loops etc) | |
IndustryTileSpecialFlags | special_flags |
Bitmask of extra flags used by the tile. | |
bool | enabled |
entity still available (by default true).newgrf can disable it, though | |
GRFFileProps | grf_prop |
properties related to the grf file | |
std::array< std::variant< CargoLabel, MixedCargoType >, INDUSTRY_ORIGINAL_NUM_INPUTS > | accepts_cargo_label |
Cargo labels of accepted cargo for default industry tiles. | |
Defines the data structure of each individual tile of an industry.
Definition at line 149 of file industrytype.h.
std::array<int8_t, INDUSTRY_NUM_INPUTS> IndustryTileSpec::acceptance |
Level of acceptance per cargo type (signed, may be negative!)
Definition at line 151 of file industrytype.h.
std::array<CargoID, INDUSTRY_NUM_INPUTS> IndustryTileSpec::accepts_cargo |
Cargo accepted by this tile.
Definition at line 150 of file industrytype.h.
Referenced by FinaliseIndustriesArray().
std::array<std::variant<CargoLabel, MixedCargoType>, INDUSTRY_ORIGINAL_NUM_INPUTS> IndustryTileSpec::accepts_cargo_label |
Cargo labels of accepted cargo for default industry tiles.
Definition at line 167 of file industrytype.h.
Referenced by FinaliseIndustriesArray().
uint8_t IndustryTileSpec::anim_next |
Next frame in an animation.
Definition at line 154 of file industrytype.h.
uint8_t IndustryTileSpec::anim_production |
Animation frame to start when goods are produced.
Definition at line 153 of file industrytype.h.
bool IndustryTileSpec::anim_state |
When true, the tile has to be drawn using the animation state instead of the construction state.
Definition at line 159 of file industrytype.h.
AnimationInfo IndustryTileSpec::animation |
Information about the animation (is it looping, how many loops etc)
Definition at line 162 of file industrytype.h.
Referenced by DoCreateNewIndustry().
uint8_t IndustryTileSpec::callback_mask |
Bitmask of industry tile callbacks that have to be called.
Definition at line 161 of file industrytype.h.
Referenced by CheckIfIndustryTileSlopes().
bool IndustryTileSpec::enabled |
entity still available (by default true).newgrf can disable it, though
Definition at line 164 of file industrytype.h.
GRFFileProps IndustryTileSpec::grf_prop |
properties related to the grf file
Definition at line 165 of file industrytype.h.
Referenced by DoTriggerIndustryTile(), IndustryTileResolverObject::GetDebugID(), NIHIndustryTile::GetGRFID(), GetIndTileGrffile(), GetIndustryIDAtOffset(), GetTranslatedIndustryTileID(), IndustryTileResolverObject::IndustryTileResolverObject(), NIHIndustryTile::IsInspectable(), and PerformIndustryTileSlopeCheck().
Slope IndustryTileSpec::slopes_refused |
slope pattern on which this tile cannot be built
Definition at line 152 of file industrytype.h.
Referenced by CheckIfIndustryTilesAreFree(), CheckIfIndustryTileSlopes(), and PerformIndustryTileSlopeCheck().
IndustryTileSpecialFlags IndustryTileSpec::special_flags |
Bitmask of extra flags used by the tile.
Definition at line 163 of file industrytype.h.