(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:
12
station.h
12
station.h
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user