public static void add(float time, Command cObj, 
                                    TimeEvent.EventType name = TimeEvent.EventType.Animation,
                                    Index index = Index.Index_Null)
 {
     TimeEvent node = (TimeEvent)Instance.detachReserveHead();
     node.set(Instance.currTime, time, cObj, name, index);
     Instance.addActivePriority(node);
 }
 public static void add(Command addedObj, TimeEvent.EventType type = TimeEvent.EventType.Not_Initialized, Index index = Index.Index_Null)
 {
     CommandNode node = (CommandNode)Instance.baseAdd();
     node.set(addedObj, type, index);
 }
        public static void remove(Command node)
        {
            TimeEvent te = (TimeEvent)Instance.activeHead;

            while (te != null)
            {
                if (te.TimeObject == node)
                {
                    if(te.next != null)
                        te.next.prev = te.prev;
                    if (te.prev != null)
                        te.prev.next = te.next;
                }

                te = (TimeEvent)te.next;
            }
        }
Esempio n. 4
0
 public void set(Command cObj, TimeEvent.EventType type = TimeEvent.EventType.Not_Initialized, Index index = Index.Index_Null)
 {
     this.obj = cObj;
     this.evType = type;
     this.index = index;
 }
Esempio n. 5
0
 public CommandNode()
 {
     this.index = Index.Index_Null;
     this.evType = TimeEvent.EventType.Not_Initialized;
     this.obj = null;
 }
Esempio n. 6
0
 public void set(float totalTime, float deltaTime, Command cObj, TimeEvent.EventType name, Index index = Index.Index_Null)
 {
     this.comEvent = cObj;
     this.trigger = totalTime + deltaTime;
     this.changeInTime = deltaTime;
     this.name = name;
     this.index = index;
     canUpdate = true;
 }