public void Update(SpellListMessage msg) { if (msg == null) { throw new ArgumentNullException("msg"); } SpellsBook.Update(msg); }
private void HandleCharacterCharacteristicsInformations(SpellListMessage message, ConnectedHost source) { this.Spells.Clear(); foreach (SpellItem spell in message.spells) { this.Spells.Add(new SpellData(spell)); } OnUpdated(); }
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; }
public SpellsBook(PlayedCharacter owner, SpellListMessage list) { if (list == null) { throw new ArgumentNullException("list"); } Owner = owner; Update(list); }
public static void SpellListMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { SpellListMessage msg = (SpellListMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } account.Spells.Clear(); foreach (SpellItem spell in msg.spells) { account.Spells.Add(new Spell(spell.spellId, spell.spellLevel, spell.position)); } }
// 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(); }
private void HandleSpellListMessage(IAccount account, SpellListMessage message) { account.Character.Spells = message.Spells; }
public static Task HandleSpellListMessage(Account account, SpellListMessage message) => Task.Run(() => account.Game.Character.Update(message));
public static void HandleSpellListMessage(Bot bot, SpellListMessage message) { bot.Character.Update(message); }
private void SpellListMessageHandler(DofusClient Client, SpellListMessage Message) { Client.Account.Character.Spells = Message.Spells; }