//
// EquipPacket.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.Packets.Server.Weapons;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Inventory;
///
/// Information about the player's equipped items.
///
/// The main weapon upgrade rare.
/// The armor upgrade rare.
/// The packet with equipment.
[PacketHeader("equip", PacketSource.Server)]
[GenerateSerializer(true)]
public record EquipPacket
(
[PacketIndex(0)]
UpgradeRareSubPacket WeaponUpgradeRareSubPacket,
[PacketIndex(1)]
UpgradeRareSubPacket ArmorUpgradeRareSubPacket,
[PacketListIndex(2, ListSeparator = ' ', InnerSeparator = '.')]
IReadOnlyList EquipSubPacket
) : IPacket;