PSO2SERVER/Server/Packets/PSOPackets/23-FlagPackets/23-06-AccountFlagsPacket.cs

39 lines
984 B
C#
Raw Normal View History

2024-09-18 01:50:29 +08:00
using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Packets.PSOPackets
{
public class AccountFlagsPacket : Packet
{
2024-11-25 23:33:41 +08:00
// Account flags (0x400 bytes)
public List<byte> Flags { get; set; }
// Account parameters (0x100 bytes)
public List<uint> Params { get; set; }
2024-09-18 01:50:29 +08:00
public AccountFlagsPacket()
{
2024-11-25 23:33:41 +08:00
Flags = new List<byte>(new byte[0x400]);
Params = new List<uint>(new uint[0x100]);
2024-09-18 01:50:29 +08:00
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
2024-11-25 23:33:41 +08:00
pkt.Write(new byte[0x400]);
pkt.Write(new byte[0x400]);
2024-09-18 01:50:29 +08:00
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x23, 0x06, PacketFlags.None);
}
#endregion
}
}