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)

(cherry picked from commit 92a02a5c8750913f596d7e3b58bf8439cb770c28)
This commit is contained in:
Carbenium
2022-01-24 12:00:35 +01:00
committed by Shauren
parent 310f996b1d
commit eeffb310de
31 changed files with 72 additions and 71 deletions
+1 -1
View File
@@ -491,7 +491,7 @@ class CreatureGameObjectAreaTriggerScriptRegistrySwapHooks
// 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