mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-17 17:34:35 +01:00
add GetInterceptData
This commit is contained in:
25
nksrv/LobbyServer/Msgs/Intercept/GetInterceptData.cs
Normal file
25
nksrv/LobbyServer/Msgs/Intercept/GetInterceptData.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
nksrv/Protos/intercept.proto
Normal file
15
nksrv/Protos/intercept.proto
Normal 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;
|
||||||
|
}
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Remove="Protos\intercept.proto" />
|
||||||
<None Remove="Protos\liberate.proto" />
|
<None Remove="Protos\liberate.proto" />
|
||||||
<None Remove="Protos\shop.proto" />
|
<None Remove="Protos\shop.proto" />
|
||||||
<None Remove="Protos\sidestory.proto" />
|
<None Remove="Protos\sidestory.proto" />
|
||||||
|
|||||||
Reference in New Issue
Block a user