mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-03-04 17:35:22 +03:00
Rename Top20Players packets to Top20.
This commit is contained in:
parent
645db214ca
commit
9b663bb72b
@ -144,10 +144,10 @@ namespace Syroot.Worms.OnlineWorms.Server
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleChannelTop20Players(ChannelTop20PlayersQuery packet)
|
public void HandleChannelTop20(ChannelTop20Query packet)
|
||||||
{
|
{
|
||||||
// Send some simulated player rank infos.
|
// Send some simulated player rank infos.
|
||||||
ChannelTop20PlayersReply reply = new ChannelTop20PlayersReply
|
ChannelTop20Reply reply = new ChannelTop20Reply
|
||||||
{
|
{
|
||||||
UnknownA = "Test",
|
UnknownA = "Test",
|
||||||
Top20 = new List<ChannelTop20Player>(20)
|
Top20 = new List<ChannelTop20Player>(20)
|
||||||
@ -156,8 +156,8 @@ namespace Syroot.Worms.OnlineWorms.Server
|
|||||||
{
|
{
|
||||||
reply.Top20.Add(new ChannelTop20Player
|
reply.Top20.Add(new ChannelTop20Player
|
||||||
{
|
{
|
||||||
Rank = (ushort)((i + 6) / 3),
|
|
||||||
Name = $"GoodPlayer{(char)('A' + i)}",
|
Name = $"GoodPlayer{(char)('A' + i)}",
|
||||||
|
Rank = (ushort)((i + 6) / 3),
|
||||||
Experience = (ulong)(20 - i) * 957
|
Experience = (ulong)(20 - i) * 957
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace Syroot.Worms.OnlineWorms.Server.Net
|
namespace Syroot.Worms.OnlineWorms.Server.Net
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents an additional server response to a <see cref="ChannelTop20PlayersQuery"/>, causing the client to switch
|
/// Represents an additional server response to a <see cref="ChannelTop20Query"/>, causing the client to switch
|
||||||
/// to the channel screen (game lobby).
|
/// to the channel screen (game lobby).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Packet(PacketType.Channel, 0x44)]
|
[Packet(PacketType.Channel, 0x44)]
|
||||||
|
@ -7,7 +7,7 @@ namespace Syroot.Worms.OnlineWorms.Server.Net
|
|||||||
/// Represents the client request for a <see cref="ChannelConnectReply"/>.
|
/// Represents the client request for a <see cref="ChannelConnectReply"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Packet(PacketType.Channel, 0x37)]
|
[Packet(PacketType.Channel, 0x37)]
|
||||||
internal class ChannelTop20PlayersQuery : Packet
|
internal class ChannelTop20Query : Packet
|
||||||
{
|
{
|
||||||
// ---- PROPERTIES ---------------------------------------------------------------------------------------------
|
// ---- PROPERTIES ---------------------------------------------------------------------------------------------
|
||||||
|
|
@ -5,10 +5,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="ChannelTop20PlayersQuery"/>.
|
/// Represents the server response to a <see cref="ChannelTop20Query"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Packet(PacketType.Channel, 0x36)]
|
[Packet(PacketType.Channel, 0x36)]
|
||||||
internal class ChannelTop20PlayersReply : Packet
|
internal class ChannelTop20Reply : Packet
|
||||||
{
|
{
|
||||||
// ---- PROPERTIES ---------------------------------------------------------------------------------------------
|
// ---- PROPERTIES ---------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user