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
|
|
|
|
|
{
|
2024-09-18 20:28:51 +08:00
|
|
|
|
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
|
|
|
|
|
2024-09-18 20:28:51 +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()
|
|
|
|
|
{
|
2024-09-18 20:28:51 +08:00
|
|
|
|
return new PacketHeader(0x21, 0x0F, PacketFlags.None);
|
2024-09-16 17:09:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|