(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.
This commit is contained in:
peter1138
2006-04-19 07:17:00 +00:00
parent 11f6a33f40
commit 65c43cb425
4 changed files with 155 additions and 9 deletions

View File

@@ -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;