Пример #1
0
        public void Update(SpellListMessage msg)
        {
            if (msg == null) throw new ArgumentNullException("msg");
            Spells.Clear();
            foreach (var spell in msg.spells.Select(entry => new Spell(entry)))
            {
                Spells.Add(spell);
            }

            SpellPrevisualization = msg.spellPrevisualization;
        }
Пример #2
0
 public void Update(SpellListMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     SpellsBook.Update(msg);
 }
Пример #3
0
        // Initializes full SpellsBook
        public void Update(SpellListMessage msg)
        {
            if (msg == null) throw new ArgumentNullException("msg");

            m_spells.Clear();
            foreach (SpellItem spell in msg.spells)
                m_spells.Add(new Spell(spell));

            SpellPrevisualization = msg.spellPrevisualization;

            //FullDump();
        }
Пример #4
0
 public SpellsBook(PlayedCharacter owner, SpellListMessage list)
     : this(owner)
 {
     if (list == null) throw new ArgumentNullException("list");
     Update(list);
 }
Пример #5
0
 public static void HandleSpellListMessage(Bot bot, SpellListMessage message)
 {
     bot.Character.Update(message);
 }
Пример #6
0
 public void Update(SpellListMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     Spells = new ObservableCollection<Spell>(msg.spells.Select(entry => new Spell(entry)));
     SpellPrevisualization = msg.spellPrevisualization;
 }