Push latest changes.

This commit is contained in:
Ray Koopa 2018-12-26 01:38:21 +01:00
parent e9da2e440f
commit dd8b1a4be7
2 changed files with 7 additions and 7 deletions

View File

@ -40,19 +40,19 @@ namespace Syroot.Worms.OnlineWorms.Server
// ---- METHODS (PRIVATE) --------------------------------------------------------------------------------------
private Packet HandleConnect(ConnectQueryPacket connectPacket) => new ConnectReplyPacket
private Packet HandleConnect(ConnectQueryPacket inPacket) => new ConnectReplyPacket
{
Unknown = _server.Name,
Unknown2 = _server.RegionName,
Version = _server.Version
};
private Packet HandleLogin(LoginQueryPacket loginPacket)
private Packet HandleLogin(LoginQueryPacket inPacket)
{
LoginPlayerInfo[] playerInfos = new LoginPlayerInfo[loginPacket.Logins.Length];
for (int i = 0; i < loginPacket.Logins.Length; i++)
LoginPlayerInfo[] playerInfos = new LoginPlayerInfo[inPacket.Logins.Length];
for (int i = 0; i < inPacket.Logins.Length; i++)
{
LoginCredentials credentials = loginPacket.Logins[i];
LoginCredentials credentials = inPacket.Logins[i];
playerInfos[i] = new LoginPlayerInfo
{
ID = credentials.ID,
@ -69,7 +69,7 @@ namespace Syroot.Worms.OnlineWorms.Server
}
#if DEBUG
private Packet HandleRaw(RawQueryPacket rawPacket) => null;
private Packet HandleRaw(RawQueryPacket inPacket) => null;
#endif
}
}

View File

@ -46,7 +46,7 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
{
Success = 0,
IDAlreadyInUse = 3,
UnqualifiedID = 4,
UnverifiedID = 4,
IncorrectID = 6,
IncorrectPassword = 7,
DuplicateIDs = 9,