Core/PacketIO: Rename some new opcodes
Port From (https://github.com/TrinityCore/TrinityCore/commit/1021fcee345b0817ca087c04f8f063eb9d10bfe9)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user