public List<LegionAbility> GetAbilities(LegionDatabase Database) { // Process abilities data this.Process(); List<LegionAbility> Abilities = new List<LegionAbility>(); if (AbilityID != null) { for (int i = 0; i < AbilityID.Count; ++i) { // Build ability data LegionAbility Ability = new LegionAbility(); Ability.AbilityID = AbilityID[i]; Ability.AbilityFile = AbilityFile[i]; Ability.AbilityValues = AbilityValues[i]; Ability.AbilityUnitAI = AbilityUnitAI[i]; Ability.AbilityTexture = AbilityTexture[i]; // Add ability Abilities.Add(Ability); } } return Abilities; }
public List <LegionAbility> GetAbilities(LegionDatabase Database) { // Process abilities data this.Process(); List <LegionAbility> Abilities = new List <LegionAbility>(); if (AbilityID != null) { for (int i = 0; i < AbilityID.Count; ++i) { // Build ability data LegionAbility Ability = new LegionAbility(); Ability.AbilityID = AbilityID[i]; Ability.AbilityFile = AbilityFile[i]; Ability.AbilityValues = AbilityValues[i]; Ability.AbilityUnitAI = AbilityUnitAI[i]; Ability.AbilityTexture = AbilityTexture[i]; // Add ability Abilities.Add(Ability); } } return(Abilities); }