Core/PacketIO: Rename some new opcodes

Port From (https://github.com/TrinityCore/TrinityCore/commit/1021fcee345b0817ca087c04f8f063eb9d10bfe9)
This commit is contained in:
hondacrx
2022-05-10 13:33:19 -04:00
parent 31a70e8b50
commit 2c38cbde12
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ namespace Game.DungeonFinding
return;
}
QueryPlayerNameResponse response = new();
QueryPlayerNamesResponse response = new();
foreach (MemberSlot memberSlot in group.GetMemberSlots())
{
player.GetSession().BuildNameQueryData(memberSlot.guid, out NameCacheLookupResult nameCacheLookupResult);
+3 -3
View File
@@ -30,10 +30,10 @@ namespace Game
{
public partial class WorldSession
{
[WorldPacketHandler(ClientOpcodes.QueryPlayerName, Processing = PacketProcessing.Inplace)]
void HandleNameQueryRequest(QueryPlayerName queryPlayerName)
[WorldPacketHandler(ClientOpcodes.QueryPlayerNames, Processing = PacketProcessing.Inplace)]
void HandleQueryPlayerNames(QueryPlayerNames queryPlayerName)
{
QueryPlayerNameResponse response = new();
QueryPlayerNamesResponse response = new();
foreach (ObjectGuid guid in queryPlayerName.Players)
{
BuildNameQueryData(guid, out NameCacheLookupResult nameCacheLookupResult);
@@ -27,9 +27,9 @@ using System.Numerics;
namespace Game.Networking.Packets
{
public class QueryPlayerName : ClientPacket
public class QueryPlayerNames : ClientPacket
{
public QueryPlayerName(WorldPacket packet) : base(packet) { }
public QueryPlayerNames(WorldPacket packet) : base(packet) { }
public override void Read()
{
@@ -41,11 +41,11 @@ namespace Game.Networking.Packets
public ObjectGuid[] Players;
}
public class QueryPlayerNameResponse : ServerPacket
public class QueryPlayerNamesResponse : ServerPacket
{
public List<NameCacheLookupResult> Players = new();
public QueryPlayerNameResponse() : base(ServerOpcodes.QueryPlayerNameResponse) { }
public QueryPlayerNamesResponse() : base(ServerOpcodes.QueryPlayerNamesResponse) { }
public override void Write()
{