Пример #1
0
        private void Reset()
        {
            if (BattleRegion == null)
            {
                return;
            }

            IEnumerable <BaseCreature> list = BattleRegion.GetEnumeratedMobiles().OfType <BaseCreature>();

            foreach (BaseCreature bc in list.Where(b => b.Alive && !b.Controlled && !b.Summoned && b.GetMaster() == null))
            {
                bc.Kill();
            }

            foreach (KeyValuePair <int, List <BaseCreature> > kvp in MyrmidexTeam)
            {
                ColUtility.Free(kvp.Value);
            }

            foreach (KeyValuePair <int, List <BaseCreature> > kvp in TribeTeam)
            {
                ColUtility.Free(kvp.Value);
            }

            MyrmidexTeam.Clear();
            TribeTeam.Clear();
        }