ZoneLoading: Save which language a zone has when loading

This commit is contained in:
Jan
2019-11-19 00:43:46 +01:00
parent 81255695a7
commit 2f108d533c
3 changed files with 98 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Zone::Zone(std::string name, const zone_priority_t priority, IZoneAssetPools* po
m_priority = priority;
m_pools = pools;
m_game = game;
m_language = ZoneLanguage::LANGUAGE_NONE;
}
IZoneAssetPools* Zone::GetPools() const

View File

@ -6,6 +6,31 @@
class IGame;
enum class ZoneLanguage
{
LANGUAGE_NONE,
LANGUAGE_ENGLISH,
LANGUAGE_FRENCH,
LANGUAGE_GERMAN,
LANGUAGE_ITALIAN,
LANGUAGE_SPANISH,
LANGUAGE_BRITISH,
LANGUAGE_RUSSIAN,
LANGUAGE_POLISH,
LANGUAGE_KOREAN,
LANGUAGE_TAIWANESE,
LANGUAGE_JAPANESE,
LANGUAGE_CHINESE,
LANGUAGE_THAI,
LANGUAGE_LEET,
LANGUAGE_CZECH,
LANGUAGE_FRENCH_CAN,
LANGUAGE_AUSTRIAN,
LANGUAGE_PORTUGUESE,
LANGUAGE_MEXICAN_SPANISH,
LANGUAGE_FULL_JAPANESE
};
class Zone
{
IZoneAssetPools* m_pools;
@ -13,6 +38,7 @@ class Zone
public:
std::string m_name;
zone_priority_t m_priority;
ZoneLanguage m_language;
IGame* m_game;
Zone(std::string name, zone_priority_t priority, IZoneAssetPools* pools, IGame* game);