(svn r10570) -Codechange: Add enum required for Callback 0x22: CBID_INDUSTRY_AVAILABLE
authorbelugas
Sun, 15 Jul 2007 00:03:17 +0000
changeset 7755 517d6b2b2ca2
parent 7754 8e7205edd6c7
child 7756 47e4498a0119
(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
src/industry.h
--- a/src/industry.h	Sat Jul 14 23:10:27 2007 +0000
+++ b/src/industry.h	Sun Jul 15 00:03:17 2007 +0000
@@ -49,11 +49,19 @@
 	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 {