Exemple #1
0
 public static void InsertTaskToBeginning(UnitTask task)
 {
     if (task == null)
     {
         return;
     }
     if (DoesTaskExist(task))
     {
         return;
     }
     task.UpdateTask();
     Tasks.Insert(0, task);
 }
Exemple #2
0
 public static void AddTaskToGlobalTaskList(UnitTask task)
 {
     if (task == null)
     {
         return;
     }
     if (DoesTaskExist(task))
     {
         return;
     }
     task.UpdateTask();
     Tasks.Add(task);
 }
Exemple #3
0
 /// <summary>
 /// Adds a task to the end of the Workers task list
 /// </summary>
 /// <param name="theTask">Task to be Added</param>
 public void AddTask(UnitTask theTask)
 {
     theTask.UpdateTask();
     _localTaskList.Add(theTask);
 }