diff --git a/src/newgrf_industrytiles.h b/src/newgrf_industrytiles.h --- a/src/newgrf_industrytiles.h +++ b/src/newgrf_industrytiles.h @@ -21,4 +21,16 @@ void AnimateNewIndustryTile(TileIndex ti bool StartStopIndustryTileAnimation(TileIndex tile, IndustryAnimationTrigger iat, uint32 random = Random()); bool StartStopIndustryTileAnimation(const Industry *ind, IndustryAnimationTrigger iat); + +enum IndustryTileTrigger { + /* The tile of the industry has been triggered during the tileloop. */ + INDTILE_TRIGGER_TILE_LOOP = 0x01, + /* The industry has been triggered via it's tick. */ + INDUSTRY_TRIGGER_INDUSTRY_TICK = 0x02, + /* Cargo has been delivered. */ + INDUSTRY_TRIGGER_RECEIVED_CARGO = 0x04, +}; +void TriggerIndustryTile(TileIndex t, IndustryTileTrigger trigger); +void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger); + #endif /* NEWGRF_INDUSTRYTILES_H */