(svn r23758) -Feature: [NewGRF] Alternate rail type label list.

This commit is contained in:
michi_cc
2012-01-05 19:40:34 +00:00
parent 69e197c87f
commit ee0fcb2567
5 changed files with 54 additions and 4 deletions

View File

@@ -96,6 +96,9 @@ enum RailFenceOffset {
RFO_SLOPE_NW,
};
/** List of rail type labels. */
typedef SmallVector<RailTypeLabel, 4> RailTypeLabelList;
/**
* This struct contains all the info that is needed to draw and construct tracks.
*/
@@ -208,6 +211,11 @@ struct RailtypeInfo {
*/
RailTypeLabel label;
/**
* Rail type labels this type provides in addition to the main label.
*/
RailTypeLabelList alternate_labels;
/**
* Colour on mini-map
*/
@@ -404,7 +412,7 @@ RailTypes AddDateIntroducedRailTypes(RailTypes current, Date date);
RailType GetBestRailtype(const CompanyID company);
RailTypes GetCompanyRailtypes(const CompanyID c);
RailType GetRailTypeByLabel(RailTypeLabel label);
RailType GetRailTypeByLabel(RailTypeLabel label, bool allow_alternate_labels = true);
void ResetRailTypes();
void InitRailTypes();