mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-18 01:45:05 +01:00
Add intercept support (#14)
* Add files via upload --------- Co-authored-by: Mikhail <mishakeys20@gmail.com>
This commit is contained in:
25
nksrv/LobbyServer/Msgs/Intercept/InterceptFastClear.cs
Normal file
25
nksrv/LobbyServer/Msgs/Intercept/InterceptFastClear.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using nksrv.Net;
|
||||
using nksrv.Utils;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace nksrv.LobbyServer.Msgs.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/fastclear")]
|
||||
public class FastClearInterceptData : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqFastClearIntercept>();
|
||||
|
||||
var response = new ResFastClearIntercept
|
||||
{
|
||||
Intercept = 1,
|
||||
InterceptId = 1,
|
||||
TicketCount = 3,
|
||||
MaxTicketCount = 10
|
||||
};
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user