2023-10-14 16:27:53 +00:00
|
|
|
|
using AscNet.Common.MsgPack;
|
2024-04-13 05:52:46 +00:00
|
|
|
|
using MessagePack;
|
2023-10-14 16:27:53 +00:00
|
|
|
|
|
|
|
|
|
namespace AscNet.GameServer.Handlers
|
|
|
|
|
{
|
2024-04-13 05:52:46 +00:00
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
{
|
2024-04-13 05:52:46 +00:00
|
|
|
|
}
|
2023-10-14 16:27:53 +00:00
|
|
|
|
|
2024-04-13 05:52:46 +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
|
|
|
|
}
|
2024-04-13 05:52:46 +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);
|
|
|
|
|
}
|
2024-04-13 05:52:46 +00:00
|
|
|
|
|
2024-04-13 06:30:53 +00:00
|
|
|
|
// TODO: Dorm shop
|
2024-04-13 05:52:46 +00:00
|
|
|
|
[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
|
|
|
|
}
|
|
|
|
|
}
|