iw4x-client/src/Components/Modules/Localization.hpp

25 lines
669 B
C++
Raw Normal View History

2015-12-25 17:17:29 -05:00
namespace Components
{
class Localization : public Component
{
public:
Localization();
~Localization();
const char* GetName() { return "Localization"; };
static void Set(const char* key, const char* value);
static const char* Get(const char* key);
2016-01-12 13:08:26 -05:00
static void SetTemp(std::string key, std::string value);
static void ClearTemp();
2015-12-25 17:17:29 -05:00
private:
2016-01-12 13:08:26 -05:00
static std::map<std::string, Game::LocalizedEntry*> LocalizeMap;
static std::map<std::string, Game::LocalizedEntry*> TempLocalizeMap;
2015-12-25 20:51:58 -05:00
static Dvar::Var UseLocalization;
2016-01-03 09:44:51 -05:00
static void __stdcall SetStringStub(const char* key, const char* value, bool isEnglish);
static DWORD SELoadLanguageStub();
2015-12-25 17:17:29 -05:00
};
}