(svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user