summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-19 07:17:00 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-19 07:17:00 +0000
commit65c43cb425b82dd68ec40bc3e3fed04fe6f3006f (patch)
tree49a389f05f9514e1b67682db1c98f548340fa20f /station.h
parent11f6a33f40707ebf787426fce0a19def6ddbc319 (diff)
downloadopenttd-65c43cb425b82dd68ec40bc3e3fed04fe6f3006f.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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/station.h b/station.h
index 2869708d5..f44d55c00 100644
--- a/station.h
+++ b/station.h
@@ -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;