MageDefenderDeluxe.GameObjects.SpellHandler.GetManaCost C# (CSharp) Method

GetManaCost() public method

public GetManaCost ( Spells spellType ) : int
spellType Spells
return int
        public int GetManaCost(Spells spellType)
        {
            int returnValue = 0;
            foreach (Spell s in spellReference)
            {
                if (s.Type == spellType)
                {
                    returnValue = s.Mana;
                }
            }
            return returnValue;
        }