diff options
author | frosch <frosch@openttd.org> | 2012-04-28 16:44:01 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-04-28 16:44:01 +0000 |
commit | 16b310d8ce2f7688b62fb8b09829baf71af4aab0 (patch) | |
tree | 681b6e085a9f8afdb031d445052ef30c66ad1048 /src/newgrf_callbacks.h | |
parent | 789c95d4b830604529fe7e38b8db3a3ef6c20370 (diff) | |
download | openttd-16b310d8ce2f7688b62fb8b09829baf71af4aab0.tar.xz |
(svn r24186) -Feature: [NewGRF] Callback to set industry production level on construction. (andythenorth)
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r-- | src/newgrf_callbacks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h index 546ba630d..e96d06803 100644 --- a/src/newgrf_callbacks.h +++ b/src/newgrf_callbacks.h @@ -275,6 +275,9 @@ enum CallbackID { /** Called to determine the cost factor for refitting a vehicle. */ CBID_VEHICLE_REFIT_COST = 0x15E, // 15 bit callback + + /** Called when industry is built to set initial production level. */ + CBID_INDUSTRY_PROD_CHANGE_BUILD = 0x15F, // 15 bit callback }; /** @@ -355,6 +358,7 @@ enum IndustryCallbackMask { CBM_IND_DECIDE_COLOUR = 11, ///< give a custom colour to newly build industries CBM_IND_INPUT_CARGO_TYPES = 12, ///< customize the cargoes the industry requires CBM_IND_OUTPUT_CARGO_TYPES = 13, ///< customize the cargoes the industry produces + CBM_IND_PROD_CHANGE_BUILD = 14, ///< initialise production level on construction }; /** |