private Scheduler.Entry add_entry(Node node, DSchedulerFunc func, float interval) { Scheduler.Entry entry = new Scheduler.Entry { m_node = node, m_func = func, m_interval = interval }; if (!this.m_nodes.Contains(node)) { this.m_nodes.Add(node); } if (node.m_scheduler_entries == null) { node.m_scheduler_entries = new List <Scheduler.Entry>(); } node.m_scheduler_entries.Add(entry); return(entry); }
private void schedule_internal(Node target, DSchedulerFunc func, float interval, int priority) { Scheduler.Entry entry = this.add_entry(target, func, interval); this.m_groups[3 + priority].Add(entry); }