PSO2SERVER/Server/Protocol/Packets/04-ObjectRelatedPacket/04-06-DespawnObjectPacket.cs

37 lines
949 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.Security.Cryptography;
2024-09-16 17:09:36 +08:00
using System.Text;
namespace PSO2SERVER.Protocol.Packets
2024-09-16 17:09:36 +08:00
{
public class DespawnObjectPacket : Packet
{
private readonly PSOObject _player;
private readonly PSOObject _item;
public DespawnObjectPacket(PSOObject player, PSOObject item)
2024-09-16 17:09:36 +08:00
{
_player = player;
_item = item;
2024-09-16 17:09:36 +08:00
}
#region implemented abstract members of Packet
public override byte[] Build()
{
PacketWriter writer = new PacketWriter();
writer.WriteStruct(_player.Header);
writer.WriteStruct(_item.Header);
return writer.ToArray();
2024-09-16 17:09:36 +08:00
}
public override PacketHeader GetHeader()
{
2024-12-06 21:49:29 +08:00
return new PacketHeader(0x04, 0x06, PacketFlags.OBJECT_RELATED);
2024-09-16 17:09:36 +08:00
}
#endregion
}
}