示例#1
0
		public virtual void EndCurrentTasks ()
		{
			foreach (Intent intent in logic.Values) {
				intent.Reset ();
			}
			ClearAllProcesses ();
			curIntent = null;

		}
示例#2
0
		public virtual void IssueCommands ()
		{
			if (commands.Count > 0) {
				string currentCommand = commands [0];
				string[] commandStrings = currentCommand.Split (new string[] {"|"}, System.StringSplitOptions.RemoveEmptyEntries);
				string commandString = commandStrings [0];
				string objectString = null;
				object parsedInput = null;
				if (commandStrings.Length > 1) {
					objectString = commandStrings [1];			
					parsedInput = ParseStringToObject (objectString);
				}
				State state = TickLogic (commandString, parsedInput);
				if (state != State.Running && state != State.Idle) {	
					commands.RemoveAt (0);							
				}
			} else {
				curIntent = null;
			}
		}