summaryrefslogtreecommitdiff
path: root/src/newgrf_object.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 17:30:55 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 17:30:55 +0000
commit1ec1f1ef374b70b0e057d806f1310b7aeadce50c (patch)
treed6f6372fa139e30557ab074379f979c7776e27ae /src/newgrf_object.h
parent34da98f2b14e63c7042f44271d0b452fcd970737 (diff)
downloadopenttd-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.h4
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.