mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-01-15 00:08:02 +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) --------------------------------------------------------------------------------------
|
// ---- METHODS (PRIVATE) --------------------------------------------------------------------------------------
|
||||||
|
|
||||||
private Packet HandleConnect(ConnectQueryPacket connectPacket) => new ConnectReplyPacket
|
private Packet HandleConnect(ConnectQueryPacket inPacket) => new ConnectReplyPacket
|
||||||
{
|
{
|
||||||
Unknown = _server.Name,
|
Unknown = _server.Name,
|
||||||
Unknown2 = _server.RegionName,
|
Unknown2 = _server.RegionName,
|
||||||
Version = _server.Version
|
Version = _server.Version
|
||||||
};
|
};
|
||||||
|
|
||||||
private Packet HandleLogin(LoginQueryPacket loginPacket)
|
private Packet HandleLogin(LoginQueryPacket inPacket)
|
||||||
{
|
{
|
||||||
LoginPlayerInfo[] playerInfos = new LoginPlayerInfo[loginPacket.Logins.Length];
|
LoginPlayerInfo[] playerInfos = new LoginPlayerInfo[inPacket.Logins.Length];
|
||||||
for (int i = 0; i < loginPacket.Logins.Length; i++)
|
for (int i = 0; i < inPacket.Logins.Length; i++)
|
||||||
{
|
{
|
||||||
LoginCredentials credentials = loginPacket.Logins[i];
|
LoginCredentials credentials = inPacket.Logins[i];
|
||||||
playerInfos[i] = new LoginPlayerInfo
|
playerInfos[i] = new LoginPlayerInfo
|
||||||
{
|
{
|
||||||
ID = credentials.ID,
|
ID = credentials.ID,
|
||||||
@ -69,7 +69,7 @@ namespace Syroot.Worms.OnlineWorms.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
private Packet HandleRaw(RawQueryPacket rawPacket) => null;
|
private Packet HandleRaw(RawQueryPacket inPacket) => null;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -46,7 +46,7 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
|
|||||||
{
|
{
|
||||||
Success = 0,
|
Success = 0,
|
||||||
IDAlreadyInUse = 3,
|
IDAlreadyInUse = 3,
|
||||||
UnqualifiedID = 4,
|
UnverifiedID = 4,
|
||||||
IncorrectID = 6,
|
IncorrectID = 6,
|
||||||
IncorrectPassword = 7,
|
IncorrectPassword = 7,
|
||||||
DuplicateIDs = 9,
|
DuplicateIDs = 9,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user