TrinityCore
WorldStateMgr Class Reference

#include <WorldStateMgr.h>

Public Member Functions

void LoadFromDB ()
 
WorldStateTemplate const * GetWorldStateTemplate (int32 worldStateId) const
 
int32 GetValue (int32 worldStateId, Map const *map) const
 
void SetValue (int32 worldStateId, int32 value, bool hidden, Map *map)
 
void SaveValueInDb (int32 worldStateId, int32 value)
 
void SetValueAndSaveInDb (int32 worldStateId, int32 value, bool hidden, Map *map)
 
WorldStateValueContainer GetInitialWorldStatesForMap (Map const *map) const
 
void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &initWorldStates, Map const *map, uint32 playerAreaId) const
 

Static Public Member Functions

static WorldStateMgrinstance ()
 

Detailed Description

Definition at line 31 of file WorldStateMgr.h.

Member Function Documentation

◆ FillInitialWorldStates()

void WorldStateMgr::FillInitialWorldStates ( WorldPackets::WorldState::InitWorldStates initWorldStates,
Map const *  map,
uint32  playerAreaId 
) const

Definition at line 259 of file WorldStateMgr.cpp.

+ Here is the call graph for this function:

◆ GetInitialWorldStatesForMap()

WorldStateValueContainer WorldStateMgr::GetInitialWorldStatesForMap ( Map const *  map) const

Definition at line 247 of file WorldStateMgr.cpp.

+ Here is the call graph for this function:

◆ GetValue()

int32 WorldStateMgr::GetValue ( int32  worldStateId,
Map const *  map 
) const

Definition at line 183 of file WorldStateMgr.cpp.

+ Here is the call graph for this function:

◆ GetWorldStateTemplate()

WorldStateTemplate const * WorldStateMgr::GetWorldStateTemplate ( int32  worldStateId) const

Definition at line 178 of file WorldStateMgr.cpp.

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

◆ instance()

WorldStateMgr * WorldStateMgr::instance ( )
static

Definition at line 279 of file WorldStateMgr.cpp.

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

◆ LoadFromDB()

void WorldStateMgr::LoadFromDB ( )

Definition at line 39 of file WorldStateMgr.cpp.

+ Here is the call graph for this function:

◆ SaveValueInDb()

void WorldStateMgr::SaveValueInDb ( int32  worldStateId,
int32  value 
)

Definition at line 230 of file WorldStateMgr.cpp.

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

◆ SetValue()

void WorldStateMgr::SetValue ( int32  worldStateId,
int32  value,
bool  hidden,
Map map 
)

Definition at line 200 of file WorldStateMgr.cpp.

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

◆ SetValueAndSaveInDb()

void WorldStateMgr::SetValueAndSaveInDb ( int32  worldStateId,
int32  value,
bool  hidden,
Map map 
)

Definition at line 241 of file WorldStateMgr.cpp.

+ Here is the call graph for this function:

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