summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-11-14 01:25:05 +0000
committerdarkvater <darkvater@openttd.org>2004-11-14 01:25:05 +0000
commit7930faace98fea1ce02032c9cebc06e9b5266a16 (patch)
tree11dd7877ad10a2ccc94b14f4aa90d5c235fc4dbc /station.h
parente9ef930155c51d4412410c304cf08eba7c1e658f (diff)
downloadopenttd-7930faace98fea1ce02032c9cebc06e9b5266a16.tar.xz
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
Diffstat (limited to 'station.h')
-rw-r--r--station.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/station.h b/station.h
index 7e62ad280..da5c4d6bb 100644
--- a/station.h
+++ b/station.h
@@ -89,4 +89,22 @@ VARDEF bool _global_station_sort_dirty;
void GetProductionAroundTiles(uint *produced, uint tile, int w, int h);
void GetAcceptanceAroundTiles(uint *accepts, uint tile, int w, int h);
uint GetStationPlatforms(Station *st, uint tile);
+
+
+typedef struct DrawTileSeqStruct {
+ int8 delta_x;
+ int8 delta_y;
+ int8 delta_z;
+ byte width,height;
+ byte unk; // 'depth', just z-size; TODO: rename
+ uint32 image;
+} DrawTileSeqStruct;
+
+typedef struct DrawTileSprites {
+ SpriteID ground_sprite;
+ DrawTileSeqStruct const *seq;
+} DrawTileSprites;
+
+#define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)
+
#endif /* STATION_H */