(svn r15417) -Codechange: Add default rail type labels and support for per-GRF translation table.

This commit is contained in:
peter1138
2009-02-08 18:11:06 +00:00
parent 986224519a
commit a68e0ee42f
6 changed files with 83 additions and 2 deletions

View File

@@ -132,6 +132,11 @@ struct RailtypeInfo {
* Cost multiplier for building this rail type
*/
uint8 cost_multiplier;
/**
* Unique 32 bit rail type identifier
*/
RailTypeLabel label;
};
@@ -254,6 +259,13 @@ RailType GetBestRailtype(const CompanyID company);
*/
RailTypes GetCompanyRailtypes(const CompanyID c);
/**
* Get the rail type for a given label.
* @param label the railtype label.
* @return the railtype.
*/
RailType GetRailTypeByLabel(RailTypeLabel label);
/**
* Reset all rail type information to its default values.
*/