summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-07 14:02:26 +0000
committerrubidium <rubidium@openttd.org>2008-01-07 14:02:26 +0000
commit38115acf5adbcf66643d1f96e30b9abc6dec15a3 (patch)
treeda6be8b1f4ec1cdb8a848d1ab9915d7dddf2ff8b /src/newgrf_industries.h
parenta8a3a7e3f277c205900f5dde7441e612cd0114a8 (diff)
downloadopenttd-38115acf5adbcf66643d1f96e30b9abc6dec15a3.tar.xz
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r--src/newgrf_industries.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h
index f348ee8bc..e98c037b4 100644
--- a/src/newgrf_industries.h
+++ b/src/newgrf_industries.h
@@ -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 @@ enum IndustryTrigger {
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);