diff options
author | yexo <yexo@openttd.org> | 2010-08-23 21:47:07 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-23 21:47:07 +0000 |
commit | a36159614a20c19b78b524e412a69b8a6f1abaa2 (patch) | |
tree | 0569c7e5e267c15d21aa3cfe26fddf991f7fe726 /src/newgrf_config.h | |
parent | 8ce06a09b9ce561cd823793dfb8c18aee894fd76 (diff) | |
download | openttd-a36159614a20c19b78b524e412a69b8a6f1abaa2.tar.xz |
(svn r20601) -Feature: [NewGRF] Add 'DEFA' field to set parameter defaults with action 14
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 69c219809..e8b6bc86a 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -119,6 +119,7 @@ struct GRFParameterInfo { GRFParameterType type; ///< The type of this parameter uint32 min_value; ///< The minimal value this parameter can have uint32 max_value; ///< The maximal value of this parameter + uint32 def_value; ///< Default value of this parameter byte param_nr; ///< GRF parameter to store content in byte first_bit; ///< First bit to use in the GRF parameter byte num_bit; ///< Number of bits to use for this parameter @@ -150,6 +151,7 @@ struct GRFConfig : ZeroedMemoryAllocator { uint8 num_valid_params; ///< NOSAVE: Number of valid parameters (action 0x14) uint8 palette; ///< GRFPalette, bitset SmallVector<GRFParameterInfo *, 4> param_info; ///< NOSAVE: extra information about the parameters + bool has_param_defaults; ///< NOSAVE: did this newgrf specify any defaults for it's parameters struct GRFConfig *next; ///< NOSAVE: Next item in the linked list @@ -158,6 +160,7 @@ struct GRFConfig : ZeroedMemoryAllocator { const char *GetName() const; const char *GetDescription() const; + void SetParameterDefaults(); void SetSuitablePalette(); }; |