Remove Packet postfixes of packet classes.

This commit is contained in:
Ray Koopa 2019-01-03 21:48:14 +01:00
parent f6b37eb96c
commit 90110979c0
6 changed files with 18 additions and 18 deletions

View File

@ -3,10 +3,10 @@
namespace Syroot.Worms.OnlineWorms.Server.Net namespace Syroot.Worms.OnlineWorms.Server.Net
{ {
/// <summary> /// <summary>
/// Represents the client request for a <see cref="ConnectReplyPacket"/>. /// Represents the client request for a <see cref="ConnectReply"/>.
/// </summary> /// </summary>
[Packet(0x800E)] [Packet(0x800E)]
internal class ConnectQueryPacket : Packet internal class ConnectQuery : Packet
{ {
// ---- METHODS (INTERNAL) ------------------------------------------------------------------------------------- // ---- METHODS (INTERNAL) -------------------------------------------------------------------------------------

View File

@ -4,10 +4,10 @@ using Syroot.BinaryData;
namespace Syroot.Worms.OnlineWorms.Server.Net namespace Syroot.Worms.OnlineWorms.Server.Net
{ {
/// <summary> /// <summary>
/// Represents the server response to a <see cref="ConnectQueryPacket"/>. /// Represents the server response to a <see cref="ConnectQuery"/>.
/// </summary> /// </summary>
[Packet(0x800F)] [Packet(0x800F)]
internal class ConnectReplyPacket : Packet internal class ConnectReply : Packet
{ {
// ---- PROPERTIES --------------------------------------------------------------------------------------------- // ---- PROPERTIES ---------------------------------------------------------------------------------------------

View File

@ -5,10 +5,10 @@ using Syroot.BinaryData;
namespace Syroot.Worms.OnlineWorms.Server.Net namespace Syroot.Worms.OnlineWorms.Server.Net
{ {
/// <summary> /// <summary>
/// Represents the client request for a <see cref="LoginReplyPacket"/>. /// Represents the client request for a <see cref="LoginReply"/>.
/// </summary> /// </summary>
[Packet(0x8000)] [Packet(0x8000)]
internal class LoginQueryPacket : Packet internal class LoginQuery : Packet
{ {
// ---- PROPERTIES --------------------------------------------------------------------------------------------- // ---- PROPERTIES ---------------------------------------------------------------------------------------------

View File

@ -4,10 +4,10 @@ using Syroot.BinaryData;
namespace Syroot.Worms.OnlineWorms.Server.Net namespace Syroot.Worms.OnlineWorms.Server.Net
{ {
/// <summary> /// <summary>
/// Represents the server response to a <see cref="LoginQueryPacket"/>. /// Represents the server response to a <see cref="LoginQuery"/>.
/// </summary> /// </summary>
[Packet(0x8001)] [Packet(0x8001)]
internal class LoginReplyPacket : Packet internal class LoginReply : Packet
{ {
// ---- PROPERTIES --------------------------------------------------------------------------------------------- // ---- PROPERTIES ---------------------------------------------------------------------------------------------
@ -42,6 +42,12 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
} }
} }
internal class LoginPlayerInfo
{
internal string ID { get; set; }
internal ushort Rank { get; set; }
}
internal enum LoginResult : byte internal enum LoginResult : byte
{ {
Success = 0, Success = 0,
@ -55,10 +61,4 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
PublicAccessBanned = 12, PublicAccessBanned = 12,
TemporarilyBannedID = 13 TemporarilyBannedID = 13
} }
internal class LoginPlayerInfo
{
internal string ID { get; set; }
internal ushort Rank { get; set; }
}
} }

View File

@ -4,11 +4,11 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
/// <summary> /// <summary>
/// Represents a special fallback packet which simply stores any ID and the raw client packet data. /// Represents a special fallback packet which simply stores any ID and the raw client packet data.
/// </summary> /// </summary>
internal class RawQueryPacket : Packet internal class RawQuery : Packet
{ {
// ---- CONSTRUCTORS & DESTRUCTOR ------------------------------------------------------------------------------ // ---- CONSTRUCTORS & DESTRUCTOR ------------------------------------------------------------------------------
internal RawQueryPacket(ushort id) internal RawQuery(ushort id)
{ {
ID = id; ID = id;
} }

View File

@ -3,11 +3,11 @@
namespace Syroot.Worms.OnlineWorms.Server.Net namespace Syroot.Worms.OnlineWorms.Server.Net
{ {
/// <summary> /// <summary>
/// Represents an additional server response to a <see cref="LoginQueryPacket"/>, providing informational server /// Represents an additional server response to a <see cref="LoginQuery"/>, providing informational server
/// screen text. /// screen text.
/// </summary> /// </summary>
[Packet(0x8033)] [Packet(0x8033)]
internal class ServerInfoReplyPacket : Packet internal class ServerInfoReply : Packet
{ {
// ---- PROPERTIES --------------------------------------------------------------------------------------------- // ---- PROPERTIES ---------------------------------------------------------------------------------------------