diff options
author | peter1138 <peter1138@openttd.org> | 2009-02-08 18:11:06 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-02-08 18:11:06 +0000 |
commit | a68e0ee42f03bb48efbe91a7c6354e4561644ad4 (patch) | |
tree | 6b6f3e076c1f595d8ca3e3a57a07ad5ad48cf6fc /src/rail.h | |
parent | 986224519a27df1aa81445c1507907e11fa09afd (diff) | |
download | openttd-a68e0ee42f03bb48efbe91a7c6354e4561644ad4.tar.xz |
(svn r15417) -Codechange: Add default rail type labels and support for per-GRF translation table.
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(); |