mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-22 12:47:53 -05:00
ZoneCommon: Add GameLanguagePrefix class and save known prefixes for languages in the game object
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user