PSO2SERVER/Server/Protocol/Packets/23-FlagPackets/23-07-CharacterFlagsPacket.cs
2024-11-27 18:05:53 +08:00

45 lines
1.0 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 List<byte> Flags { get; set; }
/// <summary>
/// Character parameters.
/// </summary>
public List<uint> Params { get; set; }
public CharacterFlagsPacket()
{
Flags = new List<byte>(new byte[0xC00]);
Params = new List<uint>(new uint[0x100]);
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
pkt.Write(new byte[0xC00]);
pkt.Write(new byte[0x400]);
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x23, 0x07, PacketFlags.None);
}
#endregion
}
}