Example #1
0
    private List <SpellData> GetSpellByType(SpellData.SpellType type)
    {
        List <SpellData> spellsToReturn = new List <SpellData>();

        foreach (SpellData spell in spells)
        {
            if (spell.EnumSpellType == type)
            {
                spellsToReturn.Add(spell);
            }
        }

        return(spellsToReturn);
    }
Example #2
0
    public void DisplaySpells(SpellData.SpellType type)
    {
        DisplayOtherList();

        DisplayListOfSpell(GetSpellByType(type));
    }