PSO2SERVER/Server/Protocol/Packets/23-FlagPackets/23-07-CharacterFlagsPacket.cs
2024-12-10 21:54:32 +08:00

49 lines
1.2 KiB
C#

using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
{
public class CharacterFlagsPacket : Packet
{
/// <summary>
/// Character flags.
/// </summary>
public FixedList<byte> Flags { get; set; } = new FixedList<byte>(0xC00, 0);
/// <summary>
/// Character parameters.
/// </summary>
public FixedList<uint> Params { get; set; } = new FixedList<uint>(0x100, 0);
public CharacterFlagsPacket()
{
}
public CharacterFlagsPacket(FixedList<byte> Flags, FixedList<uint> Params)
{
this.Flags = Flags;
this.Params = Params;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
pkt.WriteList(Flags);
pkt.WriteList(Params);
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x23, 0x07, PacketFlags.None);
}
#endregion
}
}