Esempio n. 1
0
        public void RegisterSchedule(float[] times, ScheduleEntry.ScheduleHandler timerCallback,
                                     ScheduleEntry.CompleteHandler completeCallback, object param = null)
        {
            ScheduleEntry schedule = new ScheduleEntry(times, timerCallback, completeCallback, param);

            this._schedules.Add(schedule);
        }
Esempio n. 2
0
        public uint Register(float[] times, ScheduleEntry.ScheduleHandler timerCallback,
                             ScheduleEntry.CompleteHandler completeCallback, object param = null)
        {
            ScheduleEntry entry = new ScheduleEntry(times, timerCallback, completeCallback, param);

            return(this.Register(entry));
        }
Esempio n. 3
0
        public void UnregisterSchedule(ScheduleEntry.ScheduleHandler callback)
        {
            int count = this._schedules.Count;

            for (int i = 0; i < count; i++)
            {
                ScheduleEntry scheduleEntry = this._schedules[i];
                if (scheduleEntry.scheduleCallback == callback)
                {
                    this._schedulesToRemove.Add(scheduleEntry);
                }
            }
        }
Esempio n. 4
0
        public void Unregister(ScheduleEntry.ScheduleHandler callback)
        {
            int count = this._objs.Count;

            for (int i = 0; i < count; i++)
            {
                ScheduleEntry scheduleEntry = this._objs[i];
                if (scheduleEntry.scheduleCallback == callback)
                {
                    this.Unregister(scheduleEntry);
                }
            }
        }