コード例 #1
0
        public Spell GetSummonSpell(string id)
        {
            if (!SummonSpells.ContainsKey(id))
            {
                throw new GameDataException("Could not find summon spell with id " + id);
            }

            return(SummonSpells[id]);
        }
コード例 #2
0
 public IEnumerable <Spell> GetSummonSpells()
 {
     return(SummonSpells.Select(x => x.Value).OrderBy(x => x.Order));
 }