OpenTTD Source  20240919-master-gdf0233f4c2
IndustryTileSpec Struct Reference

Defines the data structure of each individual tile of an industry. More...

#include <industrytype.h>

Data Fields

std::array< CargoID, INDUSTRY_NUM_INPUTSaccepts_cargo
 Cargo accepted by this tile.
 
std::array< std::variant< CargoLabel, MixedCargoType >, INDUSTRY_NUM_INPUTSaccepts_cargo_label
 
std::array< int8_t, INDUSTRY_NUM_INPUTSacceptance
 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
 

Detailed Description

Defines the data structure of each individual tile of an industry.

Note
A tile can at most accept 3 types of cargo, even if an industry as a whole can accept more types.

Definition at line 148 of file industrytype.h.


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