add additional messages

This commit is contained in:
Mikhail
2024-07-20 11:02:19 -04:00
parent 22d19cf38b
commit dea8d98db4
9 changed files with 160 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ namespace nksrv.LobbyServer.Msgs.Shop
{
try
{
var x = await ReadData<ReqGetJupiterProductList>(); //todo: causes crash
var x = await ReadData<ReqGetJupiterProductList>();
var response = new ResGetJupiterProductList();
foreach (var item in x.ProductIdList)

View File

@@ -0,0 +1,25 @@
using nksrv.Net;
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nksrv.LobbyServer.Msgs.Shop
{
[PacketPath("/shop/get")]
public class GetShop : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var x = await ReadData<GetShopRequest>();
var response = new GetShopResponse();
// TODO
await WriteDataAsync(response);
}
}
}