TrinityCore
World Class Reference

The World. More...

#include <World.h>

Classes

struct  Autobroadcast
 

Public Types

typedef std::list< WorldSession * > Queue
 

Public Member Functions

WorldSessionFindSession (uint32 id) const
 Find a session by its id. More...
 
void AddSession (WorldSession *s)
 
void AddInstanceSocket (std::weak_ptr< WorldSocket > sock, uint64 connectToKey)
 
void SendAutoBroadcast ()
 
bool RemoveSession (uint32 id)
 Remove a given session. More...
 
void UpdateMaxSessionCounters ()
 Get the number of current active sessions. More...
 
SessionMap const & GetAllSessions () const
 
uint32 GetActiveAndQueuedSessionCount () const
 
uint32 GetActiveSessionCount () const
 
uint32 GetQueuedSessionCount () const
 
uint32 GetMaxQueuedSessionCount () const
 Get the maximum number of parallel sessions on the server since last reboot. More...
 
uint32 GetMaxActiveSessionCount () const
 
uint32 GetPlayerCount () const
 Get number of players. More...
 
uint32 GetMaxPlayerCount () const
 
void IncreasePlayerCount ()
 Increase/Decrease number of players. More...
 
void DecreasePlayerCount ()
 
PlayerFindPlayerInZone (uint32 zone)
 Find a player in a specified zone. More...
 
bool IsClosed () const
 Deny clients? More...
 
void SetClosed (bool val)
 Close world. More...
 
AccountTypes GetPlayerSecurityLimit () const
 Security level limitations. More...
 
void SetPlayerSecurityLimit (AccountTypes sec)
 
void LoadDBAllowedSecurityLevel ()
 
void SetPlayerAmountLimit (uint32 limit)
 Active session server limit. More...
 
uint32 GetPlayerAmountLimit () const
 
void AddQueuedPlayer (WorldSession *)
 
bool RemoveQueuedPlayer (WorldSession *session)
 
int32 GetQueuePos (WorldSession *)
 
bool HasRecentlyDisconnected (WorldSession *)
 
bool getAllowMovement () const
 
void SetAllowMovement (bool allow)
 Allow/Disallow object movements. More...
 
void SetMotd (std::string motd)
 Set a new Message of the Day. More...
 
std::vector< std::string > const & GetMotd () const
 Get the current Message of the Day. More...
 
void SetNewCharString (std::string const &str)
 Set the string for new characters (first login) More...
 
std::string const & GetNewCharString () const
 Get the string for new characters (first login) More...
 
LocaleConstant GetDefaultDbcLocale () const
 
std::string const & GetDataPath () const
 Get the path where data (dbc, maps) are stored on disk. More...
 
time_t GetNextDailyQuestsResetTime () const
 Next daily quests and random bg reset time. More...
 
time_t GetNextWeeklyQuestsResetTime () const
 
time_t GetNextRandomBGResetTime () const
 
uint16 GetConfigMaxSkillValue () const
 Get the maximum skill level a player can reach. More...
 
void SetInitialWorldSettings ()
 Initialize the World. More...
 
void LoadConfigSettings (bool reload=false)
 Initialize config values. More...
 
void SendWorldText (uint32 string_id,...)
 Send a System Message to all players (except self if mentioned) More...
 
void SendGlobalText (char const *text, WorldSession *self)
 DEPRECATED, only for debug purpose. Send a System Message to all players (except self if mentioned) More...
 
void SendGMText (uint32 string_id,...)
 Send a System Message to all GMs (except self if mentioned) More...
 
void SendServerMessage (ServerMessageType messageID, std::string_view stringParam={}, Player const *player=nullptr)
 Send a server message to the user(s) More...
 
void SendGlobalMessage (WorldPacket const *packet, WorldSession *self=nullptr, Optional< Team > team={ })
 Send a packet to all players (except self if mentioned) More...
 
void SendGlobalGMMessage (WorldPacket const *packet, WorldSession *self=nullptr, Optional< Team > team={ })
 Send a packet to all GMs (except self if mentioned) More...
 
bool SendZoneMessage (uint32 zone, WorldPacket const *packet, WorldSession *self=nullptr, Optional< Team > team={ })
 Send a packet to all players (or players selected team) in the zone (except self if mentioned) More...
 
void SendZoneText (uint32 zone, const char *text, WorldSession *self=nullptr, Optional< Team > team={ })
 Send a System Message to all players in the zone (except self if mentioned) More...
 
bool IsShuttingDown () const
 Are we in the middle of a shutdown? More...
 
uint32 GetShutDownTimeLeft () const
 
void ShutdownServ (uint32 time, uint32 options, uint8 exitcode, const std::string &reason=std::string())
 Shutdown the server. More...
 
uint32 ShutdownCancel ()
 Cancel a planned server shutdown. More...
 
void ShutdownMsg (bool show=false, Player *player=nullptr, const std::string &reason=std::string())
 Display a shutdown message to the user(s) More...
 
void Update (uint32 diff)
 Update the World ! More...
 
void UpdateSessions (uint32 diff)
 
void setRate (Rates rate, float value)
 Set a server rate (see Rates) More...
 
float getRate (Rates rate) const
 Get a server rate (see Rates) More...
 
