PSO2SERVER/Server/Protocol/Packets/23-FlagPackets/23-0E-Unk230EPacket.cs

45 lines
1003 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.Protocol.Packets
2024-09-18 01:50:29 +08:00
{
public class Unk230EPacket : Packet
{
2024-12-06 19:47:18 +08:00
public struct Unk230EThing
{
public ushort unk1;
public ushort unk2;
public uint unk3;
public ObjectHeader unk4;
}
public List<Unk230EThing> unk = new List<Unk230EThing>();
2024-09-18 01:50:29 +08:00
public Unk230EPacket()
{
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
2024-12-06 19:47:18 +08:00
pkt.WriteMagic((uint)unk.Count, 0xAC40, 0x99);
foreach (var entry in unk)
pkt.WriteStruct(entry);
2024-09-18 01:50:29 +08:00
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x23, 0x0E, PacketFlags.None);
}
#endregion
}
}