Example #1
0
 public void StopGroupingActions()
 {
     if (queuedActions.Count > 0)
     {
         if (!grouping)
         {
             Debug.Print("Warning, Action System was asked to STOP grouping actions while it was already STOPPED");
         }
         else
         {
             groupCount++;
             grouping = false;
             actionTree.addActionGroup(currentGroupType, queuedActions);
             currentGroupType = ActionNode.NodeType.NONE;
             queuedActions.Clear();
             faultyStopCalled = false;
         }
     }
     else
     {
         faultyStopCalled = true;
         Debug.Print("Warning, Action System was asked to STOP grouping actions with no actions in group");
     }
 }
Example #2
0
 public void StartGroupingActions(ActionNode.NodeType p_nodeType)
 {
     if (grouping)
     {
         Debug.Print("Warning, Action System was asked to START grouping actions while it was already grouping actions");
     }
     else
     {
         currentGroupType = p_nodeType;
     }
     grouping = true;
 }