public CreatureTask AddSubTask(CreatureTask subTask) { subTask.Parent = this; SubTasks.Enqueue(subTask); return(subTask); }
internal void RemoveTask(CreatureTask task) { if (task != null) { if (AvailableTasks.Contains(task)) { AvailableTasks.Remove(task); } task.Destroy(); } }
public CreatureTask AddTask(CreatureTask task) { AvailableTasks.Add(task); return(task); }
public void Load(CreatureTask task) { _task = task; }