/// <summary> /// Initializes a new instance of the <see cref="SpellSet"/> class. /// </summary> public SpellSet(ArenaData ArenaData, SpellSetData SetData) { this.Spells = new List <SpellData> [CsvFiles.Get(Gamefile.Rarities).Datas.Count]; for (int I = 0; I < CsvFiles.Get(Gamefile.Rarities).Datas.Count; I++) { this.Spells[I] = new List <SpellData>(32); } if (SetData != null) { for (int I = 0; I < SetData.SpellsData.Length; I++) { this.AddSpell(SetData.SpellsData[I]); } } else { CsvFiles.Spells.ForEach(SpellData => { if (SpellData.IsUnlockedInArena(ArenaData)) { this.AddSpell(SpellData); } }); } }
/// <summary> /// Initializes a new instance of the <see cref="SpellSet"/> class. /// </summary> public SpellSet(ArenaData ArenaData, SpellSetData SetData) { this.Spells = new List <SpellData> [CSV.Tables.Get(Gamefile.Rarity).Datas.Count]; for (int i = 0; i < CSV.Tables.Get(Gamefile.Rarity).Datas.Count; i++) { this.Spells[i] = new List <SpellData>(32); } if (SetData != null) { for (int i = 0; i < SetData.SpellsData.Length; i++) { this.AddSpell(SetData.SpellsData[i]); } } else { CSV.Tables.Spells.ForEach(SpellData => { if (SpellData.IsUnlockedInArena(ArenaData)) { this.AddSpell(SpellData); } }); } }