aboutsummaryrefslogtreecommitdiff
path: root/src/game/InstanceSaveMgr.h
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-01-03 14:41:07 +0100
committerXTZGZoReX <none@none>2010-01-03 14:41:07 +0100
commita6f7a8264eb02cc99f91a365d7ba51ff94b22a1e (patch)
treeb178dc97c5f770fdc51d1c18a5f320d64c225892 /src/game/InstanceSaveMgr.h
parent073235ef1ba32ec1151812f4c34c72c6a3bbe6f0 (diff)
* Update structure for SMSG_CALENDAR_SEND_CALENDAR and add support for sending raid reset times. Thanks to raczman for helping with the client research.
--HG-- branch : trunk
Diffstat (limited to 'src/game/InstanceSaveMgr.h')
-rw-r--r--src/game/InstanceSaveMgr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/InstanceSaveMgr.h b/src/game/InstanceSaveMgr.h
index 7f8a2a74e60..d185550764f 100644
--- a/src/game/InstanceSaveMgr.h
+++ b/src/game/InstanceSaveMgr.h
@@ -115,6 +115,8 @@ class InstanceSave
bool m_canReset;
};
+typedef UNORDERED_MAP<uint32 /*PAIR32(map,difficulty)*/,time_t /*resetTime*/> ResetTimeByMapDifficultyMap;
+
class TRINITY_DLL_DECL InstanceSaveManager : public Trinity::Singleton<InstanceSaveManager, Trinity::ClassLevelLockable<InstanceSaveManager, ACE_Thread_Mutex> >
{
friend class InstanceSave;
@@ -140,7 +142,6 @@ class TRINITY_DLL_DECL InstanceSaveManager : public Trinity::Singleton<InstanceS
bool operator == (const InstResetEvent& e) { return e.instanceId == instanceId; }
};
typedef std::multimap<time_t /*resetTime*/, InstResetEvent> ResetTimeQueue;
- typedef UNORDERED_MAP<uint32 /*PAIR32(map,difficulty)*/,time_t /*resetTime*/> ResetTimeByMapDifficultyMap;
void CleanupInstances();
void PackInstances();
@@ -155,6 +156,10 @@ class TRINITY_DLL_DECL InstanceSaveManager : public Trinity::Singleton<InstanceS
{
m_resetTimeByMapDifficulty[MAKE_PAIR32(mapid,d)] = t;
}
+ ResetTimeByMapDifficultyMap const& GetResetTimeMap() const
+ {
+ return m_resetTimeByMapDifficulty;
+ }
void ScheduleReset(bool add, time_t time, InstResetEvent event);
void Update();