PSO2SERVER/Server/Packets/PSOPackets/NoPayloadPacket.cs

34 lines
706 B
C#
Raw Normal View History

2024-09-10 01:13:20 +08:00
using PSO2SERVER.Models;
2024-09-10 00:31:40 +08:00
2024-09-10 01:13:20 +08:00
namespace PSO2SERVER.Packets.PSOPackets
2024-09-10 00:31:40 +08:00
{
public class NoPayloadPacket : Packet
{
private readonly byte _subtype;
private readonly byte _type;
public NoPayloadPacket(byte type, byte subtype)
{
_type = type;
_subtype = subtype;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
return new byte[0];
}
public override PacketHeader GetHeader()
{
return new PacketHeader
{
Type = _type,
Subtype = _subtype
};
}
#endregion
}
}