Core/EventProcessor: std::chrono-ify CalculateTime

uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset).
Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)
This commit is contained in:
Carbenium
2020-07-25 23:07:29 +02:00
committed by Peter Keresztes Schmidt
parent 1131229ee9
commit 92a02a5c87
28 changed files with 68 additions and 67 deletions

View File

@@ -443,7 +443,7 @@ class CreatureGameObjectScriptRegistrySwapHooks
// Cast a dummy visual spell asynchronously here to signal
// that the AI was hot swapped
creature->m_Events.AddEvent(new AsyncCastHotswapEffectEvent(creature),
creature->m_Events.CalculateTime(0));
creature->m_Events.CalculateTime(0s));
}
// Hook which is called after a gameobject was swapped