Пример #1
0
        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);
            }
        }
Пример #2
0
        public void AbandonTask(Task Task)
        {
            Task.AssignedGnome = null;

            if (Task.IsTopLevelTask)
            {
                Tasks.Remove(Task);
                Tasks.Add(Task);
            }
        }