diff -r 0c29fbc79be4 -r 4187ad809fe7 src/newgrf_industries.h --- a/src/newgrf_industries.h Mon Jan 07 09:19:53 2008 +0000 +++ b/src/newgrf_industries.h Mon Jan 07 14:02:26 2008 +0000 @@ -5,7 +5,7 @@ #ifndef NEWGRF_INDUSTRIES_H #define NEWGRF_INDUSTRIES_H -#include "industry.h" +#include "industry_type.h" #include "newgrf_spritegroup.h" /** When should the industry(tile) be triggered for random bits? */ @@ -18,6 +18,13 @@ INDUSTRY_TRIGGER_CARGO_DELIVERY = 4, }; +/** 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 +}; + /* in newgrf_industry.cpp */ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available); uint16 GetIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile);