10#ifndef INDUSTRY_TYPE_H
11#define INDUSTRY_TYPE_H
17typedef uint16_t IndustryGfx;
18typedef uint8_t IndustryType;
46static const IndustryType IT_INVALID = 0xFF;
static const IndustryGfx NEW_INDUSTRYTILEOFFSET
original number of tiles
static const IndustryGfx INDUSTRYTILE_NOANIM
flag to mark industry tiles as having no animation
IndustryRandomTrigger
Available industry random triggers.
@ IndustryTick
The industry has been triggered via its tick.
@ TileLoop
The tile of the industry has been triggered during the tileloop.
@ CargoReceived
Cargo has been delivered.
static const IndustryType NEW_INDUSTRYOFFSET
original number of industry types
static const int INDUSTRY_ORIGINAL_NUM_INPUTS
Original number of accepted cargo types.
static const int INDUSTRY_NUM_OUTPUTS
Number of cargo types an industry can produce.
static const IndustryGfx NUM_INDUSTRYTILES_PER_GRF
Maximum number of industry tiles per NewGRF; limited to 255 to allow extending Action3 with an extend...
static const int INDUSTRY_NUM_INPUTS
Number of cargo types an industry can accept.
static const IndustryType NUM_INDUSTRYTYPES
total number of industry types, new and old; limited to 240 because we need some special ids like IT_...
static const IndustryGfx INVALID_INDUSTRYTILE
one above amount is considered invalid
void CheckIndustries()
Verify whether the generated industries are complete, and warn the user if not.
static const int INDUSTRY_ORIGINAL_NUM_OUTPUTS
Original number of produced cargo types.
IndustryAnimationTrigger
Animation triggers of the industries.
@ CargoDistributed
Trigger when cargo is distributed.
@ ConstructionStageChanged
Trigger whenever the construction stage changes.
static const IndustryGfx NUM_INDUSTRYTILES
total number of industry tiles, new and old
static const int INDUSTRY_COMPLETED
final stage of industry construction.
static const IndustryType NUM_INDUSTRYTYPES_PER_GRF
maximum number of industry types per NewGRF; limited to 128 because bit 7 has a special meaning in so...
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
Defines the data structure for constructing industry.
Defines the data structure of each individual tile of an industry.
Defines the internal data of a functional industry.
Templated helper to make a PoolID a single POD value.