From 9b1a2179fe5c41a43dd19156dd3f7c9fa0556a8d Mon Sep 17 00:00:00 2001 From: Kyle Belanger Date: Sat, 14 Oct 2023 12:27:53 -0400 Subject: [PATCH] Partial shop fixes --- AscNet.GameServer/Handlers/ShopModule.cs | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 AscNet.GameServer/Handlers/ShopModule.cs diff --git a/AscNet.GameServer/Handlers/ShopModule.cs b/AscNet.GameServer/Handlers/ShopModule.cs new file mode 100644 index 0000000..24a132d --- /dev/null +++ b/AscNet.GameServer/Handlers/ShopModule.cs @@ -0,0 +1,29 @@ +using AscNet.Common.MsgPack; +using MessagePack; + +namespace AscNet.GameServer.Handlers +{ + internal class ShopModule + { + /* TODO: Needs types + [RequestPacketHandler("GetShopBaseInfoRequest")] + public static void GetShopBaseInfoRequestHandler(Session session, Packet.Request packet) + { + } + */ + + [RequestPacketHandler("GetShopInfoReceiveRequest")] + public static void GetShopInfoReceiveRequestHandler(Session session, Packet.Request packet) + { + GetShopInfoRequest req = MessagePackSerializer.Deserialize(packet.Content); + + GetShopInfoResponse rsp = new GetShopInfoResponse() + { + Code = 0, + ClientShop = { } + }; + + session.SendResponse(rsp); + } + } +}