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:
Naios
2015-07-22 02:02:51 +02:00
parent 1741bfc64e
commit 09d34e0a9b
7 changed files with 411 additions and 351 deletions

View File

@@ -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();
}