summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-07-15 00:03:17 +0000
committerbelugas <belugas@openttd.org>2007-07-15 00:03:17 +0000
commite37affa1d3a303c064cb04dc422059e9170116c8 (patch)
tree21bce04cd50aef48bc5c5a25428db5b95de57933 /src
parent13692798e65b9627ebc5c6eabdcafdfa48660080 (diff)
downloadopenttd-e37affa1d3a303c064cb04dc422059e9170116c8.tar.xz
(svn r10570) -Codechange: Add enum required for Callback 0x22: CBID_INDUSTRY_AVAILABLE
-Documentation: Add documentation for enum IndustryConstructionType, which describes how the industry has been created
Diffstat (limited to 'src')
-rw-r--r--src/industry.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/industry.h b/src/industry.h
index ab528269c..96d4dc4ef 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -49,11 +49,19 @@ enum CheckProc {
CHECK_END,
};
+/** How was the industry created */
enum IndustryConstructionType {
- ICT_UNKNOWN,
- ICT_NORMAL_GAMEPLAY,
- ICT_MAP_GENERATION,
- ICT_SCENARIO_EDITOR
+ ICT_UNKNOWN, ///< in previous game version or without newindustries activated
+ ICT_NORMAL_GAMEPLAY, ///< either by user or random creation proccess
+ ICT_MAP_GENERATION, ///< during random map creation
+ ICT_SCENARIO_EDITOR ///< while scenarion edition
+};
+
+/** 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
};
enum IndustyBehaviour {