Esempio n. 1
0
        public void AddEvent(BasicEvent Event, ulong e_time, bool set_addtime = true)
        {
            if (set_addtime)
            {
                Event.m_addTime = m_time;
            }

            Event.m_execTime = e_time;
            m_events.Add(e_time, Event);
        }
Esempio n. 2
0
        public void ModifyEventTime(BasicEvent Event, ulong newTime)
        {
            foreach (var pair in m_events)
            {
                if (pair.Value != Event)
                {
                    continue;
                }

                Event.m_execTime = newTime;
                m_events.Remove(pair);
                m_events.Add(newTime, Event);
                break;
            }
        }
Esempio n. 3
0
 public void AddEventAtOffset(BasicEvent Event, TimeSpan offset)
 {
     AddEvent(Event, CalculateTime((ulong)offset.TotalMilliseconds));
 }