diff options
author | darkvater <darkvater@openttd.org> | 2004-11-14 16:11:48 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-11-14 16:11:48 +0000 |
commit | 5fcd71cf288b382fabf75d878c48711a4710df39 (patch) | |
tree | c0f556b7fdc43e1295404b32ceb7a4dadab0ac27 /station.h | |
parent | 2b5b1f4e0672696c73ea4d17679d31fbb80b929b (diff) | |
download | openttd-5fcd71cf288b382fabf75d878c48711a4710df39.tar.xz |
(svn r600) -newgrf: Relocation offset for custom station sprites is now stored separately, making it possible to show different sprites in waypoint selection dialog (pasky).
Diffstat (limited to 'station.h')
-rw-r--r-- | station.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,7 @@ #ifndef STATION_H #define STATION_H +#include "engine.h" #include "vehicle.h" typedef struct GoodsEntry { @@ -117,6 +118,10 @@ struct StationSpec { byte tiles; DrawTileSprites renderdata[8]; + + /* Sprite offsets for renderdata->seq->image. relocation[0] is default + * whilst relocation[1] is "CID_PURCHASE". */ + struct SpriteGroup relocation[2]; }; /* Here, @stid is local per-GRFFile station index. If spec->localidx is not yet @@ -126,7 +131,8 @@ struct StationSpec { void SetCustomStation(byte stid, struct StationSpec *spec); /* Here, @stid is global station index (in continous range 0..GetCustomStationsCount()) * (lookup is therefore very fast as we do this very frequently). */ -DrawTileSprites *GetCustomStationRenderdata(uint32 classid, byte stid); +struct StationSpec *GetCustomStation(uint32 classid, byte stid); +uint32 GetCustomStationRelocation(struct StationSpec *spec, byte ctype); int GetCustomStationsCount(uint32 classid); #endif /* STATION_H */ |