add GetInterceptData

This commit is contained in:
Mikhail
2024-07-26 14:43:59 -04:00
parent 9d203958c3
commit 766a8605b7
3 changed files with 41 additions and 0 deletions

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.Intercept
{
[PacketPath("/intercept/get")]
public class GetInterceptData : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var req = await ReadData<ReqGetInterceptData>();
var response = new ResGetInterceptData();
// TODO implement
await WriteDataAsync(response);
}
}
}

View File

@@ -0,0 +1,15 @@
syntax = "proto3";
option csharp_namespace = "nksrv.Net";
import "google/protobuf/timestamp.proto";
import "google/protobuf/Duration.proto";
import "Protos/allmsgs.proto";
message ReqGetInterceptData {}
message ResGetInterceptData {
int32 NormalInterceptGroup = 1;
int32 SpecialInterceptId = 2;
int32 TicketCount = 3;
int32 MaxTicketCount = 4;
}

View File

@@ -30,6 +30,7 @@
</ItemGroup>
<ItemGroup>
<None Remove="Protos\intercept.proto" />
<None Remove="Protos\liberate.proto" />
<None Remove="Protos\shop.proto" />
<None Remove="Protos\sidestory.proto" />