AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Common.h File Reference
#include "Define.h"
#include <array>
#include <memory>
#include <string>
#include <utility>
#include <cstdlib>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  Acore::unary_function< ArgumentType, ResultType >
 

Namespaces

namespace  Acore
 

Macros

#define STRINGIZE(a)   #a
 
#define MAX_NETCLIENT_PACKET_SIZE   (32767 - 1)
 
#define DEFAULT_LOCALE   LOCALE_enUS
 
#define MAX_LOCALES   8
 
#define MAX_ACCOUNT_TUTORIAL_VALUES   8
 
#define MAX_QUERY_LEN   32*1024
 

Enumerations

enum  AccountTypes {
  SEC_PLAYER = 0 ,
  SEC_MODERATOR = 1 ,
  SEC_GAMEMASTER = 2 ,
  SEC_ADMINISTRATOR = 3 ,
  SEC_CONSOLE = 4
}
 
enum  LocaleConstant {
  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 ,
  TOTAL_LOCALES
}
 

Functions

AC_COMMON_API LocaleConstant GetLocaleByName (const std::string &name)
 
AC_COMMON_API void CleanStringForMysqlQuery (std::string &str)
 

Variables

constexpr auto MINUTE = 60
 
constexpr auto HOUR = MINUTE * 60
 
constexpr auto DAY = HOUR * 24
 
constexpr auto WEEK = DAY * 7
 
constexpr auto MONTH = DAY * 30
 
constexpr auto YEAR = MONTH * 12
 
constexpr auto IN_MILLISECONDS = 1000
 
AC_COMMON_API char const * localeNames [TOTAL_LOCALES]
 

Macro Definition Documentation

◆ DEFAULT_LOCALE

#define DEFAULT_LOCALE   LOCALE_enUS

◆ MAX_ACCOUNT_TUTORIAL_VALUES

#define MAX_ACCOUNT_TUTORIAL_VALUES   8

◆ MAX_LOCALES

#define MAX_LOCALES   8

◆ MAX_NETCLIENT_PACKET_SIZE

#define MAX_NETCLIENT_PACKET_SIZE   (32767 - 1)

◆ MAX_QUERY_LEN

#define MAX_QUERY_LEN   32*1024

◆ STRINGIZE

#define STRINGIZE (   a)    #a

Enumeration Type Documentation

◆ AccountTypes

Enumerator
SEC_PLAYER 
SEC_MODERATOR 
SEC_GAMEMASTER 
SEC_ADMINISTRATOR 
SEC_CONSOLE 
58{
59 SEC_PLAYER = 0,
60 SEC_MODERATOR = 1,
63 SEC_CONSOLE = 4 // must be always last in list, accounts must have less security level always also
64};
@ SEC_PLAYER
Definition: Common.h:59
@ SEC_ADMINISTRATOR
Definition: Common.h:62
@ SEC_GAMEMASTER
Definition: Common.h:61
@ SEC_MODERATOR
Definition: Common.h:60
@ SEC_CONSOLE
Definition: Common.h:63

◆ LocaleConstant

Enumerator
LOCALE_enUS 
LOCALE_koKR 
LOCALE_frFR 
LOCALE_deDE 
LOCALE_zhCN 
LOCALE_zhTW 
LOCALE_esES 
LOCALE_esMX 
LOCALE_ruRU 
TOTAL_LOCALES 
67{
68 LOCALE_enUS = 0,
69 LOCALE_koKR = 1,
70 LOCALE_frFR = 2,
71 LOCALE_deDE = 3,
72 LOCALE_zhCN = 4,
73 LOCALE_zhTW = 5,
74 LOCALE_esES = 6,
75 LOCALE_esMX = 7,
76 LOCALE_ruRU = 8,
77
79};
@ LOCALE_zhCN
Definition: Common.h:72
@ LOCALE_deDE
Definition: Common.h:71
@ LOCALE_zhTW
Definition: Common.h:73
@ LOCALE_esES
Definition: Common.h:74
@ TOTAL_LOCALES
Definition: Common.h:78
@ LOCALE_ruRU
Definition: Common.h:76
@ LOCALE_frFR
Definition: Common.h:70
@ LOCALE_enUS
Definition: Common.h:68
@ LOCALE_koKR
Definition: Common.h:69
@ LOCALE_esMX
Definition: Common.h:75

