(svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), not just the rendering data. This will be needed for variational stationspecs (pasky).

This commit is contained in:
darkvater
2004-11-14 14:10:03 +00:00
parent 5663926aaf
commit ccc496ba2c
4 changed files with 24 additions and 25 deletions

View File

@@ -108,8 +108,16 @@ typedef struct DrawTileSprites {
#define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)
void SetCustomStation(uint32 classid, byte stid, DrawTileSprites *data, byte tiles);
DrawTileSprites *GetCustomStation(uint32 classid, byte stid);
struct StationSpec {
int globalidx;
uint32 classid;
byte tiles;
DrawTileSprites renderdata[8];
};
void SetCustomStation(byte stid, struct StationSpec *spec);
DrawTileSprites *GetCustomStationRenderdata(uint32 classid, byte stid);
int GetCustomStationsCount(uint32 classid);
#endif /* STATION_H */