PSO2SERVER/Server/Packets/PSOPackets/21-PalettePacket/21-0F-NewDefaultPAsPacket.cs

36 lines
824 B
C#
Raw Normal View History

2024-09-16 17:09:36 +08:00
using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Packets.PSOPackets
{
public class NewDefaultPAsPacket : Packet
2024-09-16 17:09:36 +08:00
{
2024-09-22 00:08:44 +08:00
public uint[] Default { get; set; } = new uint[0x1A0]; // 默认大小为0x1A0
2024-09-16 17:09:36 +08:00
public NewDefaultPAsPacket()
2024-09-16 17:09:36 +08:00
{
}
#region implemented abstract members of Packet
public override byte[] Build()
{
2024-09-22 00:08:44 +08:00
var writer = new PacketWriter();
foreach (var value in Default)
{
writer.Write(value);
}
return writer.ToArray();
2024-09-16 17:09:36 +08:00
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x21, 0x0F, PacketFlags.None);
2024-09-16 17:09:36 +08:00
}
#endregion
}
}