diff options
Diffstat (limited to 'src/rail.h')
-rw-r--r-- | src/rail.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rail.h b/src/rail.h index a787165ad..5a9236597 100644 --- a/src/rail.h +++ b/src/rail.h @@ -132,6 +132,11 @@ struct RailtypeInfo { * Cost multiplier for building this rail type */ uint8 cost_multiplier; + + /** + * Unique 32 bit rail type identifier + */ + RailTypeLabel label; }; @@ -255,6 +260,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. */ void ResetRailTypes(); |