mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Utilities: Move EventMap into its own source file.
* Move implementation details to .cpp.
(cherry picked from commit 11bfead40b)
Conflicts:
src/server/game/Battlegrounds/Battleground.h
src/server/shared/Utilities/Util.cpp
This commit is contained in:
@@ -560,12 +560,3 @@ std::string ByteArrayToHexStr(uint8 const* bytes, uint32 arrayLen, bool reverse
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
uint32 EventMap::GetTimeUntilEvent(uint32 eventId) const
|
||||
{
|
||||
for (EventStore::const_iterator itr = _eventMap.begin(); itr != _eventMap.end(); ++itr)
|
||||
if (eventId == (itr->second & 0x0000FFFF))
|
||||
return itr->first - _time;
|
||||
|
||||
return std::numeric_limits<uint32>::max();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user