public static void OnAddTaskbarItem(WorldClient client, INetPacketStream packet) { var addTaskbarItemPacket = new AddTaskbarItemPacket(packet); var addTaskbarItemEventArgs = new AddTaskbarItemEventArgs(addTaskbarItemPacket.SlotLevelIndex, addTaskbarItemPacket.SlotIndex, addTaskbarItemPacket.Type, addTaskbarItemPacket.ObjectId, addTaskbarItemPacket.ObjectType, addTaskbarItemPacket.ObjectIndex, addTaskbarItemPacket.UserId, addTaskbarItemPacket.ObjectData, addTaskbarItemPacket.Text); client.Player.NotifySystem <TaskbarSystem>(addTaskbarItemEventArgs); }
public void OnAddTaskbarItem(IWorldClient client, AddTaskbarItemPacket packet) { var shortcutToAdd = new Shortcut(packet.SlotIndex, packet.Type, packet.ObjectId, packet.ObjectType, packet.ObjectIndex, packet.UserId, packet.ObjectData, packet.Text); _taskbarSystem.AddItem(client.Player, shortcutToAdd, packet.SlotLevelIndex); }