void setBoolConfig (WorldBoolConfigs index, bool value)
 Set a server configuration element (see #WorldConfigs) More...
 
bool getBoolConfig (WorldBoolConfigs index) const
 Get a server configuration element (see #WorldConfigs) More...
 
void setFloatConfig (WorldFloatConfigs index, float value)
 Set a server configuration element (see #WorldConfigs) More...
 
float getFloatConfig (WorldFloatConfigs index) const
 Get a server configuration element (see #WorldConfigs) More...
 
void setIntConfig (WorldIntConfigs index, uint32 value)
 Set a server configuration element (see #WorldConfigs) More...
 
uint32 getIntConfig (WorldIntConfigs index) const
 Get a server configuration element (see #WorldConfigs) More...
 
uint64 GetUInt64Config (WorldInt64Configs index) const
 
int32 GetPersistentWorldVariable (PersistentWorldVariable const &var) const
 
void SetPersistentWorldVariable (PersistentWorldVariable const &var, int32 value)
 
void LoadPersistentWorldVariables ()
 
bool IsPvPRealm () const
 Are we on a "Player versus Player" server? More...
 
bool IsFFAPvPRealm () const
 
void KickAll ()
 Kick (and save) all players. More...
 
void KickAllLess (AccountTypes sec)
 Kick (and save) all players with security level less sec More...
 
BanReturn BanAccount (BanMode mode, std::string const &nameOrIP, std::string const &duration, std::string const &reason, std::string const &author)
 Ban an account or ban an IP address, duration will be parsed using TimeStringToSecs if it is positive, otherwise permban. More...
 
BanReturn BanAccount (BanMode mode, std::string const &nameOrIP, uint32 duration_secs, std::string const &reason, std::string const &author)
 Ban an account or ban an IP address, duration is in seconds if positive, otherwise permban. More...
 
bool RemoveBanAccount (BanMode mode, std::string const &nameOrIP)
 Remove a ban from an account or IP address. More...
 
BanReturn BanCharacter (std::string const &name, std::string const &duration, std::string const &reason, std::string const &author)
 Ban an account or ban an IP address, duration will be parsed using TimeStringToSecs if it is positive, otherwise permban. More...
 
bool RemoveBanCharacter (std::string const &name)
 Remove a ban from a character. More...
 
void ProcessCliCommands ()
 
void QueueCliCommand (CliCommandHolder *commandHolder)
 
void ForceGameEventUpdate ()
 
void UpdateRealmCharCount (uint32 accountId)
 
LocaleConstant GetAvailableDbcLocale (LocaleConstant locale) const
 
void LoadDBVersion ()
 
char const * GetDBVersion () const
 
void LoadAutobroadcasts ()
 
void UpdateAreaDependentAuras ()
 
bool IsBattlePetJournalLockAcquired (ObjectGuid battlenetAccountGuid)
 
uint32 GetCleaningFlags () const
 
void SetCleaningFlags (uint32 flags)
 
void ResetEventSeasonalQuests (uint16 event_id, time_t eventStartTime)
 
void ReloadRBAC ()
 
void RemoveOldCorpses ()
 
void TriggerGuidWarning ()
 
void TriggerGuidAlert ()
 
bool IsGuidWarning ()
 
bool IsGuidAlert ()
 
void SetForcedWarModeFactionBalanceState (TeamId team, int32 reward=0)
 
void DisableForcedWarModeFactionBalanceState ()
 

Static Public Member Functions

static Worldinstance ()
 
static uint8 GetExitCode ()
 
static void StopNow (uint8 exitcode)
 
static bool IsStopped ()
 
static float GetMaxVisibleDistanceOnContinents ()
 
static float GetMaxVisibleDistanceInInstances ()
 
static float GetMaxVisibleDistanceInBG ()
 
static float GetMaxVisibleDistanceInArenas ()
 
static int32 GetVisibilityNotifyPeriodOnContinents ()
 
static int32 GetVisibilityNotifyPeriodInInstances ()
 
static int32 GetVisibilityNotifyPeriodInBG ()
 
static int32 GetVisibilityNotifyPeriodInArenas ()
 

Static Public Attributes

static std::atomic< uint32m_worldLoopCounter
 
static PersistentWorldVariable const NextCurrencyResetTimeVarId { "NextCurrencyResetTime" }
 
static PersistentWorldVariable const NextWeeklyQuestResetTimeVarId { "NextWeeklyQuestResetTime" }
 
static PersistentWorldVariable const NextBGRandomDailyResetTimeVarId { "NextBGRandomDailyResetTime" }
 
static PersistentWorldVariable const CharacterDatabaseCleaningFlagsVarId { "PersistentCharacterCleanFlags" }
 
static PersistentWorldVariable const NextGuildDailyResetTimeVarId { "NextGuildDailyResetTime" }
 
static PersistentWorldVariable const NextMonthlyQuestResetTimeVarId { "NextMonthlyQuestResetTime" }
 
static PersistentWorldVariable const NextDailyQuestResetTimeVarId { "NextDailyQuestResetTime" }
 
static PersistentWorldVariable const NextOldCalendarEventDeletionTimeVarId { "NextOldCalendarEventDeletionTime" }
 
static PersistentWorldVariable const NextGuildWeeklyResetTimeVarId { "NextGuildWeeklyResetTime" }
 

Protected Member Functions

void _UpdateGameTime ()
 Update the game time. More...
 
void _UpdateRealmCharCount (PreparedQueryResult resultCharCount)
 
void InitQuestResetTimes ()
 
void CheckScheduledResetTimes ()
 
void InitCurrencyResetTime ()
 
void DailyReset ()
 
void ResetWeeklyQuests ()
 
void ResetMonthlyQuests ()
 
void InitRandomBGResetTime ()
 
void InitCalendarOldEventsDeletionTime ()
 
void InitGuildResetTime ()
 
void ResetRandomBG ()
 
void CalendarDeleteOldEvents ()
 
void ResetGuildCap ()
 
void ResetCurrencyWeekCap ()
 

Private Types

typedef std::unordered_map< uint32, time_t > DisconnectMap
 
typedef std::unordered_map< uint8, AutobroadcastAutobroadcastContainer
 

Private Member Functions

 World ()
 World constructor. More...
 
 ~World ()
 World destructor. More...
 
void AddSession_ (WorldSession *s)
 
void ProcessLinkInstanceSocket (std::pair< std::weak_ptr< WorldSocket >, uint64 > linkInfo)
 
void ProcessQueryCallbacks ()
 
void SendGuidWarning ()
 
void DoGuidWarningRestart ()
 
void DoGuidAlertRestart ()
 
void UpdateWarModeRewardValues ()
 

Private Attributes

uint32 m_ShutdownTimer
 
uint32 m_ShutdownMask
 
uint32 m_CleaningFlags
 
bool m_isClosed
 
IntervalTimer m_timers [WUPDATE_COUNT]
 
time_t mail_timer
 
time_t mail_timer_expires
 
time_t blackmarket_timer
 
SessionMap m_sessions
 
std::unordered_multimap< ObjectGuid, WorldSession * > m_sessionsByBnetGuid
 
DisconnectMap m_disconnects
 
uint32 m_maxActiveSessionCount
 
uint32 m_maxQueuedSessionCount
 
uint32 m_PlayerCount
 
uint32 m_MaxPlayerCount
 
std::string m_newCharString
 
float rate_values [MAX_RATES]
 
uint32 m_int_configs [INT_CONFIG_VALUE_COUNT]
 
uint64 m_int64_configs [INT64_CONFIT_VALUE_COUNT]
 
bool m_bool_configs [BOOL_CONFIG_VALUE_COUNT]
 
float m_float_configs [FLOAT_CONFIG_VALUE_COUNT]
 
std::unordered_map< std::string, int32m_worldVariables
 
uint32 m_playerLimit
 
AccountTypes m_allowedSecurityLevel
 
LocaleConstant m_defaultDbcLocale
 
uint32 m_availableDbcLocaleMask
 
bool m_allowMovement
 
std::vector< std::string > _motd
 
std::string m_dataPath
 
LockedQueue< CliCommandHolder * > cliCmdQueue
 
time_t m_NextDailyQuestReset
 
time_t m_NextWeeklyQuestReset
 
time_t m_NextMonthlyQuestReset
 
time_t m_NextRandomBGReset
 
time_t m_NextCalendarOldEventsDeletionTime
 
time_t m_NextGuildReset
 
time_t m_NextCurrencyReset
 
Queue m_QueuedPlayer
 
LockedQueue< WorldSession * > addSessQueue
 
LockedQueue< std::pair< std::weak_ptr< WorldSocket >, uint64 > > _linkSocketQueue
 
std::string m_DBVersion
 
AutobroadcastContainer m_Autobroadcasts
 
QueryCallbackProcessor _queryProcessor
 
std::string _guidWarningMsg
 
std::string _alertRestartReason
 
std::mutex _guidAlertLock
 
bool _guidWarn
 
bool _guidAlert
 
uint32 _warnDiff
 
time_t _warnShutdownTime
 

Static Private Attributes

static std::atomic< bool > m_stopEvent
 
static uint8 m_ExitCode = SHUTDOWN_EXIT_CODE
 
static float m_MaxVisibleDistanceOnContinents = DEFAULT_VISIBILITY_DISTANCE
 
static float m_MaxVisibleDistanceInInstances = DEFAULT_VISIBILITY_INSTANCE
 
static float m_MaxVisibleDistanceInBG = DEFAULT_VISIBILITY_BGARENAS
 
static float m_MaxVisibleDistanceInArenas = DEFAULT_VISIBILITY_BGARENAS
 
static int32 m_visibility_notify_periodOnContinents = DEFAULT_VISIBILITY_NOTIFY_PERIOD
 
static int32 m_visibility_notify_periodInInstances = DEFAULT_VISIBILITY_NOTIFY_PERIOD
 
static int32 m_visibility_notify_periodInBG = DEFAULT_VISIBILITY_NOTIFY_PERIOD
 
static int32 m_visibility_notify_periodInArenas = DEFAULT_VISIBILITY_NOTIFY_PERIOD
 

Friends

class debug_commandscript
 

Detailed Description

The World.

Definition at line 562 of file World.h.

Member Typedef Documentation

◆ AutobroadcastContainer

typedef std::unordered_map<uint8, Autobroadcast> World::AutobroadcastContainer
private

Definition at line 901 of file World.h.

◆ DisconnectMap

typedef std::unordered_map<uint32, time_t> World::DisconnectMap
private

Definition at line 837 of file World.h.

◆ Queue

typedef std::list<WorldSession*> World::Queue

Definition at line 612 of file World.h.

Constructor & Destructor Documentation

◆ World()

World::World ( )
private

World constructor.

Definition at line 143 of file World.cpp.

+ Here is the call graph for this function:

◆ ~World()

World::~World ( )
private

World destructor.

  • Empty the kicked session set

    Todo:
    free addSessQueue

Definition at line 187 of file World.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _UpdateGameTime()

void World::_UpdateGameTime ( )
protected

Update the game time.

  • update the time
  • if there is a shutdown timer
  • ... and it is overdue, stop the world (set m_stopEvent)
  • ... else decrease it and if necessary display a shutdown countdown to the users

Definition at line 3283 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _UpdateRealmCharCount()

void World::_UpdateRealmCharCount ( PreparedQueryResult  resultCharCount)
protected

Definition at line 3495 of file World.cpp.

+ Here is the call graph for this function:

◆ AddInstanceSocket()

void World::AddInstanceSocket ( std::weak_ptr< WorldSocket sock,
uint64  connectToKey 
)

Definition at line 365 of file World.cpp.

+ Here is the call graph for this function:

◆ AddQueuedPlayer()

void World::AddQueuedPlayer ( WorldSession sess)

Definition at line 495 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddSession()

void World::AddSession ( WorldSession s)

Definition at line 360 of file World.cpp.

+ Here is the call graph for this function:

◆ AddSession_()

void World::AddSession_ ( WorldSession s)
private
  • kick already loaded player with same account (if any) and remove session
  • if player is in loading and want to load again, return

Definition at line 370 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BanAccount() [1/2]

BanReturn World::BanAccount ( BanMode  mode,
std::string const &  nameOrIP,
std::string const &  duration,
std::string const &  reason,
std::string const &  author 
)

Ban an account or ban an IP address, duration will be parsed using TimeStringToSecs if it is positive, otherwise permban.

Definition at line 3100 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BanAccount() [2/2]

BanReturn World::BanAccount ( BanMode  mode,
std::string const &  nameOrIP,
uint32  duration_secs,
std::string const &  reason,
std::string const &  author 
)

Ban an account or ban an IP address, duration is in seconds if positive, otherwise permban.

  • Update the database with ban information
  • Disconnect all affected players (for IP it can be several)

Definition at line 3107 of file World.cpp.

+ Here is the call graph for this function:

◆ BanCharacter()

BanReturn World::BanCharacter ( std::string const &  name,
std::string const &  duration,
std::string const &  reason,
std::string const &  author 
)

Ban an account or ban an IP address, duration will be parsed using TimeStringToSecs if it is positive, otherwise permban.

Pick a player to ban if not online

Definition at line 3222 of file World.cpp.

+ Here is the call graph for this function:

◆ CalendarDeleteOldEvents()

void World::CalendarDeleteOldEvents ( )
protected

Definition at line 3786 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckScheduledResetTimes()

void World::CheckScheduledResetTimes ( )
protected

Definition at line 3631 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DailyReset()

void World::DailyReset ( )
protected

Definition at line 3527 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DecreasePlayerCount()

void World::DecreasePlayerCount ( )
inline

Definition at line 592 of file World.h.

◆ DisableForcedWarModeFactionBalanceState()

void World::DisableForcedWarModeFactionBalanceState ( )

Definition at line 2538 of file World.cpp.

+ Here is the call graph for this function:

◆ DoGuidAlertRestart()

void World::DoGuidAlertRestart ( )
private

Definition at line 317 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoGuidWarningRestart()

void World::DoGuidWarningRestart ( )
private

Definition at line 308 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindPlayerInZone()

Player * World::FindPlayerInZone ( uint32  zone)

Find a player in a specified zone.

  • circle through active sessions and return the first player found in the zone

Definition at line 214 of file World.cpp.

+ Here is the call graph for this function:

◆ FindSession()

WorldSession * World::FindSession ( uint32  id) const

Find a session by its id.

Definition at line 333 of file World.cpp.

+ Here is the caller graph for this function:

◆ ForceGameEventUpdate()

void World::ForceGameEventUpdate ( )

Definition at line 2879 of file World.cpp.

+ Here is the call graph for this function:

◆ GetActiveAndQueuedSessionCount()

uint32 World::GetActiveAndQueuedSessionCount ( ) const
inline

Definition at line 577 of file World.h.

+ Here is the caller graph for this function:

◆ GetActiveSessionCount()

uint32 World::GetActiveSessionCount ( ) const
inline

Definition at line 578 of file World.h.

+ Here is the caller graph for this function:

◆ getAllowMovement()

bool World::getAllowMovement ( ) const
inline
Todo:
Actions on m_allowMovement still to be implemented Is movement allowed?

Definition at line 620 of file World.h.

◆ GetAllSessions()

SessionMap const & World::GetAllSessions ( ) const
inline

Definition at line 576 of file World.h.

◆ GetAvailableDbcLocale()

LocaleConstant World::GetAvailableDbcLocale ( LocaleConstant  locale) const
inline

Definition at line 769 of file World.h.

◆ getBoolConfig()

bool World::getBoolConfig ( WorldBoolConfigs  index) const
inline

Get a server configuration element (see #WorldConfigs)

Definition at line 689 of file World.h.

+ Here is the caller graph for this function:

◆ GetCleaningFlags()

uint32 World::GetCleaningFlags ( ) const
inline

Definition at line 781 of file World.h.

◆ GetConfigMaxSkillValue()

uint16 World::GetConfigMaxSkillValue ( ) const
inline

Get the maximum skill level a player can reach.

Definition at line 645 of file World.h.

◆ GetDataPath()

std::string const & World::GetDataPath ( ) const
inline

Get the path where data (dbc, maps) are stored on disk.

Definition at line 637 of file World.h.

◆ GetDBVersion()

char const * World::GetDBVersion ( ) const
inline

Definition at line 773 of file World.h.

◆ GetDefaultDbcLocale()

LocaleConstant World::GetDefaultDbcLocale ( ) const
inline

Definition at line 634 of file World.h.

+ Here is the caller graph for this function:

◆ GetExitCode()

static uint8 World::GetExitCode ( )
inlinestatic

Definition at line 669 of file World.h.

+ Here is the caller graph for this function:

◆ getFloatConfig()

float World::getFloatConfig ( WorldFloatConfigs  index) const
inline

Get a server configuration element (see #WorldConfigs)

Definition at line 702 of file World.h.

+ Here is the caller graph for this function:

◆ getIntConfig()

uint32 World::getIntConfig ( WorldIntConfigs  index) const
inline

Get a server configuration element (see #WorldConfigs)

Definition at line 715 of file World.h.

+ Here is the caller graph for this function:

◆ GetMaxActiveSessionCount()

uint32 World::GetMaxActiveSessionCount ( ) const
inline

Definition at line 582 of file World.h.

◆ GetMaxPlayerCount()

uint32 World::GetMaxPlayerCount ( ) const
inline

Definition at line 585 of file World.h.

+ Here is the caller graph for this function:

◆ GetMaxQueuedSessionCount()

uint32 World::GetMaxQueuedSessionCount ( ) const
inline

Get the maximum number of parallel sessions on the server since last reboot.

Definition at line 581 of file World.h.

◆ GetMaxVisibleDistanceInArenas()

static float World::GetMaxVisibleDistanceInArenas ( )
inlinestatic

Definition at line 755 of file World.h.

+ Here is the caller graph for this function:

◆ GetMaxVisibleDistanceInBG()

static float World::GetMaxVisibleDistanceInBG ( )
inlinestatic

Definition at line 754 of file World.h.

+ Here is the caller graph for this function:

◆ GetMaxVisibleDistanceInInstances()

static float World::GetMaxVisibleDistanceInInstances ( )
inlinestatic

Definition at line 753 of file World.h.

+ Here is the caller graph for this function:

◆ GetMaxVisibleDistanceOnContinents()

static float World::GetMaxVisibleDistanceOnContinents ( )
inlinestatic

Definition at line 752 of file World.h.

+ Here is the caller graph for this function:

◆ GetMotd()

std::vector< std::string > const & World::GetMotd ( ) const

Get the current Message of the Day.

Definition at line 274 of file World.cpp.

◆ GetNewCharString()

std::string const & World::GetNewCharString ( ) const
inline

Get the string for new characters (first login)

Definition at line 632 of file World.h.

◆ GetNextDailyQuestsResetTime()

time_t World::GetNextDailyQuestsResetTime ( ) const
inline

Next daily quests and random bg reset time.

Definition at line 640 of file World.h.

◆ GetNextRandomBGResetTime()

time_t World::GetNextRandomBGResetTime ( ) const
inline

Definition at line 642 of file World.h.

◆ GetNextWeeklyQuestsResetTime()

time_t World::GetNextWeeklyQuestsResetTime ( ) const
inline

Definition at line 641 of file World.h.

◆ GetPersistentWorldVariable()

int32 World::GetPersistentWorldVariable ( PersistentWorldVariable const &  var) const

Definition at line 3858 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPlayerAmountLimit()

uint32 World::GetPlayerAmountLimit ( ) const
inline

Definition at line 609 of file World.h.

+ Here is the caller graph for this function:

◆ GetPlayerCount()

uint32 World::GetPlayerCount ( ) const
inline

Get number of players.

Definition at line 584 of file World.h.

◆ GetPlayerSecurityLimit()

AccountTypes World::GetPlayerSecurityLimit ( ) const
inline

Security level limitations.

Definition at line 603 of file World.h.

◆ GetQueuedSessionCount()

uint32 World::GetQueuedSessionCount ( ) const
inline

Definition at line 579 of file World.h.

+ Here is the caller graph for this function:

◆ GetQueuePos()

int32 World::GetQueuePos ( WorldSession sess)

Definition at line 484 of file World.cpp.

+ Here is the caller graph for this function:

◆ getRate()

float World::getRate ( Rates  rate) const
inline

Get a server rate (see Rates)

Definition at line 679 of file World.h.

+ Here is the caller graph for this function:

◆ GetShutDownTimeLeft()

uint32 World::GetShutDownTimeLeft ( ) const
inline

Definition at line 665 of file World.h.

◆ GetUInt64Config()

uint64 World::GetUInt64Config ( WorldInt64Configs  index) const
inline

Definition at line 720 of file World.h.

◆ GetVisibilityNotifyPeriodInArenas()

static int32 World::GetVisibilityNotifyPeriodInArenas ( )
inlinestatic

Definition at line 760 of file World.h.

+ Here is the caller graph for this function:

◆ GetVisibilityNotifyPeriodInBG()

static int32 World::GetVisibilityNotifyPeriodInBG ( )
inlinestatic

Definition at line 759 of file World.h.

+ Here is the caller graph for this function:

◆ GetVisibilityNotifyPeriodInInstances()

static int32 World::GetVisibilityNotifyPeriodInInstances ( )
inlinestatic

Definition at line 758 of file World.h.

+ Here is the caller graph for this function:

◆ GetVisibilityNotifyPeriodOnContinents()

static int32 World::GetVisibilityNotifyPeriodOnContinents ( )
inlinestatic

Definition at line 757 of file World.h.

+ Here is the caller graph for this function:

◆ HasRecentlyDisconnected()

bool World::HasRecentlyDisconnected ( WorldSession session)

Definition at line 462 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IncreasePlayerCount()

void World::IncreasePlayerCount ( )
inline

Increase/Decrease number of players.

Definition at line 587 of file World.h.

◆ InitCalendarOldEventsDeletionTime()

void World::InitCalendarOldEventsDeletionTime ( )
protected

Definition at line 3670 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitCurrencyResetTime()

void World::InitCurrencyResetTime ( )
protected

Definition at line 3715 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitGuildResetTime()

void World::InitGuildResetTime ( )
protected

Definition at line 3687 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitQuestResetTimes()

void World::InitQuestResetTimes ( )
protected

Definition at line 3515 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitRandomBGResetTime()

void World::InitRandomBGResetTime ( )
protected

Definition at line 3642 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ instance()

World * World::instance ( )
static

Definition at line 207 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsBattlePetJournalLockAcquired()

bool World::IsBattlePetJournalLockAcquired ( ObjectGuid  battlenetAccountGuid)

Definition at line 3839 of file World.cpp.

+ Here is the call graph for this function:

◆ IsClosed()

bool World::IsClosed ( ) const

Deny clients?

Definition at line 233 of file World.cpp.

◆ IsFFAPvPRealm()

bool World::IsFFAPvPRealm ( ) const

Definition at line 3853 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsGuidAlert()

bool World::IsGuidAlert ( )
inline

Definition at line 791 of file World.h.

◆ IsGuidWarning()

bool World::IsGuidWarning ( )
inline

Definition at line 790 of file World.h.

◆ IsPvPRealm()

bool World::IsPvPRealm ( ) const

Are we on a "Player versus Player" server?

Definition at line 3848 of file World.cpp.

+ Here is the call graph for this function:

◆ IsShuttingDown()

bool World::IsShuttingDown ( ) const
inline

Are we in the middle of a shutdown?

Definition at line 664 of file World.h.

◆ IsStopped()

static bool World::IsStopped ( )
inlinestatic

Definition at line 671 of file World.h.

+ Here is the caller graph for this function:

◆ KickAll()

void World::KickAll ( )

Kick (and save) all players.

Definition at line 3081 of file World.cpp.

◆ KickAllLess()

void World::KickAllLess ( AccountTypes  sec)

Kick (and save) all players with security level less sec

Definition at line 3091 of file World.cpp.

+ Here is the caller graph for this function:

◆ LoadAutobroadcasts()

void World::LoadAutobroadcasts ( )

Definition at line 2543 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadConfigSettings()

void World::LoadConfigSettings ( bool  reload = false)

Initialize config values.

  • Read the player limit and the Message of the day from the config file
  • Read support system setting from the config file
  • Get string for new logins (newly created characters)
  • Send server info on login?
  • Read all rates from the config file
  • Read other configuration items from the config file

    Todo:
    Add MonsterSight (with meaning) in worldserver.conf or put them as define
  • Load the CharDelete related config options
  • Read the "Data" directory from the config file

Definition at line 555 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadDBAllowedSecurityLevel()

void World::LoadDBAllowedSecurityLevel ( )

Definition at line 246 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadDBVersion()

void World::LoadDBVersion ( )

Definition at line 3813 of file World.cpp.

+ Here is the call graph for this function:

◆ LoadPersistentWorldVariables()

void World::LoadPersistentWorldVariables ( )

Definition at line 3876 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessCliCommands()

void World::ProcessCliCommands ( )

Definition at line 3442 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessLinkInstanceSocket()

void World::ProcessLinkInstanceSocket ( std::pair< std::weak_ptr< WorldSocket >, uint64 linkInfo)
private

Definition at line 438 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessQueryCallbacks()

void World::ProcessQueryCallbacks ( )
private

Definition at line 3892 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QueueCliCommand()

void World::QueueCliCommand ( CliCommandHolder commandHolder)
inline

Definition at line 763 of file World.h.

◆ ReloadRBAC()

void World::ReloadRBAC ( )

Definition at line 3897 of file World.cpp.

◆ RemoveBanAccount()

bool World::RemoveBanAccount ( BanMode  mode,
std::string const &  nameOrIP 
)

Remove a ban from an account or IP address.

Definition at line 3193 of file World.cpp.

+ Here is the call graph for this function:

◆ RemoveBanCharacter()

bool World::RemoveBanCharacter ( std::string const &  name)

Remove a ban from a character.

Pick a player to ban if not online

Definition at line 3261 of file World.cpp.

+ Here is the call graph for this function:

◆ RemoveOldCorpses()

void World::RemoveOldCorpses ( )

Definition at line 3906 of file World.cpp.

+ Here is the call graph for this function:

◆ RemoveQueuedPlayer()

bool World::RemoveQueuedPlayer ( WorldSession session)

Definition at line 504 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveSession()

bool World::RemoveSession ( uint32  id)

Remove a given session.

  • Find the session, kick the user, but we can't delete session at this moment to prevent iterator invalidation

Definition at line 344 of file World.cpp.

+ Here is the caller graph for this function:

◆ ResetCurrencyWeekCap()

void World::ResetCurrencyWeekCap ( )
protected

Definition at line 3745 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetEventSeasonalQuests()

void World::ResetEventSeasonalQuests ( uint16  event_id,
time_t  eventStartTime 
)

Definition at line 3757 of file World.cpp.

+ Here is the call graph for this function:

◆ ResetGuildCap()

void World::ResetGuildCap ( )
protected

Definition at line 3795 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetMonthlyQuests()

void World::ResetMonthlyQuests ( )
protected

Definition at line 3607 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetRandomBG()

void World::ResetRandomBG ( )
protected

Definition at line 3771 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetWeeklyQuests()

void World::ResetWeeklyQuests ( )
protected

Definition at line 3568 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendAutoBroadcast()

void World::SendAutoBroadcast ( )

Definition at line 3460 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendGlobalGMMessage()

void World::SendGlobalGMMessage ( WorldPacket const *  packet,
WorldSession self = nullptr,
Optional< Team team = { } 
)

Send a packet to all GMs (except self if mentioned)

Definition at line 2905 of file World.cpp.

+ Here is the call graph for this function:

◆ SendGlobalMessage()

void World::SendGlobalMessage ( WorldPacket const *  packet,
WorldSession self = nullptr,
Optional< Team team = { } 
)

Send a packet to all players (except self if mentioned)

Definition at line 2888 of file World.cpp.

+ Here is the caller graph for this function:

◆ SendGlobalText()

void World::SendGlobalText ( char const *  text,
WorldSession self 
)

DEPRECATED, only for debug purpose. Send a System Message to all players (except self if mentioned)

Definition at line 3033 of file World.cpp.

+ Here is the call graph for this function:

◆ SendGMText()

void World::SendGMText ( uint32  string_id,
  ... 
)

Send a System Message to all GMs (except self if mentioned)

Definition at line 3007 of file World.cpp.

+ Here is the call graph for this function:

◆ SendGuidWarning()

void World::SendGuidWarning ( )
private

Definition at line 325 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendServerMessage()

void World::SendServerMessage ( ServerMessageType  messageID,
std::string_view  stringParam = {},
Player const *  player = nullptr 
)

Send a server message to the user(s)

Definition at line 3383 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendWorldText()

void World::SendWorldText ( uint32  string_id,
  ... 
)

Send a System Message to all players (except self if mentioned)

Definition at line 2988 of file World.cpp.

+ Here is the caller graph for this function:

◆ SendZoneMessage()

bool World::SendZoneMessage ( uint32  zone,
WorldPacket const *  packet,
WorldSession self = nullptr,
Optional< Team team = { } 
)

Send a packet to all players (or players selected team) in the zone (except self if mentioned)

Definition at line 3050 of file World.cpp.

+ Here is the caller graph for this function:

◆ SendZoneText()

void World::SendZoneText ( uint32  zone,
const char *  text,
WorldSession self = nullptr,
Optional< Team team = { } 
)

Send a System Message to all players in the zone (except self if mentioned)

Definition at line 3073 of file World.cpp.

+ Here is the call graph for this function:

◆ SetAllowMovement()

void World::SetAllowMovement ( bool  allow)
inline

Allow/Disallow object movements.

Definition at line 622 of file World.h.

◆ setBoolConfig()

void World::setBoolConfig ( WorldBoolConfigs  index,
bool  value 
)
inline

Set a server configuration element (see #WorldConfigs)

Definition at line 682 of file World.h.

◆ SetCleaningFlags()

void World::SetCleaningFlags ( uint32  flags)
inline

Definition at line 782 of file World.h.

◆ SetClosed()

void World::SetClosed ( bool  val)

Close world.

Definition at line 238 of file World.cpp.

◆ setFloatConfig()

void World::setFloatConfig ( WorldFloatConfigs  index,
float  value 
)
inline

Set a server configuration element (see #WorldConfigs)

Definition at line 695 of file World.h.

◆ SetForcedWarModeFactionBalanceState()

void World::SetForcedWarModeFactionBalanceState ( TeamId  team,
int32  reward = 0 
)

Definition at line 2532 of file World.cpp.

◆ SetInitialWorldSettings()

void World::SetInitialWorldSettings ( )

Initialize the World.

  • Server startup begin
  • Initialize the random number generator
  • Initialize detour memory management
  • Initialize VMapManager function pointers (to untangle game/collision circular deps)
  • Initialize config settings
  • Initialize Allowed Security Level
  • Init highest guids before any table loading to prevent using not initialized guids in some code.
  • Check the existence of the map files for all races' startup areas.
  • Initialize pool manager
  • Initialize game event manager
  • Loading strings. Getting no records means core load has to be canceled because no error message can be output.
  • Update the realm entry in the database with the realm type from the config file
  • Load DB2s
  • Load M2 fly by cameras
  • Load GameTables
  • Initialize static helper structures
  • Load dynamic data tables from the database
  • Handle outdated emails (delete/return)
  • Load and initialize scripts
  • Initialize game time and timers

    Todo:
    Get rid of magic numbers
  • Initialize MapManager
  • Initialize Battlegrounds
  • Initialize outdoor pvp
  • Initialize Battlefield
  • Initialize Warden

Definition at line 1733 of file World.cpp.

+ Here is the call graph for this function:

◆ setIntConfig()

void World::setIntConfig ( WorldIntConfigs  index,
uint32  value 
)
inline

Set a server configuration element (see #WorldConfigs)

Definition at line 708 of file World.h.

◆ SetMotd()

void World::SetMotd ( std::string  motd)

Set a new Message of the Day.

we are using a string copy here to allow modifications in script hooks

Definition at line 265 of file World.cpp.

+ Here is the caller graph for this function:

◆ SetNewCharString()

void World::SetNewCharString ( std::string const &  str)
inline

Set the string for new characters (first login)

Definition at line 630 of file World.h.

+ Here is the caller graph for this function:

◆ SetPersistentWorldVariable()

void World::SetPersistentWorldVariable ( PersistentWorldVariable const &  var,
int32  value 
)

Definition at line 3866 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPlayerAmountLimit()

void World::SetPlayerAmountLimit ( uint32  limit)
inline

Active session server limit.

Definition at line 608 of file World.h.

+ Here is the caller graph for this function:

◆ SetPlayerSecurityLimit()

void World::SetPlayerSecurityLimit ( AccountTypes  sec)

Definition at line 256 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRate()

void World::setRate ( Rates  rate,
float  value 
)
inline

Set a server rate (see Rates)

Definition at line 677 of file World.h.

◆ ShutdownCancel()

uint32 World::ShutdownCancel ( )

Cancel a planned server shutdown.

Definition at line 3362 of file World.cpp.

+ Here is the call graph for this function:

◆ ShutdownMsg()

void World::ShutdownMsg ( bool  show = false,
Player player = nullptr,
const std::string &  reason = std::string() 
)

Display a shutdown message to the user(s)

  • Display a message every 12 hours, hours, 5 minutes, minute, 5 seconds and finally seconds

Definition at line 3336 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ShutdownServ()

void World::ShutdownServ ( uint32  time,
uint32  options,
uint8  exitcode,
const std::string &  reason = std::string() 
)

Shutdown the server.

  • If the shutdown time is 0, evaluate shutdown on next tick (no message)
  • Else set the shutdown timer and warn users

Definition at line 3313 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StopNow()

static void World::StopNow ( uint8  exitcode)
inlinestatic

Definition at line 670 of file World.h.

+ Here is the caller graph for this function:

◆ TriggerGuidAlert()

void World::TriggerGuidAlert ( )

Definition at line 298 of file World.cpp.

+ Here is the call graph for this function:

◆ TriggerGuidWarning()

void World::TriggerGuidWarning ( )

Definition at line 279 of file World.cpp.

+ Here is the call graph for this function:

◆ Update()

void World::Update ( uint32  diff)

Update the World !

  • Update the game time and check for shutdown time
  • Update the different timers
  • Update Who List Storage
  • Handle auctions when the timer has passed

    • Update mails (return old mails with item, or delete them)
    • Handle expired auctions
    • Update blackmarket, refresh auctions if necessary

  • Handle AHBot operations

    Synchronize all scripts with their ids before updating the sScriptReloadMgr

  • Handle file changes

  • Handle session updates when the timer has passed

  • Update uptime table

  • Clean logs table

  • Handle all other objects

    • Update objects when the timer has passed (maps, transport, creatures, ...)
    • Delete all characters which have been deleted X days before
    • Erase corpses once every 20 minutes
    • Process Game events when necessary
    • Ping to keep MySQL connections alive

Definition at line 2572 of file World.cpp.

+ Here is the call graph for this function:

◆ UpdateAreaDependentAuras()

void World::UpdateAreaDependentAuras ( )

Definition at line 3828 of file World.cpp.

◆ UpdateMaxSessionCounters()

void World::UpdateMaxSessionCounters ( )

Get the number of current active sessions.

Definition at line 3807 of file World.cpp.

+ Here is the caller graph for this function:

◆ UpdateRealmCharCount()

void World::UpdateRealmCharCount ( uint32  accountId)

Definition at line 3485 of file World.cpp.

+ Here is the call graph for this function:

◆ UpdateSessions()

void World::UpdateSessions ( uint32  diff)
  • Add new sessions
  • Then send an update signal to remaining ones
  • and remove not active sessions from the list

Definition at line 3400 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateWarModeRewardValues()

void World::UpdateWarModeRewardValues ( )
private

Definition at line 3911 of file World.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ debug_commandscript

friend class debug_commandscript
friend

Definition at line 924 of file World.h.

Member Data Documentation

◆ _alertRestartReason

std::string World::_alertRestartReason
private

Definition at line 912 of file World.h.

◆ _guidAlert

bool World::_guidAlert
private

Definition at line 917 of file World.h.

◆ _guidAlertLock

std::mutex World::_guidAlertLock
private

Definition at line 914 of file World.h.

◆ _guidWarn

bool World::_guidWarn
private

Definition at line 916 of file World.h.

◆ _guidWarningMsg

std::string World::_guidWarningMsg
private

Definition at line 911 of file World.h.

◆ _linkSocketQueue

LockedQueue<std::pair<std::weak_ptr<WorldSocket>, uint64> > World::_linkSocketQueue
private

Definition at line 891 of file World.h.

◆ _motd

std::vector<std::string> World::_motd
private

Definition at line 857 of file World.h.

◆ _queryProcessor

QueryCallbackProcessor World::_queryProcessor
private

Definition at line 909 of file World.h.

◆ _warnDiff

uint32 World::_warnDiff
private

Definition at line 918 of file World.h.

◆ _warnShutdownTime

time_t World::_warnShutdownTime
private

Definition at line 919 of file World.h.

◆ addSessQueue

LockedQueue<WorldSession*> World::addSessQueue
private

Definition at line 888 of file World.h.

◆ blackmarket_timer

time_t World::blackmarket_timer
private

Definition at line 833 of file World.h.

◆ CharacterDatabaseCleaningFlagsVarId

PersistentWorldVariable const World::CharacterDatabaseCleaningFlagsVarId { "PersistentCharacterCleanFlags" }
static

Definition at line 728 of file World.h.

◆ cliCmdQueue

LockedQueue<CliCommandHolder*> World::cliCmdQueue
private

Definition at line 872 of file World.h.

◆ m_allowedSecurityLevel

AccountTypes World::m_allowedSecurityLevel
private

Definition at line 853 of file World.h.

◆ m_allowMovement

bool World::m_allowMovement
private

Definition at line 856 of file World.h.

◆ m_Autobroadcasts

AutobroadcastContainer World::m_Autobroadcasts
private

Definition at line 902 of file World.h.

◆ m_availableDbcLocaleMask

uint32 World::m_availableDbcLocaleMask
private

Definition at line 855 of file World.h.

◆ m_bool_configs

bool World::m_bool_configs[BOOL_CONFIG_VALUE_COUNT]
private

Definition at line 849 of file World.h.

◆ m_CleaningFlags

uint32 World::m_CleaningFlags
private

Definition at line 826 of file World.h.

◆ m_dataPath

std::string World::m_dataPath
private

Definition at line 858 of file World.h.

◆ m_DBVersion

std::string World::m_DBVersion
private

Definition at line 894 of file World.h.

◆ m_defaultDbcLocale

LocaleConstant World::m_defaultDbcLocale
private

Definition at line 854 of file World.h.

◆ m_disconnects

DisconnectMap World::m_disconnects
private

Definition at line 838 of file World.h.

◆ m_ExitCode

TC_GAME_API uint8 World::m_ExitCode = SHUTDOWN_EXIT_CODE
staticprivate

Definition at line 822 of file World.h.

◆ m_float_configs

float World::m_float_configs[FLOAT_CONFIG_VALUE_COUNT]
private

Definition at line 850 of file World.h.

◆ m_int64_configs

uint64 World::m_int64_configs[INT64_CONFIT_VALUE_COUNT]
private

Definition at line 848 of file World.h.

◆ m_int_configs

uint32 World::m_int_configs[INT_CONFIG_VALUE_COUNT]
private

Definition at line 847 of file World.h.

◆ m_isClosed

bool World::m_isClosed
private

Definition at line 828 of file World.h.

◆ m_maxActiveSessionCount

uint32 World::m_maxActiveSessionCount
private

Definition at line 839 of file World.h.

◆ m_MaxPlayerCount

uint32 World::m_MaxPlayerCount
private

Definition at line 842 of file World.h.

◆ m_maxQueuedSessionCount

uint32 World::m_maxQueuedSessionCount
private

Definition at line 840 of file World.h.

◆ m_MaxVisibleDistanceInArenas

TC_GAME_API float World::m_MaxVisibleDistanceInArenas = DEFAULT_VISIBILITY_BGARENAS
staticprivate

Definition at line 864 of file World.h.

◆ m_MaxVisibleDistanceInBG

TC_GAME_API float World::m_MaxVisibleDistanceInBG = DEFAULT_VISIBILITY_BGARENAS
staticprivate

Definition at line 863 of file World.h.

◆ m_MaxVisibleDistanceInInstances

TC_GAME_API float World::m_MaxVisibleDistanceInInstances = DEFAULT_VISIBILITY_INSTANCE
staticprivate

Definition at line 862 of file World.h.

◆ m_MaxVisibleDistanceOnContinents

TC_GAME_API float World::m_MaxVisibleDistanceOnContinents = DEFAULT_VISIBILITY_DISTANCE
staticprivate

Definition at line 861 of file World.h.

◆ m_newCharString

std::string World::m_newCharString
private

Definition at line 844 of file World.h.

◆ m_NextCalendarOldEventsDeletionTime

time_t World::m_NextCalendarOldEventsDeletionTime
private

Definition at line 879 of file World.h.

◆ m_NextCurrencyReset

time_t World::m_NextCurrencyReset
private

Definition at line 881 of file World.h.

◆ m_NextDailyQuestReset

time_t World::m_NextDailyQuestReset
private

Definition at line 875 of file World.h.

◆ m_NextGuildReset

time_t World::m_NextGuildReset
private

Definition at line 880 of file World.h.

◆ m_NextMonthlyQuestReset

time_t World::m_NextMonthlyQuestReset
private

Definition at line 877 of file World.h.

◆ m_NextRandomBGReset

time_t World::m_NextRandomBGReset
private

Definition at line 878 of file World.h.

◆ m_NextWeeklyQuestReset

time_t World::m_NextWeeklyQuestReset
private

Definition at line 876 of file World.h.

◆ m_PlayerCount

uint32 World::m_PlayerCount
private

Definition at line 841 of file World.h.

◆ m_playerLimit

uint32 World::m_playerLimit
private

Definition at line 852 of file World.h.

◆ m_QueuedPlayer

Queue World::m_QueuedPlayer
private

Definition at line 884 of file World.h.

◆ m_sessions

SessionMap World::m_sessions
private

Definition at line 835 of file World.h.

◆ m_sessionsByBnetGuid

std::unordered_multimap<ObjectGuid, WorldSession*> World::m_sessionsByBnetGuid
private

Definition at line 836 of file World.h.

◆ m_ShutdownMask

uint32 World::m_ShutdownMask
private

Definition at line 824 of file World.h.

◆ m_ShutdownTimer

uint32 World::m_ShutdownTimer
private

Definition at line 823 of file World.h.

◆ m_stopEvent

TC_GAME_API std::atomic< bool > World::m_stopEvent
staticprivate

Definition at line 821 of file World.h.

◆ m_timers

IntervalTimer World::m_timers[WUPDATE_COUNT]
private

Definition at line 830 of file World.h.

◆ m_visibility_notify_periodInArenas

TC_GAME_API int32 World::m_visibility_notify_periodInArenas = DEFAULT_VISIBILITY_NOTIFY_PERIOD
staticprivate

Definition at line 869 of file World.h.

◆ m_visibility_notify_periodInBG

TC_GAME_API int32 World::m_visibility_notify_periodInBG = DEFAULT_VISIBILITY_NOTIFY_PERIOD
staticprivate

Definition at line 868 of file World.h.

◆ m_visibility_notify_periodInInstances

TC_GAME_API int32 World::m_visibility_notify_periodInInstances = DEFAULT_VISIBILITY_NOTIFY_PERIOD
staticprivate

Definition at line 867 of file World.h.

◆ m_visibility_notify_periodOnContinents

TC_GAME_API int32 World::m_visibility_notify_periodOnContinents = DEFAULT_VISIBILITY_NOTIFY_PERIOD
staticprivate

Definition at line 866 of file World.h.

◆ m_worldLoopCounter

TC_GAME_API std::atomic< uint32 > World::m_worldLoopCounter
static

Definition at line 567 of file World.h.

◆ m_worldVariables

std::unordered_map<std::string, int32> World::m_worldVariables
private

Definition at line 851 of file World.h.

◆ mail_timer

time_t World::mail_timer
private

Definition at line 831 of file World.h.

◆ mail_timer_expires

time_t World::mail_timer_expires
private

Definition at line 832 of file World.h.

◆ NextBGRandomDailyResetTimeVarId

PersistentWorldVariable const World::NextBGRandomDailyResetTimeVarId { "NextBGRandomDailyResetTime" }
static

Definition at line 727 of file World.h.

◆ NextCurrencyResetTimeVarId

PersistentWorldVariable const World::NextCurrencyResetTimeVarId { "NextCurrencyResetTime" }
static

Definition at line 725 of file World.h.

◆ NextDailyQuestResetTimeVarId

PersistentWorldVariable const World::NextDailyQuestResetTimeVarId { "NextDailyQuestResetTime" }
static

Definition at line 731 of file World.h.

◆ NextGuildDailyResetTimeVarId

PersistentWorldVariable const World::NextGuildDailyResetTimeVarId { "NextGuildDailyResetTime" }
static

Definition at line 729 of file World.h.

◆ NextGuildWeeklyResetTimeVarId

PersistentWorldVariable const World::NextGuildWeeklyResetTimeVarId { "NextGuildWeeklyResetTime" }
static

Definition at line 733 of file World.h.

◆ NextMonthlyQuestResetTimeVarId

PersistentWorldVariable const World::NextMonthlyQuestResetTimeVarId { "NextMonthlyQuestResetTime" }
static

Definition at line 730 of file World.h.

◆ NextOldCalendarEventDeletionTimeVarId

PersistentWorldVariable const World::NextOldCalendarEventDeletionTimeVarId { "NextOldCalendarEventDeletionTime" }
static

Definition at line 732 of file World.h.

◆ NextWeeklyQuestResetTimeVarId

PersistentWorldVariable const World::NextWeeklyQuestResetTimeVarId { "NextWeeklyQuestResetTime" }
static

Definition at line 726 of file World.h.

◆ rate_values

float World::rate_values[MAX_RATES]
private

Definition at line 846 of file World.h.


The documentation for this class was generated from the following files: