Exemplo n.º 1
0
 //insert the action NOW.
 // will interrupt current action. current action will be played after this action inserted.
 public Vignette InsertActionFirst(SamAction action, bool interrupt = true)
 {
     if (interrupt && CurrentAction != null)
     {
         CurrentAction.Interrupt();
     }
     actionList.AddFirst(action);
     RestartCurrentAction();
     return(this);
 }
Exemplo n.º 2
0
 //add an action. to the back of the list.
 public void AddAction(SamAction action)
 {
     actionList.AddLast(action);
 }
Exemplo n.º 3
0
 public Vignette InsertActionLast(SamAction action)
 {
     actionList.AddLast(action);
     return(this);
 }
Exemplo n.º 4
0
 //remove an action.
 //will search the list.
 public void RemoveAction(SamAction action)
 {
     actionList.Remove(action);
 }