diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-19 07:17:00 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-19 07:17:00 +0000 |
commit | de84d6338d50a35aaee6ae296c796ed3e55b4435 (patch) | |
tree | 49a389f05f9514e1b67682db1c98f548340fa20f /station.h | |
parent | 225f7dcb6211a094cc72f749d7c2e6562708e3cf (diff) | |
download | openttd-de84d6338d50a35aaee6ae296c796ed3e55b4435.tar.xz |
(svn r4473) - Newstations:
- Alter parameters of CMD_BUILD_RAILROAD_STATION to accept a custom station class and id.
- Add a dynamically allocated list of custom stations that the SpecIndex (m4) references.
Diffstat (limited to 'station.h')
-rw-r--r-- | station.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -41,6 +41,12 @@ typedef struct RoadStop { struct RoadStop *prev; } RoadStop; +typedef struct StationSpecList { + const StationSpec *spec; + uint32 grfid; /// GRF ID of this custom station + uint8 localidx; /// Station ID within GRF of station +} StationSpecList; + struct Station { TileIndex xy; RoadStop *bus_stops; @@ -65,6 +71,10 @@ struct Station { // trainstation width/height byte trainst_w, trainst_h; + /** List of custom stations (StationSpecs) allocated to the station */ + uint num_specs; + StationSpecList *speclist; + uint16 build_date; //uint16 airport_flags; |