mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-01-13 15:27:59 +03:00
Push latest changes.
This commit is contained in:
parent
e9da2e440f
commit
dd8b1a4be7
@ -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
|
||||
}
|
||||
}
|
@ -46,7 +46,7 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
|
||||
{
|
||||
Success = 0,
|
||||
IDAlreadyInUse = 3,
|
||||
UnqualifiedID = 4,
|
||||
UnverifiedID = 4,
|
||||
IncorrectID = 6,
|
||||
IncorrectPassword = 7,
|
||||
DuplicateIDs = 9,
|
||||
|
Loading…
x
Reference in New Issue
Block a user