6#ifndef SF_INSTANCESAVEMGR_H
7#define SF_INSTANCESAVEMGR_H
178 void ScheduleReset(
bool add, time_t time, InstResetEvent event);
183 bool canReset,
bool load =
false);
200 void _ResetSave(InstanceSaveHashMap::iterator& itr);
210#define sInstanceSaveMgr Skyfire::Singleton<InstanceSaveManager, Skyfire::Mutex>::instance()
UNORDERED_MAP< uint32, time_t > ResetTimeByMapDifficultyMap
uint32 MAKE_PAIR32(uint16 l, uint16 h)
void AddPlayer(Player *player)
DifficultyID GetDifficulty() const
DifficultyID m_difficulty
InstanceTemplate const * GetTemplate()
bool RemovePlayer(Player *player)
uint8 GetPlayerCount() const
bool RemoveGroup(Group *group)
uint8 GetGroupCount() const
MapEntry const * GetMapEntry()
void SetCanReset(bool canReset)
time_t GetResetTimeForDB()
void SetResetTime(time_t resetTime)
uint32 GetInstanceId() const
std::list< Group * > GroupListType
void AddGroup(Group *group)
PlayerListType m_playerList
friend class InstanceSaveManager
std::list< Player * > PlayerListType
InstanceSave(uint16 MapId, uint32 InstanceId, DifficultyID difficulty, time_t resetTime, bool canReset)
GroupListType m_groupList
time_t GetResetTime() const
void SetToDelete(bool toDelete)
InstanceSave * GetInstanceSave(uint32 InstanceId)
std::multimap< time_t, InstResetEvent > ResetTimeQueue
UNORDERED_MAP< uint32, InstanceSave * > InstanceSaveHashMap
static void DeleteInstanceFromDB(uint32 instanceid)
void SetResetTimeFor(uint32 mapid, DifficultyID d, time_t t)
void _ResetInstance(uint32 mapid, uint32 instanceId)
InstanceSaveHashMap m_instanceSaveById
uint32 GetNumInstanceSaves()
static uint16 ResetTimeDelay[]
uint32 GetNumBoundGroupsTotal()
uint32 GetNumBoundPlayersTotal()
ResetTimeByMapDifficultyMap const & GetResetTimeMap() const
ResetTimeByMapDifficultyMap m_resetTimeByMapDifficulty
friend class InstanceSave
void RemoveInstanceSave(uint32 InstanceId)
void ScheduleReset(bool add, time_t time, InstResetEvent event)
void _ResetOrWarnAll(uint32 mapid, DifficultyID difficulty, bool warn, time_t resetTime)
InstanceSave * AddInstanceSave(uint32 mapId, uint32 instanceId, DifficultyID difficulty, time_t resetTime, bool canReset, bool load=false)
ResetTimeQueue m_resetTimeQueue
void _ResetSave(InstanceSaveHashMap::iterator &itr)
time_t GetResetTimeFor(uint32 mapid, DifficultyID d) const
bool operator==(const InstResetEvent &e) const
InstResetEvent(uint8 t, uint32 _mapid, DifficultyID d, uint16 _instanceid)