(svn r11410) -Codechange: implement random triggers for industries.
This commit is contained in:
@@ -21,4 +21,16 @@ void AnimateNewIndustryTile(TileIndex tile);
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user