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 | 793eabf61e6be21fc6fc270ad7a08135c28d6911 (patch) | |
tree | 6b6f3e076c1f595d8ca3e3a57a07ad5ad48cf6fc /src/rail.h | |
parent | fc342a0d68eea28f4aacee877dedef36f7b3b354 (diff) | |
download | openttd-793eabf61e6be21fc6fc270ad7a08135c28d6911.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(); |