forked from PGR/ascnet
1
0
Fork 0
ascnet/AscNet.GameServer/Handlers/ShopModule.cs

55 lines
1.6 KiB
C#
Raw Normal View History

2023-10-14 16:27:53 +00:00
using AscNet.Common.MsgPack;
using MessagePack;
2023-10-14 16:27:53 +00:00
namespace AscNet.GameServer.Handlers
{
#region MsgPackScheme
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
[MessagePackObject(true)]
public class GetShopBaseInfoRequest
2023-10-14 16:27:53 +00:00
{
}
2023-10-14 16:27:53 +00:00
[MessagePackObject(true)]
public class GetShopBaseInfoResponse
{
public int Code;
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion
internal class ShopModule
{
[RequestPacketHandler("GetShopInfoRequest")]
public static void GetShopInfoRequestHandler(Session session, Packet.Request packet)
2023-10-14 16:27:53 +00:00
{
2023-11-11 07:28:21 +00:00
GetShopInfoResponse rsp = new()
2023-10-14 16:27:53 +00:00
{
Code = 0,
ClientShop = { }
};
2023-10-14 17:16:45 +00:00
session.SendResponse(rsp, packet.Id);
2023-10-14 16:27:53 +00:00
}
[RequestPacketHandler("GetShopInfoReceiveRequest")]
public static void GetShopInfoReceiveRequestHandler(Session session, Packet.Request packet)
2023-11-29 14:01:00 +00:00
{
GetShopInfoResponse rsp = new()
{
Code = 0,
ClientShop = { }
};
session.SendResponse(rsp, packet.Id);
}
[RequestPacketHandler("GetShopBaseInfoRequest")]
public static void GetShopBaseInfoRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new GetShopBaseInfoResponse(), packet.Id);
}
2023-10-14 16:27:53 +00:00
}
}