namespace QCRPG.Framework;

public class SnoopLogPacketData : PacketData, IDeepCopyable<SnoopLogPacketData>
{
	protected SnoopLogReader.PacketRecord packetRecord;

	public SnoopLogReader.PacketRecord PacketRecord
	{
		get
		{
			return packetRecord;
		}
		set
		{
			packetRecord = value;
		}
	}

	public SnoopLogPacketData(byte[] bytes)
		: base(bytes)
	{
		packetRecord = new SnoopLogReader.PacketRecord();
	}

	public SnoopLogPacketData(byte[] bytes, SnoopLogReader.PacketRecord packetRecord)
		: base(bytes)
	{
		this.packetRecord = packetRecord;
	}

	public new virtual SnoopLogPacketData DeepCopy()
	{
		SnoopLogPacketData snoopLogPacketData = new SnoopLogPacketData(bytes);
		snoopLogPacketData.packetRecord = packetRecord.DeepCopy();
		return snoopLogPacketData;
	}
}
