ZoneCommon: Add GameLanguagePrefix class and save known prefixes for languages in the game object

This commit is contained in:
Jan
2020-02-07 20:52:24 +01:00
parent f73c27a7dc
commit 9f8022c2ca
10 changed files with 108 additions and 111 deletions

View File

@ -6,7 +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;
m_language = GameLanguage::LANGUAGE_NONE;
m_memory = new ZoneMemory();
m_registered = false;
}

View File

@ -2,37 +2,13 @@
#include "ZoneTypes.h"
#include "Pool/IZoneAssetPools.h"
#include "Game/IGame.h"
#include "Game/GameLanguage.h"
#include "Zone/XBlock.h"
#include "ZoneMemory.h"
#include <string>
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;
@ -44,7 +20,7 @@ class Zone
public:
std::string m_name;
zone_priority_t m_priority;
ZoneLanguage m_language;
GameLanguage m_language;
IGame* m_game;
Zone(std::string name, zone_priority_t priority, IZoneAssetPools* pools, IGame* game);