![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "InstanceSaveMgr.h"
Public Member Functions | |
| InstanceSave (uint16 MapId, uint32 InstanceId, Difficulty difficulty, time_t resetTime, time_t extendedResetTime) | |
| ~InstanceSave () | |
| uint32 | GetInstanceId () const |
| uint32 | GetMapId () const |
| Difficulty | GetDifficulty () const |
| void | InsertToDB () |
| std::string | GetInstanceData () const |
| void | SetInstanceData (std::string str) |
| uint32 | GetCompletedEncounterMask () const |
| void | SetCompletedEncounterMask (uint32 mask) |
| time_t | GetResetTime () const |
| time_t | GetExtendedResetTime () const |
| time_t | GetResetTimeForDB () |
| void | SetResetTime (time_t resetTime) |
| void | SetExtendedResetTime (time_t extendedResetTime) |
| bool | CanReset () const |
| void | SetCanReset (bool canReset) |
| InstanceTemplate const * | GetTemplate () |
| MapEntry const * | GetMapEntry () |
| void | AddPlayer (ObjectGuid guid) |
| bool | RemovePlayer (ObjectGuid guid, InstanceSaveMgr *ism) |
Private Attributes | |
| GuidList | m_playerList |
| time_t | m_resetTime |
| time_t | m_extendedResetTime |
| uint32 | m_instanceid |
| uint32 | m_mapid |
| Difficulty | m_difficulty |
| bool | m_canReset |
| std::string | m_instanceData |
| uint32 | m_completedEncounterMask |
| std::mutex | _lock |
Friends | |
| class | InstanceSaveMgr |
| InstanceSave::InstanceSave | ( | uint16 | MapId, |
| uint32 | InstanceId, | ||
| Difficulty | difficulty, | ||
| time_t | resetTime, | ||
| time_t | extendedResetTime | ||
| ) |
References sScriptMgr.
| InstanceSave::~InstanceSave | ( | ) |
References ASSERT, m_playerList, and sScriptMgr.
| void InstanceSave::AddPlayer | ( | ObjectGuid | guid | ) |
References _lock, and m_playerList.
Referenced by InstanceSaveMgr::PlayerBindToInstance().
|
inline |
|
inline |
|
inline |
References m_difficulty.
Referenced by InstanceMap::AddPlayerToMap(), GetResetTimeForDB(), WorldSession::HandleCalendarGetCalendar(), instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceUnbindCommand(), InsertToDB(), InstanceMap::PermBindAllPlayers(), InstanceSaveMgr::PlayerBindToInstance(), WorldSession::SendCalendarRaidLockout(), WorldSession::SendCalendarRaidLockoutUpdated(), Player::SendRaidInfo(), and InstanceSaveMgr::UnbindAllFor().
|
inline |
References m_extendedResetTime.
Referenced by WorldSession::HandleCalendarGetCalendar(), instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceUnbindCommand(), WorldSession::SendCalendarRaidLockoutUpdated(), Player::SendInstanceResetWarning(), and Player::SendRaidInfo().
|
inline |
|
inline |
References m_instanceid.
Referenced by Group::_cancelHomebindIfInstance(), InstanceMap::AddPlayerToMap(), InstanceSaveMgr::DeleteInstanceSaveIfNeeded(), WorldSession::HandleCalendarGetCalendar(), instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceUnbindCommand(), WorldSession::HandleSetSavedInstanceExtend(), InstanceSaveMgr::LoadCharacterBinds(), Player::LoadFromDB(), InstanceSaveMgr::PlayerBindToInstance(), InstanceSaveMgr::PlayerGetDestinationInstanceId(), Player::ResetInstances(), Group::ResetInstances(), WorldSession::SendCalendarRaidLockout(), and Player::SendRaidInfo().
| MapEntry const * InstanceSave::GetMapEntry | ( | ) |
|
inline |
References m_mapid.
Referenced by InstanceMap::AddPlayerToMap(), InstanceSaveMgr::DeleteInstanceSaveIfNeeded(), GetResetTimeForDB(), WorldSession::HandleCalendarGetCalendar(), InsertToDB(), InstanceMap::PermBindAllPlayers(), InstanceSaveMgr::PlayerBindToInstance(), Player::ResetInstances(), Group::ResetInstances(), WorldSession::SendCalendarRaidLockout(), WorldSession::SendCalendarRaidLockoutUpdated(), Player::SendRaidInfo(), and InstanceSaveMgr::UnbindAllFor().
|
inline |
References m_resetTime.
Referenced by GetResetTimeForDB(), WorldSession::HandleCalendarGetCalendar(), instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceUnbindCommand(), WorldSession::SendCalendarRaidLockout(), WorldSession::SendCalendarRaidLockoutUpdated(), Player::SendInstanceResetWarning(), and Player::SendRaidInfo().
| time_t InstanceSave::GetResetTimeForDB | ( | ) |
References DUNGEON_DIFFICULTY_HEROIC, GetDifficulty(), GetMapId(), GetResetTime(), MAP_RAID, MapEntry::map_type, and sMapStore.
Referenced by InsertToDB().
| InstanceTemplate const * InstanceSave::GetTemplate | ( | ) |
References m_mapid, and sObjectMgr.
| void InstanceSave::InsertToDB | ( | ) |
References ASSERT, CHAR_INS_INSTANCE_SAVE, CharacterDatabase, GetDifficulty(), InstanceMap::GetInstanceScript(), GetMapId(), GetResetTimeForDB(), Map::IsDungeon(), m_instanceid, SetCompletedEncounterMask(), PreparedStatementBase::SetData(), SetInstanceData(), sMapMgr, sScriptMgr, and Map::ToInstanceMap().
Referenced by InstanceSaveMgr::AddInstanceSave().
| bool InstanceSave::RemovePlayer | ( | ObjectGuid | guid, |
| InstanceSaveMgr * | ism | ||
| ) |
References _lock, InstanceSaveMgr::DeleteInstanceSaveIfNeeded(), and m_playerList.
Referenced by InstanceSaveMgr::LoadCharacterBinds(), InstanceSaveMgr::PlayerBindToInstance(), InstanceSaveMgr::PlayerUnbindInstance(), and InstanceSaveMgr::PlayerUnbindInstanceNotExtended().
|
inline |
References m_canReset.
Referenced by InstanceSaveMgr::PlayerBindToInstance().
|
inline |
References m_completedEncounterMask.
Referenced by InsertToDB(), InstanceSaveMgr::LoadInstanceSaves(), and InstanceScript::SetCompletedEncountersMask().
|
inline |
References m_extendedResetTime.
|
inline |
References m_instanceData.
Referenced by InsertToDB(), InstanceSaveMgr::LoadInstanceSaves(), and InstanceScript::SaveToDB().
|
inline |
References m_resetTime.
Referenced by InstanceSaveMgr::LoadInstanceSaves().
|
friend |
|
private |
Referenced by AddPlayer(), and RemovePlayer().
|
private |
Referenced by CanReset(), and SetCanReset().
|
private |
Referenced by GetCompletedEncounterMask(), and SetCompletedEncounterMask().
|
private |
Referenced by GetDifficulty().
|
private |
Referenced by GetExtendedResetTime(), and SetExtendedResetTime().
|
private |
Referenced by GetInstanceData(), and SetInstanceData().
|
private |
Referenced by GetInstanceId(), and InsertToDB().
|
private |
Referenced by GetMapEntry(), GetMapId(), and GetTemplate().
|
private |
|
private |
Referenced by GetResetTime(), and SetResetTime().