91 return _eventMap.empty();
99 void SetPhase(
uint8 phase);
108 if (phase && phase <= 8)
109 _phase |=
uint8(1 << (phase - 1));
119 if (phase && phase <= 8)
120 _phase &=
uint8(~(1 << (phase - 1)));
207 void CancelEvent(
uint32 eventId);
214 void CancelEventGroup(
uint32 group);
224 return phase <= 8 && (!phase || _phase & (1 << (phase - 1)));
240 void ScheduleNextFromSeries(
uint32 eventData);
250 void ScheduleEventSeries(
uint32 eventId,
uint8 group,
uint8 phase, std::initializer_list<Milliseconds> timeSeries);
258 void ScheduleEventSeries(
uint32 eventId, std::initializer_list<Milliseconds> series);
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
std::chrono::steady_clock::time_point TimePoint
time_point shorthand typedefs
void AddPhase(uint8 phase)
std::map< uint32, std::vector< Milliseconds > > EventSeriesStore
EventMap & operator=(EventMap &&other) noexcept=default
EventMap & operator=(EventMap const &other)
EventSeriesStore _timerSeries
bool IsInPhase(uint8 phase) const
uint8 GetPhaseMask() const
std::multimap< TimePoint, uint32 > EventStore
void RemovePhase(uint8 phase)
void Update(Milliseconds time)
EventMap(EventMap &&other) noexcept=default
EventMap(EventMap const &other)