public List<LegionHero> GetHeroes(LegionDatabase Database)
        {
            this.Process();

            List<LegionHero> Builders = new List<LegionHero>();

            if (HeroName != null)
            {
                for (int i = 0; i < HeroName.Count; ++i)
                {
                    // Create hero
                    LegionHero Hero = new LegionHero();

                    // Set details
                    Hero.HeroName = HeroName[i];
                    Hero.DotaHeroOverride = DotaHeroOverride[i];
                    Hero.LegionUnitPrefix = LegionUnitPrefix[i];
                    Hero.BaseSpawnAbility = BaseSpawnAbility[i];
                    Hero.SellUnitAbility = SellUnitAbility[i];

                    // Add unit to list
                    Builders.Add(Hero);
                }
            }

            return Builders;
        }
Beispiel #2
0
        public List <LegionHero> GetHeroes(LegionDatabase Database)
        {
            this.Process();

            List <LegionHero> Builders = new List <LegionHero>();

            if (HeroName != null)
            {
                for (int i = 0; i < HeroName.Count; ++i)
                {
                    // Create hero
                    LegionHero Hero = new LegionHero();

                    // Set details
                    Hero.HeroName         = HeroName[i];
                    Hero.DotaHeroOverride = DotaHeroOverride[i];
                    Hero.LegionUnitPrefix = LegionUnitPrefix[i];
                    Hero.BaseSpawnAbility = BaseSpawnAbility[i];
                    Hero.SellUnitAbility  = SellUnitAbility[i];

                    // Add unit to list
                    Builders.Add(Hero);
                }
            }

            return(Builders);
        }