mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
EventMap: Remove GetNextEventTime and GetTimer methods (PR #25092)
(cherry picked from commit 6ab9922171)
This commit is contained in:
committed by
Shauren
parent
330e7100cb
commit
3499f518b5
@@ -146,18 +146,6 @@ void EventMap::CancelEventGroup(uint32 group)
|
||||
}
|
||||
}
|
||||
|
||||
uint32 EventMap::GetNextEventTime(uint32 eventId) const
|
||||
{
|
||||
if (Empty())
|
||||
return 0;
|
||||
|
||||
for (std::pair<uint32 const, uint32> const& itr : _eventMap)
|
||||
if (eventId == (itr.second & 0x0000FFFF))
|
||||
return itr.first;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32 EventMap::GetTimeUntilEvent(uint32 eventId) const
|
||||
{
|
||||
for (std::pair<uint32 const, uint32> const& itr : _eventMap)
|
||||
|
||||
@@ -56,15 +56,6 @@ public:
|
||||
_time += time;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name GetTimer
|
||||
* @return Current timer value in ms.
|
||||
*/
|
||||
uint32 GetTimer() const
|
||||
{
|
||||
return _time;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name GetPhaseMask
|
||||
* @return Active phases as mask.
|
||||
@@ -205,23 +196,6 @@ public:
|
||||
*/
|
||||
void CancelEventGroup(uint32 group);
|
||||
|
||||
/**
|
||||
* @name GetNextEventTime
|
||||
* @brief Returns closest occurrence of specified event.
|
||||
* @param eventId Wanted event id.
|
||||
* @return Time of found event.
|
||||
*/
|
||||
uint32 GetNextEventTime(uint32 eventId) const;
|
||||
|
||||
/**
|
||||
* @name GetNextEventTime
|
||||
* @return Time of next event.
|
||||
*/
|
||||
uint32 GetNextEventTime() const
|
||||
{
|
||||
return Empty() ? 0 : _eventMap.begin()->first;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name IsInPhase
|
||||
* @brief Returns whether event map is in specified phase or not.
|
||||
|
||||
Reference in New Issue
Block a user