Add intercept support (#14)

* Add files via upload

---------

Co-authored-by: Mikhail <mishakeys20@gmail.com>
This commit is contained in:
SELEKCJONER
2024-07-29 15:47:01 +02:00
committed by GitHub
parent a139373320
commit 6f8497e60b
6 changed files with 167 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
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/clear")]
public class ClearInterceptData : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var req = await ReadData<ReqClearIntercept>();
var response = new ResClearIntercept
{
Intercept = 1,
InterceptId = 1,
TicketCount = 5,
MaxTicketCount = 10
};
await WriteDataAsync(response);
}
}
}