using PSO2SERVER.Models; using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace PSO2SERVER.Protocol.Packets { public class DespawnObjectPacket : Packet { private readonly PSOObject _player; private readonly PSOObject _item; public DespawnObjectPacket(PSOObject player, PSOObject item) { _player = player; _item = item; } #region implemented abstract members of Packet public override byte[] Build() { PacketWriter writer = new PacketWriter(); _player.Header.WriteObjectHeaderToStream(writer); _item.Header.WriteObjectHeaderToStream(writer); return writer.ToArray(); } public override PacketHeader GetHeader() { return new PacketHeader(0x04, 0x06, PacketFlags.OBJECT_RELATED); } #endregion } }