Esempio n. 1
0
        public static List <DefenseSquadTask> GetDefenseTasks(uint type)
        {
            List <DefenseSquadTask> tasks = new List <DefenseSquadTask>();

            foreach (Base b in Tyr.Bot.BaseManager.Bases)
            {
                DefenseSquadTask task = new DefenseSquadTask(b, type);
                Tyr.Bot.TaskManager.Add(task);
                tasks.Add(task);
            }
            return(tasks);
        }
Esempio n. 2
0
        public static void Enable(bool excludeMainAndNatural, uint type)
        {
            if (Tasks.Count == 0)
            {
                foreach (Base b in Tyr.Bot.BaseManager.Bases)
                {
                    DefenseSquadTask task = new DefenseSquadTask(b, type);
                    Tasks.Add(task);
                    Tyr.Bot.TaskManager.Add(task);
                }
            }

            Enable(Tasks, excludeMainAndNatural, excludeMainAndNatural);
        }