summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-03-19 11:27:30 +0000
committermaedhros <maedhros@openttd.org>2007-03-19 11:27:30 +0000
commit73ff939ddbb4772178de68f821d9c32ded846a06 (patch)
tree8ccaccab74c6399452d6ff3f09d5c94335516a62 /src/newgrf_spritegroup.h
parentae48a7447be849bdad48ca5996a246d29165f39e (diff)
downloadopenttd-73ff939ddbb4772178de68f821d9c32ded846a06.tar.xz
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
the newhouses grf specs, so all newhouses grfs will be playable in the game. Many thanks to everyone who contributed code and ideas, and all the testers who found things we missed.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r--src/newgrf_spritegroup.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h
index cbd79a97d..bf1c54fe5 100644
--- a/src/newgrf_spritegroup.h
+++ b/src/newgrf_spritegroup.h
@@ -3,6 +3,7 @@
#ifndef NEWGRF_SPRITEGROUP_H
#define NEWGRF_SPRITEGROUP_H
+#include "town.h"
struct SpriteGroup;
@@ -128,6 +129,11 @@ struct ResultSpriteGroup {
byte num_sprites;
};
+struct TileLayoutSpriteGroup {
+ byte num_sprites; /* Number of sprites in the spriteset, used for loading stages */
+ struct DrawTileSprites *dts;
+};
+
/* List of different sprite group types */
enum SpriteGroupType {
SGT_INVALID,
@@ -136,6 +142,7 @@ enum SpriteGroupType {
SGT_RANDOMIZED,
SGT_CALLBACK,
SGT_RESULT,
+ SGT_TILELAYOUT,
};
/* Common wrapper for all the different sprite group types */
@@ -148,6 +155,7 @@ struct SpriteGroup {
RandomizedSpriteGroup random;
CallbackResultSpriteGroup callback;
ResultSpriteGroup result;
+ TileLayoutSpriteGroup layout;
} g;
};
@@ -180,6 +188,11 @@ struct ResolverObject {
const struct StationSpec *statspec;
CargoID cargo_type;
} station;
+ struct {
+ TileIndex tile;
+ Town *town;
+ HouseID house_id;
+ } house;
} u;
uint32 (*GetRandomBits)(const struct ResolverObject*);