public void AddTask(Task Task) { if (World.Check(Task.Location)) { Task.IsTopLevelTask = true; var cell = World.CellAt(Task.Location); cell.Task = Task; Tasks.Add(Task); SetUpdateFlag(Task.Location); } }
public void AbandonTask(Task Task) { Task.AssignedGnome = null; if (Task.IsTopLevelTask) { Tasks.Remove(Task); Tasks.Add(Task); } }