Function Documentation

◆ CleanStringForMysqlQuery()

AC_COMMON_API void CleanStringForMysqlQuery ( std::string &  str)
45{
46 std::string::size_type n = 0;
47 while ((n = str.find('\\')) != str.npos) { str.erase(n, 1); }
48 while ((n = str.find('"')) != str.npos) { str.erase(n, 1); }
49 while ((n = str.find('\'')) != str.npos) { str.erase(n, 1); }
50}

Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleSendMail(), and Map::LogEncounterFinished().

◆ GetLocaleByName()

Variable Documentation

◆ DAY

constexpr auto DAY = HOUR * 24
constexpr

Referenced by InstanceSaveMgr::_ResetOrWarnAll(), InstanceSaveMgr::AddInstanceSave(), Channel::CleanOldChannelsInDB(), Player::DeleteOldCharacters(), GetAge(), Acore::Time::GetLocalHourTimestamp(), Acore::Time::GetNextTimeWithDayAndHour(), WorldSession::HandleGetMailList(), npc_echo_of_medivh::HandlePieceJustDied(), WorldSession::HandleQueryNextMailTime(), Guild::HandleRoster(), Corpse::IsExpired(), boss_azuregos::boss_azuregosAI::JustDied(), npc_medivh_bm::JustDied(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::JustDied(), ObjectMgr::LoadCreatures(), InstanceSaveMgr::LoadResetTimes(), npc_riggle_bassbait::npc_riggle_bassbaitAI::npc_riggle_bassbaitAI(), instance_ulduar::instance_ulduar_InstanceMapScript::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnUnitDeath(), npc_argent_captainAI::Reset(), Creature::Respawn(), ObjectMgr::ReturnOrDeleteOldMails(), secsToTimeString(), MailDraft::SendMailTo(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::SetData(), instance_karazhan::instance_karazhan_InstanceMapScript::SetData(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), instance_oculus::instance_oculus_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), npc_crate_helper::npc_crate_helperAI::SpellHit(), npc_drakonid_spawner::SummonedCreatureDies(), TimeStringToSecs(), BattlegroundMgr::Update(), GameObject::Update(), and Player::UpdateHonorFields().

◆ HOUR

◆ IN_MILLISECONDS

constexpr auto IN_MILLISECONDS = 1000
constexpr

Referenced by Player::_AddSpellCooldown(), Pet::_LoadAuras(), Player::_LoadAuras(), Player::_LoadQuestStatus(), Pet::_LoadSpellCooldowns(), Player::_LoadSpellCooldowns(), Battleground::_ProcessJoin(), Battleground::_ProcessProgress(), Pet::_SaveAuras(), Player::_SaveAuras(), Player::_SaveQuestStatus(), Pet::_SaveSpellCooldowns(), Player::_SaveSpellCooldowns(), spell_rog_cheat_death::Absorb(), Player::AddQuest(), Player::AddSpellAndCategoryCooldowns(), GameObject::AddToSkillupList(), Player::ApplyEquipCooldown(), npc_mograine::npc_mograineAI::AshbringerEvent(), Aura::Aura(), AuctionEntry::BuildAuctionInfo(), spell_shadowfang_keep_haunting_spirits::spell_shadowfang_keep_haunting_spirits_AuraScript::CalcPeriodic(), spell_serpentshrine_cavern_coilfang_water::CalcPeriodic(), spell_allergies::CalcPeriodic(), spell_dk_pet_scaling::CalcPeriodic(), spell_gen_bg_preparation::CalcPeriodic(), spell_pet_hit_expertise_scalling::CalcPeriodic(), spell_hun_generic_scaling::CalcPeriodic(), spell_item_goblin_gumbo_kettle::CalcPeriodic(), spell_mage_pet_scaling::CalcPeriodic(), spell_sha_feral_spirit_scaling::CalcPeriodic(), spell_warl_improved_demonic_tactics::CalcPeriodic(), spell_warl_demonic_knowledge::CalcPeriodic(), spell_warl_generic_scaling::CalcPeriodic(), Player::CalculateCorpseReclaimDelay(), AuraEffect::CalculatePeriodic(), MotionTransport::CalculateSegmentPos(), instance_naxxramas::instance_naxxramas_InstanceMapScript::CheckAchievementCriteriaMeet(), Spell::CheckCast(), boss_lord_valthalak::boss_lord_valthalakAI::DamageTaken(), npc_thrall_warchief::npc_thrall_warchiefAI::DoAction(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), npc_chesspiece::DoAction(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DoAction(), WaypointMovementGenerator< Creature >::DoUpdate(), Spell::EffectDistract(), Spell::EffectDuel(), Spell::EffectEnchantHeldItem(), Spell::EffectOpenLock(), Spell::EffectSchoolDMG(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPlayer(), Spell::EffectSummonRaFFriend(), Spell::EffectTransmitted(), boss_kiljaeden::boss_kiljaedenAI::EmpowerOrb(), boss_warmaster_voone::boss_warmastervooneAI::ExecuteEvent(), npc_xt002_boombot::npc_xt002_boombotAI::Explode(), TransportMgr::GeneratePath(), GetDiminishingReturnsLimitDuration(), BattlegroundWS::GetMatchTime(), Player::getMaxTimer(), go_brazier_of_madness::GossipHello(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleAuraTransform(), bf_commandscript::HandleBattlefieldTimer(), WardenWin::HandleData(), deserter_commandscript::HandleDeserterAdd(), deserter_commandscript::HandleDeserterRemove(), deserter_commandscript::HandleDeserterRemoveAll(), Player::HandleDrowning(), Unit::HandleDummyAuraProc(), spell_yogg_saron_sanity_well::spell_yogg_saron_sanity_well_AuraScript::HandleEffectCalcPeriodic(), spell_gen_haunted_aura::HandleEffectCalcPeriodic(), spell_midsummer_ribbon_pole::HandleEffectPeriodic(), spell_gen_haunted_aura::HandleEffectPeriodic(), spell_q11919_q11940_drake_hunt::spell_q11919_q11940_drake_hunt_AuraScript::HandleEffectRemove(), spell_icc_sprit_alarm::spell_icc_sprit_alarm_SpellScript::HandleEvent(), spell_icc_geist_alarm::spell_icc_geist_alarm_SpellScript::HandleEvent(), spell_q5056_summon_shy_rotam::HandleFinish(), spell_summon_ragnaros::spell_summon_ragnaros_SpellScript::HandleHit(), WorldSession::HandleMoveTeleportAck(), spell_gen_haunted::HandleOnEffectHit(), spell_pal_sacred_shield_base::HandleProc(), ArenaSpectator::HandleResetCommand(), misc_commandscript::HandleSaveCommand(), spell_q12690_burst_at_the_seams::HandleScript(), spell_deliver_gryphon::HandleScriptEffect(), spell_q9847_a_spirit_ally::HandleSendEvent(), ArenaSpectator::HandleSpectatorSpectateCommand(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Initialize(), npc_general_andorov::InitializeAI(), npc_chesspiece::InitializeCombatSpellsByEntry(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::instance_icecrown_citadel_InstanceMapScript(), instance_naxxramas::instance_naxxramas_InstanceMapScript::instance_naxxramas_InstanceMapScript(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::IsEncounterInProgress(), Creature::IsNotReachableAndNeedRegen(), boss_lord_valthalak::boss_lord_valthalakAI::IsSummonedBy(), npc_spiritual_insight::npc_spiritual_insightAI::IsSummonedBy(), npc_ahnqiraji_critter::JustDied(), npc_xt002_boombot::npc_xt002_boombotAI::JustDied(), boss_akilzon::boss_akilzonAI::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), boss_blackheart_the_inciter::JustEngagedWith(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustEngagedWith(), Player::KillPlayer(), World::LoadConfigSettings(), SpellMgr::LoadSpellInfoCorrections(), Unit::ModSpellDuration(), npc_brewfest_keg_reciver::MoveInLineOfSight(), npc_chesspiece::MovementInform(), npc_archmage_landalock::npc_archmage_landalockAI::npc_archmage_landalockAI(), npc_chesspiece::npc_chesspiece(), achievement_wg_within_our_grasp::OnCheck(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), spell_blackrock_spire_call_of_vaelastrasz::OnEffect(), spell_pagles_point_cast::OnEffect(), instance_molten_core::instance_molten_core_InstanceMapScript::OnGameObjectCreate(), npc_sayge::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), npc_grandmother::OnGossipSelect(), instance_stratholme::instance_stratholme_InstanceMapScript::OnPlayerEnter(), spell_silithyst::OnRemove(), npc_hyldsmeet_protodrake::npc_hyldsmeet_protodrakeAI::PassengerBoarded(), BattlegroundWS::PostUpdateImpl(), npc_barnes::npc_barnesAI::PrepareEncounter(), Aura::RefreshDuration(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Player::RemoveArenaSpellCooldowns(), Unit::RemoveAurasDueToSpellBySteal(), lfg::LFGMgr::RemoveProposal(), Player::ReportedAfkBy(), boss_drekthar::boss_drektharAI::Reset(), boss_galvangar::boss_galvangarAI::Reset(), boss_vanndar::boss_vanndarAI::Reset(), npc_echo_of_medivh::Reset(), boss_janalai::boss_janalaiAI::Reset(), npc_shadowpriest_sezziz::npc_shadowpriest_sezzizAI::Reset(), boss_archavon::boss_archavonAI::Reset(), boss_emalon::boss_emalonAI::Reset(), boss_koralon::boss_koralonAI::Reset(), boss_toravon::boss_toravonAI::Reset(), npc_minigob_manabonk::npc_minigob_manabonkAI::Reset(), npc_pet_gen_argent_pony_bridle::Reset(), Player::ResurrectPlayer(), OutdoorPvPTF::SaveRequiredWorldStates(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), AchievementMgr::SetCriteriaProgress(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::SetData(), boss_the_beast::boss_thebeastAI::SetData(), World::SetInitialWorldSettings(), BattlefieldWG::SetupBattlefield(), OutdoorPvPTF::SetupOutdoorPvP(), npc_brewfest_keg_reciver::sGossipSelect(), npc_thrall_bfu::npc_thrall_bfuAI::SpawnWave(), boss_julianne::SpellHit(), npc_chesspiece::SpellHitTarget(), BattlegroundWS::StartingEventOpenDoors(), AchievementMgr::StartTimedAchievement(), SummonCroneIfReady(), npc_drakonid_spawner::SummonedCreatureDies(), npc_eris_hevenfire::npc_eris_hevenfireAI::SummonPeasants(), boss_ambassador_flamelash::boss_ambassador_flamelashAI::SummonSpirits(), CreatureAI::TriggerAlert(), GameEventMgr::Update(), spell_item_goblin_gumbo_kettle::Update(), Warden::Update(), Battleground::Update(), BattlegroundMgr::Update(), BattlefieldWG::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::Update(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::Update(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Update(), GameObject::Update(), Creature::Update(), Player::Update(), boss_drekthar::boss_drektharAI::UpdateAI(), boss_galvangar::boss_galvangarAI::UpdateAI(), boss_vanndar::boss_vanndarAI::UpdateAI(), boss_overlord_wyrmthalak::boss_overlordwyrmthalakAI::UpdateAI(), boss_the_beast::boss_thebeastAI::UpdateAI(), npc_chesspiece::UpdateAI(), npc_eris_hevenfire::npc_eris_hevenfireAI::UpdateAI(), npc_varian_wrynn::npc_varian_wrynnAI::UpdateAI(), npc_thrall_bfu::npc_thrall_bfuAI::UpdateAI(), npc_forest_frog::npc_forest_frogAI::UpdateAI(), npc_coren_direbrew::UpdateAI(), npc_costumed_orphan_matron::UpdateAI(), boss_headless_horseman::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), npc_time_rift::UpdateAI(), npc_shadowpriest_sezziz::npc_shadowpriest_sezzizAI::UpdateAI(), boss_slad_ran::boss_slad_ranAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), npc_crystalline_frayer::npc_crystalline_frayerAI::UpdateAI(), npc_freya_ward::npc_freya_wardAI::UpdateAI(), npc_thorims_hammer::npc_thorims_hammerAI::UpdateAI(), npc_archmage_landalock::npc_archmage_landalockAI::UpdateAI(), boss_alar::boss_alarAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), PetAI::UpdateAllies(), CinematicMgr::UpdateCinematicLocation(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), lfg::LFGMgr::UpdateProposal(), Player::UpdateRuneRegen(), GameObject::Use(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::WaypointReached(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached(), npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached(), and Weather::Weather().

◆ localeNames

◆ MINUTE

constexpr auto MINUTE = 60
constexpr

Referenced by Player::_LoadItem(), Battleground::_ProcessProgress(), InstanceSaveMgr::_ResetOrWarnAll(), Player::_SaveSpellCooldowns(), spell_rog_cheat_death::Absorb(), GameObject::AddToSkillupList(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::CheckAchievementCriteriaMeet(), Spell::CheckCast(), GameEventMgr::CheckOneGameEvent(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DoAction(), Spell::EffectEnchantHeldItem(), boss_kiljaeden::boss_kiljaedenAI::EmpowerOrb(), BattlegroundWS::GetMatchTime(), Player::getMaxTimer(), spell_q9452_cast_net::HandleActiveObject(), WorldSession::HandleAuctionSellItem(), BattlegroundIC::HandleCapturedNodes(), spell_midsummer_ribbon_pole::HandleEffectPeriodic(), spell_q11919_q11940_drake_hunt::spell_q11919_q11940_drake_hunt_AuraScript::HandleEffectRemove(), spell_icc_geist_alarm::spell_icc_geist_alarm_SpellScript::HandleEvent(), event_commandscript::HandleEventInfoCommand(), spell_q5056_summon_shy_rotam::HandleFinish(), WorldSession::HandleMessagechatOpcode(), misc_commandscript::HandleMuteCommand(), Battlefield::HandlePlayerEnterZone(), ArenaSpectator::HandleResetCommand(), spell_deliver_gryphon::HandleScriptEffect(), spell_q9847_a_spirit_ally::HandleSendEvent(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Initialize(), instance_naxxramas::instance_naxxramas_InstanceMapScript::instance_naxxramas_InstanceMapScript(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::IsEncounterInProgress(), Corpse::IsExpired(), npc_spiritual_insight::npc_spiritual_insightAI::IsSummonedBy(), boss_akilzon::boss_akilzonAI::JustEngagedWith(), boss_mimiron::boss_mimironAI::JustEngagedWith(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustEngagedWith(), Player::KillPlayer(), World::LoadConfigSettings(), Unit::ModSpellDuration(), GameEventMgr::NextCheck(), npc_archmage_landalock::npc_archmage_landalockAI::npc_archmage_landalockAI(), achievement_wg_within_our_grasp::OnCheck(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), npc_wg_queue::OnGossipHello(), npc_wg_queue::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), boss_gloomrel::OnGossipSelect(), instance_stratholme::instance_stratholme_InstanceMapScript::OnPlayerEnter(), spell_silithyst::OnRemove(), npc_hyldsmeet_protodrake::npc_hyldsmeet_protodrakeAI::PassengerBoarded(), BattlegroundWS::PostUpdateImpl(), Player::RemoveArenaSpellCooldowns(), Unit::RemoveAurasDueToSpellBySteal(), Player::ReportedAfkBy(), boss_janalai::boss_janalaiAI::Reset(), npc_dark_iron_attack_generator::Reset(), boss_archavon::boss_archavonAI::Reset(), boss_emalon::boss_emalonAI::Reset(), boss_koralon::boss_koralonAI::Reset(), boss_toravon::boss_toravonAI::Reset(), Creature::Respawn(), Player::ResurrectPlayer(), secsToTimeString(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::SetData(), Group::SetDifficultyChangePrevention(), GameEventMgr::SetHolidayEventTime(), World::SetInitialWorldSettings(), Creature::SetPickPocketLootTime(), BattlefieldWG::SetupBattlefield(), World::ShutdownMsg(), BattlegroundAV::StartingEventOpenDoors(), BattlegroundWS::StartingEventOpenDoors(), GameEventMgr::StopEvent(), go_wind_stone::go_wind_stoneAI::SummonNPC(), npc_eris_hevenfire::npc_eris_hevenfireAI::SummonPeasants(), TimeStringToSecs(), Battleground::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::Update(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Update(), GameObject::Update(), Player::UpdateAfkReport(), npc_forest_frog::npc_forest_frogAI::UpdateAI(), npc_time_rift::UpdateAI(), npc_archmage_landalock::npc_archmage_landalockAI::UpdateAI(), npc_wg_queue::npc_wg_queueAI::UpdateAI(), boss_alar::boss_alarAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::WaypointReached(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached(), and Weather::Weather().

◆ MONTH

◆ WEEK

◆ YEAR

constexpr auto YEAR = MONTH * 12
constexpr