예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
        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;
            }
        }
예제 #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;
 }
예제 #5
0
 public CommandNode()
 {
     this.index = Index.Index_Null;
     this.evType = TimeEvent.EventType.Not_Initialized;
     this.obj = null;
 }
예제 #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;
 }