Use 0x7FFFFF** for internal packet headers

This commit is contained in:
Oliver Booth 2022-05-19 10:39:34 +01:00
parent 442a496123
commit e2f3128f75
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
7 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ namespace TcpDotNet.Protocol.Packets.ClientBound;
/// <summary> /// <summary>
/// Represents a packet which requests encryption from the client. /// Represents a packet which requests encryption from the client.
/// </summary> /// </summary>
[Packet(0xE2)] [Packet(0x7FFFFFE2)]
internal sealed class EncryptionRequestPacket : Packet internal sealed class EncryptionRequestPacket : Packet
{ {
/// <summary> /// <summary>

View File

@ -5,7 +5,7 @@ namespace TcpDotNet.Protocol.Packets.ClientBound;
/// <summary> /// <summary>
/// Represents a packet which responds to a <see cref="HandshakeRequestPacket" />. /// Represents a packet which responds to a <see cref="HandshakeRequestPacket" />.
/// </summary> /// </summary>
[Packet(0xE1)] [Packet(0x7FFFFFE1)]
internal sealed class HandshakeResponsePacket : Packet internal sealed class HandshakeResponsePacket : Packet
{ {
/// <summary> /// <summary>

View File

@ -1,6 +1,6 @@
namespace TcpDotNet.Protocol.Packets.ClientBound; namespace TcpDotNet.Protocol.Packets.ClientBound;
[Packet(0xF1)] [Packet(0x7FFFFFF1)]
public sealed class PongPacket : Packet public sealed class PongPacket : Packet
{ {
/// <summary> /// <summary>

View File

@ -1,6 +1,6 @@
namespace TcpDotNet.Protocol.Packets.ClientBound; namespace TcpDotNet.Protocol.Packets.ClientBound;
[Packet(0xE4)] [Packet(0x7FFFFFE4)]
internal sealed class SessionExchangePacket : Packet internal sealed class SessionExchangePacket : Packet
{ {
/// <summary> /// <summary>

View File

@ -5,7 +5,7 @@ namespace TcpDotNet.Protocol.Packets.ServerBound;
/// <summary> /// <summary>
/// Represents a packet which responds to a <see cref="EncryptionRequestPacket" />. /// Represents a packet which responds to a <see cref="EncryptionRequestPacket" />.
/// </summary> /// </summary>
[Packet(0xE3)] [Packet(0x7FFFFFE3)]
internal sealed class EncryptionResponsePacket : Packet internal sealed class EncryptionResponsePacket : Packet
{ {
/// <summary> /// <summary>

View File

@ -3,7 +3,7 @@
/// <summary> /// <summary>
/// Represents a packet which requests a handshake with a <see cref="ProtocolListener" />. /// Represents a packet which requests a handshake with a <see cref="ProtocolListener" />.
/// </summary> /// </summary>
[Packet(0xE0)] [Packet(0x7FFFFFE0)]
internal sealed class HandshakeRequestPacket : Packet internal sealed class HandshakeRequestPacket : Packet
{ {
/// <summary> /// <summary>

View File

@ -2,7 +2,7 @@
namespace TcpDotNet.Protocol.Packets.ServerBound; namespace TcpDotNet.Protocol.Packets.ServerBound;
[Packet(0xF0)] [Packet(0x7FFFFFF0)]
public sealed class PingPacket : Packet public sealed class PingPacket : Packet
{ {
/// <summary> /// <summary>