(svn r23758) -Feature: [NewGRF] Alternate rail type label list.
This commit is contained in:
10
src/rail.h
10
src/rail.h
@@ -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();
|
||||
|
Reference in New Issue
Block a user