public static void HandleShortcutBarSwap(ShortcutBarSwapRequestMessage message, WorldClient client)
        {
            switch ((ShortcutBarEnum)message.barType)
            {
            case ShortcutBarEnum.SPELL_SHORTCUT_BAR:
                SpellShortcutRecord.SwapSortcut(client.Character.Id, message.firstSlot, message.secondSlot);
                break;

            case ShortcutBarEnum.GENERAL_SHORTCUT_BAR:
                GeneralShortcutRecord.SwapSortcut(client.Character.Id, message.firstSlot, message.secondSlot);
                break;
            }
            client.Character.RefreshShortcuts();
        }
Ejemplo n.º 2
0
 public static void HandleShortcutBarSwap(ShortcutBarSwapRequestMessage message, WorldClient client)
 {
     switch ((ShortcutBarEnum)message.barType)
     {
         case ShortcutBarEnum.SPELL_SHORTCUT_BAR:
             SpellShortcutRecord.SwapSortcut(client.Character.Id, message.firstSlot, message.secondSlot);
             break;
         case ShortcutBarEnum.GENERAL_SHORTCUT_BAR:
             GeneralShortcutRecord.SwapSortcut(client.Character.Id, message.firstSlot, message.secondSlot);
             break;
     }
     client.Character.RefreshShortcuts();
 }
Ejemplo n.º 3
0
        public static void HandleShortcutBarSwap(ShortcutBarSwapRequestMessage message, WorldClient client)
        {
            var bar = client.Character.GetShortcutBar((ShortcutBarEnum)message.barType);

            bar.Swap(message.firstSlot, message.secondSlot);
        }
Ejemplo n.º 4
0
 public static void HandleShortcutBarSwapRequestMessage(WorldClient client, ShortcutBarSwapRequestMessage message)
 {
     client.Character.Shortcuts.SwapShortcuts((ShortcutBarEnum)message.barType, message.firstSlot, message.secondSlot);
 }