![]() |
TrinityCore
|
Include dependency graph for Common.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | LocalizedString |
Macros | |
| #define | STRINGIZE(a) #a |
| #define | DEFAULT_LOCALE LOCALE_enUS |
| #define | M_PI 3.14159265358979323846 |
| #define | M_PI_4 0.785398163397448309616 |
| #define | MAX_QUERY_LEN 32*1024 |
Enumerations | |
| enum | TimeConstants { MINUTE = 60 , HOUR = MINUTE*60 , DAY = HOUR*24 , WEEK = DAY*7 , MONTH = DAY*30 , YEAR = DAY*365 , IN_MILLISECONDS = 1000 } |
| enum | AccountTypes { SEC_PLAYER = 0 , SEC_MODERATOR = 1 , SEC_GAMEMASTER = 2 , SEC_ADMINISTRATOR = 3 , SEC_CONSOLE = 4 } |
| enum | LocaleConstant : uint8 { LOCALE_enUS = 0 , LOCALE_koKR = 1 , LOCALE_frFR = 2 , LOCALE_deDE = 3 , LOCALE_zhCN = 4 , LOCALE_zhTW = 5 , LOCALE_esES = 6 , LOCALE_esMX = 7 , LOCALE_ruRU = 8 , LOCALE_none = 9 , LOCALE_ptBR = 10 , LOCALE_itIT = 11 , TOTAL_LOCALES } |
| enum class | CascLocaleBit : uint8 { None = 0 , enUS = 1 , koKR = 2 , Reserved = 3 , frFR = 4 , deDE = 5 , zhCN = 6 , esES = 7 , zhTW = 8 , enGB = 9 , enCN = 10 , enTW = 11 , esMX = 12 , ruRU = 13 , ptBR = 14 , itIT = 15 , ptPT = 16 } |
Functions | |
| TC_COMMON_API LocaleConstant | GetLocaleByName (std::string_view name) |
| constexpr bool | IsValidLocale (LocaleConstant locale) |
Variables | |
| const uint8 | OLD_TOTAL_LOCALES = 9 |
| TC_COMMON_API char const * | localeNames [TOTAL_LOCALES] |
| TC_COMMON_API CascLocaleBit | WowLocaleToCascLocaleBit [TOTAL_LOCALES] |
| #define DEFAULT_LOCALE LOCALE_enUS |
| enum AccountTypes |
|
strong |
| enum LocaleConstant : uint8 |
| enum TimeConstants |
| TC_COMMON_API LocaleConstant GetLocaleByName | ( | std::string_view | name | ) |
Definition at line 36 of file Common.cpp.
References localeNames, and TOTAL_LOCALES.
Referenced by Battlenet::Services::Shared::GameUtilities::GetRealmListTicket(), Battlenet::Services::Shared::Authentication::HandleLogon(), Battlenet::Services::Shared::GameUtilities::JoinRealm(), Quest::LoadConditionalConditionalOfferRewardText(), Quest::LoadConditionalConditionalQuestCompletionLog(), Quest::LoadConditionalConditionalQuestDescription(), Quest::LoadConditionalConditionalRequestItemsText(), ObjectMgr::LoadCreatureLocales(), CreatureTextMgr::LoadCreatureTextLocales(), ObjectMgr::LoadGameObjectLocales(), ObjectMgr::LoadGossipMenuItemsLocales(), DB2Manager::LoadHotfixBlob(), DB2Manager::LoadHotfixOptionalData(), ObjectMgr::LoadPageTextLocales(), ObjectMgr::LoadPlayerChoicesLocale(), ObjectMgr::LoadPointOfInterestLocales(), ObjectMgr::LoadQuestGreetingLocales(), ObjectMgr::LoadQuestObjectivesLocale(), ObjectMgr::LoadQuestOfferRewardLocale(), ObjectMgr::LoadQuestRequestItemsLocale(), ObjectMgr::LoadQuestTemplateLocale(), AchievementGlobalMgr::LoadRewardLocales(), DB2Manager::LoadStores(), and ObjectMgr::LoadTrainers().
|
inlineconstexpr |
Definition at line 98 of file Common.h.
References LOCALE_none, and TOTAL_LOCALES.
Referenced by DB2Manager::GetHotfixBlobData(), DB2Manager::GetHotfixOptionalData(), Battlenet::Services::Shared::Authentication::HandleLogon(), ObjectMgr::LoadCreatureLocales(), CreatureTextMgr::LoadCreatureTextLocales(), ObjectMgr::LoadGameObjectLocales(), ObjectMgr::LoadGossipMenuItemsLocales(), DB2Manager::LoadHotfixBlob(), DB2Manager::LoadHotfixOptionalData(), ObjectMgr::LoadPageTextLocales(), ObjectMgr::LoadPlayerChoicesLocale(), ObjectMgr::LoadPointOfInterestLocales(), ObjectMgr::LoadQuestGreetingLocales(), ObjectMgr::LoadQuestObjectivesLocale(), ObjectMgr::LoadQuestOfferRewardLocale(), ObjectMgr::LoadQuestRequestItemsLocale(), ObjectMgr::LoadQuestTemplateLocale(), AchievementGlobalMgr::LoadRewardLocales(), DB2Manager::LoadStores(), and ObjectMgr::LoadTrainers().
|
extern |
Definition at line 20 of file Common.cpp.
Referenced by DB2FileLoaderRegularImpl::AutoProduceStrings(), DB2FileLoaderSparseImpl::AutoProduceStrings(), ExtractDB2File(), ExtractDBFilesClient(), GetLocaleByName(), HandleArgs(), character_commandscript::HandleCharacterReputationCommand(), character_commandscript::HandleCharacterTitlesCommand(), lookup_commandscript::HandleLookupFactionCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), server_commandscript::HandleServerDebugCommand(), World::LoadConfigSettings(), LoadDB2(), DB2DatabaseLoader::LoadStrings(), main(), main(), OpenCascStorage(), processArgv(), and World::SetInitialWorldSettings().
| const uint8 OLD_TOTAL_LOCALES = 9 |
Definition at line 68 of file Common.h.
Referenced by ObjectMgr::LoadTrinityStrings().
|
extern |
Definition at line 45 of file Common.cpp.
Referenced by DB2Manager::GetBroadcastTextDuration().