36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using Google.Protobuf;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
using ServerCommon;
|
|
using ServerCommon.BusinessLogDomain;
|
|
using MetaAssets;
|
|
|
|
|
|
|
|
namespace GameServer.PacketHandler;
|
|
|
|
|
|
[PacketHandler("allgameserver", typeof(ServerMessage.Types.ExchangeMannequinDisplayItemNoti), typeof(ExchangeMannequinDisplayItemMQPacketHandler), typeof(RabbitMQ4Game))]
|
|
public class ExchangeMannequinDisplayItemMQPacketHandler : PacketRecvHandler
|
|
{
|
|
public override async Task<Result> onProcessPacket(ISession session, IMessage recvMessage)
|
|
{
|
|
var result = new Result();
|
|
|
|
var msg = recvMessage as ServerMessage;
|
|
NullReferenceCheckHelper.throwIfNull(msg, () => $"msg is null !!!");
|
|
|
|
MapManager.Instance.ExchangeMannequinDisplayItem(msg.ExchangeMannequinDisplayItemNoti.AnchorGuid, msg.ExchangeMannequinDisplayItemNoti.DisplayItemIds.ToList());
|
|
GameServerApp.getServerLogic().getMap().PropModifyNoti(msg.ExchangeMannequinDisplayItemNoti.AnchorGuid);
|
|
|
|
await Task.CompletedTask;
|
|
|
|
return result;
|
|
}
|
|
|
|
|
|
}
|