public static void HandleShortcutBarRefreshMessage(Bot bot, ShortcutBarRefreshMessage message) { if (message.barType == (int)bot.Character.GeneralShortcuts.BarType) { bot.Character.GeneralShortcuts.Update(message); } else { bot.Character.SpellShortcuts.Update(message); } }
public override void Update(ShortcutBarRefreshMessage message) { if (message == null) { throw new ArgumentNullException("message"); } if ((ShortcutBarEnum)message.barType != BarType) { return; } var shortcut = Get(message.shortcut.slot); if (shortcut != null) { shortcut.Update(message.shortcut); } else if (message.shortcut is ShortcutSpell) { Add(message.shortcut as ShortcutSpell); } }
public abstract void Update(ShortcutBarRefreshMessage message);