diff options
author | rubidium <rubidium@openttd.org> | 2010-10-16 13:15:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-16 13:15:54 +0000 |
commit | 0b67a7ccd53725f7734cb4dd45cc24edae9b9702 (patch) | |
tree | b11501a1854e1865d002080bc8b9f1ffb45c21b2 /src/newgrf_industries.h | |
parent | a1b4f0b4c3b6d7074b338b4d7af4890eb16fdc65 (diff) | |
download | openttd-0b67a7ccd53725f7734cb4dd45cc24edae9b9702.tar.xz |
(svn r20942) -Feature [NewGRF]: make it possible to distinguish player built/randomly placed industries in the location and land slope check callbacks
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r-- | src/newgrf_industries.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h index 4e293e325..c05cd1246 100644 --- a/src/newgrf_industries.h +++ b/src/newgrf_industries.h @@ -28,9 +28,10 @@ enum IndustryTrigger { /** From where is callback CBID_INDUSTRY_AVAILABLE been called */ enum IndustryAvailabilityCallType { - IACT_MAPGENERATION, ///< during random map generation - IACT_RANDOMCREATION, ///< during creation of random ingame industry - IACT_USERCREATION, ///< from the Fund/build window + IACT_MAPGENERATION, ///< during random map generation + IACT_RANDOMCREATION, ///< during creation of random ingame industry + IACT_USERCREATION, ///< from the Fund/build window + IACT_PROSPECTCREATION, ///< from the Fund/build using prospecting }; /* in newgrf_industry.cpp */ @@ -38,7 +39,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par uint16 GetIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile); uint32 GetIndustryIDAtOffset(TileIndex new_tile, const Industry *i, uint32 cur_grfid); void IndustryProductionCallback(Industry *ind, int reason); -CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint layout, uint32 seed, uint16 initial_random_bits, Owner founder); +CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint layout, uint32 seed, uint16 initial_random_bits, Owner founder, IndustryAvailabilityCallType creation_type); bool CheckIfCallBackAllowsAvailability(IndustryType type, IndustryAvailabilityCallType creation_type); bool IndustryTemporarilyRefusesCargo(Industry *ind, CargoID cargo_type); |