summaryrefslogtreecommitdiff
path: root/src/newgrf_text.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-16 14:00:02 +0000
committerrubidium <rubidium@openttd.org>2010-11-16 14:00:02 +0000
commit0f9c40244a28e90a1c3f774354bdc3d07b149f21 (patch)
treee0d3306de20dd4e128f13ea597f12c4d2e78c596 /src/newgrf_text.h
parent0500c92003282382c2b0e66c7168ba7319c65b25 (diff)
downloadopenttd-0f9c40244a28e90a1c3f774354bdc3d07b149f21.tar.xz
(svn r21209) -Feature: [NewGRF] Allow setting the gender of the current string or select the case of the next substring
Diffstat (limited to 'src/newgrf_text.h')
-rw-r--r--src/newgrf_text.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_text.h b/src/newgrf_text.h
index 90fcd719a..34618fe62 100644
--- a/src/newgrf_text.h
+++ b/src/newgrf_text.h
@@ -59,6 +59,9 @@ struct LanguageMap {
* both cases. Thus we are basically implementing a multi-map. */
SmallVector<Mapping, 1> gender_map; ///< Mapping of NewGRF and OpenTTD IDs for genders.
SmallVector<Mapping, 1> case_map; ///< Mapping of NewGRF and OpenTTD IDs for cases.
+
+ int GetMapping(int newgrf_id, bool gender) const;
+ static const LanguageMap *GetLanguageMap(uint32 grfid, uint8 language_id);
};
#endif /* NEWGRF_TEXT_H */