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; }
public void Update(SpellListMessage msg) { if (msg == null) throw new ArgumentNullException("msg"); SpellsBook.Update(msg); }
// 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(); }
public SpellsBook(PlayedCharacter owner, SpellListMessage list) : this(owner) { if (list == null) throw new ArgumentNullException("list"); Update(list); }
public static void HandleSpellListMessage(Bot bot, SpellListMessage message) { bot.Character.Update(message); }
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; }