diff options
author | rubidium <rubidium@openttd.org> | 2010-08-28 17:30:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-28 17:30:55 +0000 |
commit | 1ec1f1ef374b70b0e057d806f1310b7aeadce50c (patch) | |
tree | d6f6372fa139e30557ab074379f979c7776e27ae /src/newgrf_object.h | |
parent | 34da98f2b14e63c7042f44271d0b452fcd970737 (diff) | |
download | openttd-1ec1f1ef374b70b0e057d806f1310b7aeadce50c.tar.xz |
(svn r20648) -Codechange: implement the NewGRF override manager for objects
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r-- | src/newgrf_object.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h index 41eb8ab82..2fea6668b 100644 --- a/src/newgrf_object.h +++ b/src/newgrf_object.h @@ -15,6 +15,7 @@ #include "economy_func.h" #include "strings_type.h" #include "object_type.h" +#include "newgrf_commons.h" /** Various object behaviours. */ enum ObjectFlags { @@ -39,7 +40,10 @@ void ResetObjects(); /** An object that isn't use for transport, industries or houses. */ struct ObjectSpec { + /* 2 because of the "normal" and "buy" sprite stacks. */ + GRFFilePropsBase<2> grf_prop; ///< Properties related the the grf file StringID name; ///< The name for this object. + uint8 size; ///< The size of this objects; low nibble for X, high nibble for Y. uint8 build_cost_multiplier; ///< Build cost multiplier per tile. uint8 clear_cost_multiplier; ///< Clear cost multiplier per tile. |