890
static std::atomic< bool > m_stopEvent
Definition: World.h:794
std::deque< PreparedQueryResultFuture > m_realmCharCallbacks
Definition: World.h:880
void SetAllowMovement(bool allow)
Allow/Disallow object movements.
Definition: World.h:604
void setBoolConfig(WorldBoolConfigs index, bool value)
Set a server configuration element (see #WorldConfigs)
Definition: World.h:674
static int32 m_visibility_notify_periodOnContinents
Definition: World.h:841
std::map< ObjectGuid, CharacterInfo > CharacterInfoContainer
Definition: World.h:875
time_t m_NextMonthlyQuestReset
Definition: World.h:851
void SetCleaningFlags(uint32 flags)
Definition: World.h:766
CommandFinished * m_commandFinished
Definition: World.h:516
WorldStatesMap m_worldstates
Definition: World.h:827
char * m_command
Definition: World.h:513
uint32 m_CleaningFlags
Definition: World.h:799
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
void DecreasePlayerCount()
Definition: World.h:574
time_t m_NextDailyQuestReset
Definition: World.h:849
std::string Name
Definition: World.h:534
std::list< WorldSession * > Queue
Definition: World.h:594
uint32 m_updateTimeCount
Definition: World.h:809
uint32 GetActiveAndQueuedSessionCount() const
Definition: World.h:559
CharacterInfoContainer _characterInfoStore
Definition: World.h:876
uint8 Sex
Definition: World.h:538
bool m_isClosed
Definition: World.h:801
AutobroadcastsMap m_Autobroadcasts
Definition: World.h:870
static float GetMaxVisibleDistanceOnContinents()
Definition: World.h:729
void QueueCliCommand(CliCommandHolder *commandHolder)
Definition: World.h:738
TC_GAME_API Realm realm
Definition: World.cpp:3485
Definition: SharedDefines.h:101
The World.
Definition: World.h:544
uint32 GetUpdateTime() const
Update time.
Definition: World.h:628
std::string const & GetNewCharString() const
Get the string for new characters (first login)
Definition: World.h:614
Rates
Server rates.
Definition: World.h:381
bool getAllowMovement() const
Definition: World.h:602
SessionMap m_sessions
Definition: World.h:812
uint32 GetMaxActiveSessionCount() const
Definition: World.h:564
WorldBoolConfigs
Configuration elements.
Definition: World.h:98
time_t m_NextGuildReset
Definition: World.h:853
time_t GetNextDailyQuestsResetTime() const
Next daily quests and random bg reset time.
Definition: World.h:632
AccountTypes GetPlayerSecurityLimit() const
Security level limitations.
Definition: World.h:585
uint32 m_PlayerCount
Definition: World.h:817
AccountTypes m_allowedSecurityLevel
Definition: World.h:829
time_t m_gameTime
Definition: World.h:804
arena_t NULL
Definition: jemalloc_internal.h:624
static bool IsStopped()
Definition: World.h:663
uint32 m_maxActiveSessionCount
Definition: World.h:815
uint32 m_availableDbcLocaleMask
Definition: World.h:831
BanMode
Ban function modes.
Definition: SharedDefines.h:4533
static uint8 m_ExitCode
Definition: World.h:795
WorldStates
Definition: World.h:493
static float GetMaxVisibleDistanceInInstances()
Definition: World.h:730
float getFloatConfig(WorldFloatConfigs index) const
Get a server configuration element (see #WorldConfigs)
Definition: World.h:694
uint32 GetShutDownTimeLeft() const
Definition: World.h:657
bool IsDeleted
Definition: World.h:540
static float GetMaxVisibleDistanceInBGArenas()
Definition: World.h:731
void setIntConfig(WorldIntConfigs index, uint32 value)
Set a server configuration element (see #WorldConfigs)
Definition: World.h:700
static std::atomic< uint32 > m_worldLoopCounter
Definition: World.h:549
Storage class for commands issued for delayed execution.
Definition: World.h:507
time_t GetNextRandomBGResetTime() const
Definition: World.h:634
std::string m_DBVersion
Definition: World.h:867
LockedQueue< WorldSession * > addSessQueue
Definition: World.h:861
T max(const T &x, const T &y)
Definition: g3dmath.h:320
BanReturn
Ban function return codes.
Definition: SharedDefines.h:4541
LocaleConstant GetDefaultDbcLocale() const
Definition: World.h:616
WorldTimers
Timers for different object refresh rates.
Definition: World.h:79
std::map< uint32, uint64 > WorldStatesMap
Definition: World.h:826
CliCommandHolder(void *callbackArg, const char *command, Print *zprint, CommandFinished *commandFinished)
Definition: World.h:518
time_t mail_timer
Definition: World.h:806
Queue m_QueuedPlayer
Definition: World.h:857
void Print(void *, const char *)
Definition: World.h:509
time_t const & GetStartTime() const
When server started?
Definition: World.h:622
float getRate(Rates rate) const
Get a server rate (see Rates)
Definition: World.h:671
Print * m_print
Definition: World.h:514
uint8 Level
Definition: World.h:539
void SetPlayerAmountLimit(uint32 limit)
Active session server limit.
Definition: World.h:590
static float m_MaxVisibleDistanceOnContinents
Definition: World.h:837
~CliCommandHolder()
Definition: World.h:523
uint8 Race
Definition: World.h:537
time_t m_startTime
Definition: World.h:803
static uint8 GetExitCode()
Definition: World.h:661
static int32 GetVisibilityNotifyPeriodInInstances()
Definition: World.h:734
bool HasCharacterInfo(ObjectGuid const &guid)
Definition: World.h:760
uint32 GetPlayerCount() const
Get number of players.
Definition: World.h:566
ServerMessageType
Definition: World.h:48
LocaleConstant
Definition: Common.h:115
static int32 m_visibility_notify_periodInInstances
Definition: World.h:842
void * m_callbackArg
Definition: World.h:512
std::map< uint8, std::string > AutobroadcastsMap
Definition: World.h:869
ShutdownMask
Definition: World.h:65
static int32 GetVisibilityNotifyPeriodOnContinents()
Definition: World.h:733
Definition: WorldSocket.h:70
std::unordered_map< uint32, time_t > DisconnectMap
Definition: World.h:813
uint16 GetConfigMaxSkillValue() const
Get the maximum skill level a player can reach.
Definition: World.h:637
std::string m_dataPath
Definition: World.h:834
int32_t int32
Definition: Define.h:146
uint32 GetCleaningFlags() const
Definition: World.h:765
bool IsFFAPvPRealm() const
Definition: World.h:718
bool IsPvPRealm() const
Are we on a "Player versus Player" server?
Definition: World.h:717
uint32_t uint32
Definition: Define.h:150
AccountTypes
Definition: Common.h:106
uint32 m_ShutdownMask
Definition: World.h:797
uint64_t uint64
Definition: Define.h:149
uint32 AccountId
Definition: World.h:535
uint16_t uint16
Definition: Define.h:151
uint32 m_MaxPlayerCount
Definition: World.h:818
std::string m_newCharString
Definition: World.h:820
void SetRecordDiffInterval(int32 t)
Definition: World.h:629
LocaleConstant GetAvailableDbcLocale(LocaleConstant locale) const
Definition: World.h:744
DisconnectMap m_disconnects
Definition: World.h:814
static float m_MaxVisibleDistanceInBGArenas
Definition: World.h:839
uint32 GetMaxPlayerCount() const
Definition: World.h:567
static int32 m_visibility_notify_periodInBGArenas
Definition: World.h:843
uint32 m_maxQueuedSessionCount
Definition: World.h:816
AutobroadcastsWeightMap m_AutobroadcastsWeights
Definition: World.h:873
WorldIntConfigs
Definition: World.h:207
time_t mail_timer_expires
Definition: World.h:807
uint32 GetPlayerAmountLimit() const
Definition: World.h:591
time_t m_NextRandomBGReset
Definition: World.h:852
time_t const & GetGameTime() const
What time is it?
Definition: World.h:624
void setFloatConfig(WorldFloatConfigs index, float value)
Set a server configuration element (see #WorldConfigs)
Definition: World.h:687
LockedQueue< std::pair< std::weak_ptr< WorldSocket >, uint64 > > _linkSocketQueue
Definition: World.h:864
void commandFinished(void *, bool)
Definition: CliRunnable.cpp:111
uint32 m_updateTimeSum
Definition: World.h:808
time_t m_NextCurrencyReset
Definition: World.h:854
uint8_t uint8
Definition: g3dmath.h:164
char const * GetDBVersion() const
Definition: World.h:748
void CommandFinished(void *, bool success)
Definition: World.h:510
static int32 GetVisibilityNotifyPeriodInBGArenas()
Definition: World.h:735
void SetNewCharString(std::string const &str)
Set the string for new characters (first login)
Definition: World.h:612
RealmZone
Definition: World.h:451
uint32 m_currentTime
Definition: World.h:810
LockedQueue< CliCommandHolder * > cliCmdQueue
Definition: World.h:846
LocaleConstant m_defaultDbcLocale
Definition: World.h:830
bool m_allowMovement
Definition: World.h:832
WorldFloatConfigs
Definition: World.h:184
uint32 m_ShutdownTimer
Definition: World.h:796
uint32 GetQueuedSessionCount() const
Definition: World.h:561
#define TC_GAME_API
Definition: Define.h:134
void setRate(Rates rate, float value)
Set a server rate (see Rates)
Definition: World.h:669
TC_GAME_API uint32 GetVirtualRealmAddress()
Definition: World.cpp:3487
uint8_t uint8
Definition: Define.h:152
uint8 Class
Definition: World.h:536
CliCommandHolder & operator=(CliCommandHolder const &right)=delete
const FieldDescriptor value
Definition: descriptor.h:1522
Player session in the World.
Definition: WorldSession.h:882
Definition: ObjectGuid.h:189
std::vector< std::string > _motd
Definition: World.h:833
uint8 flags
Definition: DisableMgr.cpp:44
uint32_t uint32
Definition: g3dmath.h:168
void IncreasePlayerCount()
Increase/Decrease number of players.
Definition: World.h:569
uint32 m_playerLimit
Definition: World.h:828
static float m_MaxVisibleDistanceInInstances
Definition: World.h:838
uint32 GetUptime() const
Uptime (in secs)
Definition: World.h:626
std::unordered_map< uint32, WorldSession * > SessionMap
Definition: World.h:530
bool IsShuttingDown() const
Are we in the middle of a shutdown?
Definition: World.h:656
time_t GetNextWeeklyQuestsResetTime() const
Definition: World.h:633
Definition: WorldPacket.h:26
const SessionMap & GetAllSessions() const
Definition: World.h:558
void DeleteCharacterInfo(ObjectGuid const &guid)
Definition: World.h:759
std::map< uint8, uint8 > AutobroadcastsWeightMap
Definition: World.h:872
bool getBoolConfig(WorldBoolConfigs index) const
Get a server configuration element (see #WorldConfigs)
Definition: World.h:681
Definition: ScriptSystem.h:62
uint32 getIntConfig(WorldIntConfigs index) const
Get a server configuration element (see #WorldConfigs)
Definition: World.h:707
std::string const & GetDataPath() const
Get the path where data (dbc, maps) are stored on disk.
Definition: World.h:619
uint32 GetActiveSessionCount() const
Definition: World.h:560
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
uint32 GetMaxQueuedSessionCount() const
Get the maximum number of parallel sessions on the server since last reboot.
Definition: World.h:563
static void StopNow(uint8 exitcode)
Definition: World.h:662
ShutdownExitCode
Definition: World.h:71
Definition: SharedDefines.h:95
time_t m_NextWeeklyQuestReset
Definition: World.h:850