(svn r21209) -Feature: [NewGRF] Allow setting the gender of the current string or select the case of the next substring

This commit is contained in:
rubidium
2010-11-16 14:00:02 +00:00
parent 0500c92003
commit 0f9c40244a
3 changed files with 46 additions and 2 deletions

View File

@@ -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 */