EventMap: Remove GetNextEventTime and GetTimer methods
Port From (https://github.com/TrinityCore/TrinityCore/commit/3499f518b52552a411e2b1cbdc3d922e64347f02)
This commit is contained in:
@@ -42,15 +42,6 @@ namespace Framework.Dynamic
|
||||
_time += time;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns>Current timer in ms value.</returns>
|
||||
uint GetTimer()
|
||||
{
|
||||
return _time;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -277,32 +268,6 @@ namespace Framework.Dynamic
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns closest occurrence of specified event.
|
||||
/// </summary>
|
||||
/// <param name="eventId">Wanted event id.</param>
|
||||
/// <returns>Time of found event.</returns>
|
||||
public uint GetNextEventTime(uint eventId)
|
||||
{
|
||||
if (Empty())
|
||||
return 0;
|
||||
|
||||
foreach (var pair in _eventMap.KeyValueList)
|
||||
if (eventId == (pair.Value & 0x0000FFFF))
|
||||
return pair.Key;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns>Time of next event.</returns>
|
||||
uint GetNextEventTime()
|
||||
{
|
||||
return Empty() ? 0 : _eventMap[0][0];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns time in milliseconds until next event.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user