diff options
author | darkvater <darkvater@openttd.org> | 2004-11-14 01:25:05 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-11-14 01:25:05 +0000 |
commit | 7930faace98fea1ce02032c9cebc06e9b5266a16 (patch) | |
tree | 11dd7877ad10a2ccc94b14f4aa90d5c235fc4dbc /station.h | |
parent | e9ef930155c51d4412410c304cf08eba7c1e658f (diff) | |
download | openttd-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.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 */ |