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

29 lines
786 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class Localization : public Component
{
public:
Localization();
~Localization();
2018-12-17 08:29:18 -05:00
static void Set(const std::string& key, const std::string& value);
2017-01-19 16:23:59 -05:00
static const char* Get(const char* key);
2018-12-17 08:29:18 -05:00
static void SetTemp(const std::string& key, const std::string& value);
2017-01-19 16:23:59 -05:00
static void ClearTemp();
private:
static std::recursive_mutex LocalizeMutex;
static std::unordered_map<std::string, Game::LocalizeEntry*> LocalizeMap;
static std::unordered_map<std::string, Game::LocalizeEntry*> TempLocalizeMap;
static Dvar::Var UseLocalization;
static void __stdcall SetStringStub(const char* key, const char* value, bool isEnglish);
static void LoadLanguageStrings();
static void SELoadLanguageStub();
2017-02-08 10:25:48 -05:00
static void SetCredits();
2017-01-19 16:23:59 -05:00
};
}