(svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location.

This commit is contained in:
rubidium
2007-07-09 13:21:49 +00:00
parent c29b4a7720
commit bb8923c336
5 changed files with 109 additions and 17 deletions

View File

@@ -13,6 +13,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
uint16 GetIndustryCallback(uint16 callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile);
uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Industry *i);
void IndustryProductionCallback(Industry *ind, int reason);
bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspec_index);
/* in newgrf_industrytiles.cpp*/
uint32 IndustryTileGetRandomBits(const ResolverObject *object);