RemoveMemberPacket

This commit is contained in:
Longfeng Qin 2024-09-23 22:40:56 +08:00
parent 61c58a5114
commit 28f427463d

View File

@ -8,9 +8,15 @@ namespace PSO2SERVER.Packets.PSOPackets
{
public class RemoveMemberPacket : Packet
{
public ObjectHeader removed_member;
public ObjectHeader receiver;
public RemoveMemberPacket()
public RemoveMemberPacket(uint removed_member_id, uint receiver_id)
{
removed_member.ID = removed_member_id;
removed_member.ObjectType = ObjectType.Player;
receiver.ID = receiver_id;
receiver.ObjectType = ObjectType.Player;
}
#region implemented abstract members of Packet
@ -18,6 +24,8 @@ namespace PSO2SERVER.Packets.PSOPackets
public override byte[] Build()
{
var pkt = new PacketWriter();
pkt.WriteStruct(removed_member);
pkt.WriteStruct(receiver);
return pkt.ToArray();
}