//
// ScPacket.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.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Character;
///
/// Information about character's weapons, armor, resistance.
///
/// The class of the character minus one.
/// The information about character's main weapon.
/// Whether the character is an archer.
/// The information about character's secondary weapon.
/// The information about character's armor.
/// The character's resistance
[PacketHeader("sc", PacketSource.Server)]
[GenerateSerializer(true)]
public record ScPacket
(
[PacketIndex(0)]
byte ClassMinusOne,
[PacketIndex(1, InnerSeparator = ' ')]
ScWeaponSubPacket MainWeaponSubPacket,
[PacketIndex(2)]
byte IsArcher,
[PacketIndex(3, InnerSeparator = ' ')]
ScWeaponSubPacket SecondaryWeaponSubPacket,
[PacketIndex(4)]
ScArmorSubPacket ArmorSubPacket,
[PacketIndex(5)]
ResistanceSubPacket ResistanceSubPacket
) : IPacket;