mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 00:14:48 +01:00
Remove msg folder
This commit is contained in:
21
EpinelPS/LobbyServer/Intercept/AnomalousData.cs
Normal file
21
EpinelPS/LobbyServer/Intercept/AnomalousData.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/Anomalous/Data")]
|
||||
public class GetAnomalousData : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqInterceptAnomalousData>();
|
||||
|
||||
var response = new ResInterceptAnomalousData
|
||||
{
|
||||
LastEnteredInterceptAnomalousId = 1,
|
||||
RemainingTickets = 5
|
||||
};
|
||||
response.ClearedInterceptAnomalousIds.Add(new[] { 1, 2, 3, 4, 5 });
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
EpinelPS/LobbyServer/Intercept/AnomalousEnter.cs
Normal file
17
EpinelPS/LobbyServer/Intercept/AnomalousEnter.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/Anomalous/Enter")]
|
||||
public class EnterAnomalousIntercept : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqEnterInterceptAnomalous>();
|
||||
|
||||
var response = new ResEnterInterceptAnomalous();
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
EpinelPS/LobbyServer/Intercept/AnomalousFastClear.cs
Normal file
17
EpinelPS/LobbyServer/Intercept/AnomalousFastClear.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/Anomalous/FastClear")]
|
||||
public class AnomalousFastClear : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqFastClearInterceptAnomalous>();
|
||||
|
||||
var response = new ResFastClearInterceptAnomalous();
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
EpinelPS/LobbyServer/Intercept/AnomalousFinish.cs
Normal file
17
EpinelPS/LobbyServer/Intercept/AnomalousFinish.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/Anomalous/Finish")]
|
||||
public class FinishAnomalousIntercept : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqFinishInterceptAnomalous>();
|
||||
|
||||
var response = new ResFinishInterceptAnomalous();
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
EpinelPS/LobbyServer/Intercept/GetInterceptData.cs
Normal file
23
EpinelPS/LobbyServer/Intercept/GetInterceptData.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/get")]
|
||||
public class GetInterceptData : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqGetInterceptData>();
|
||||
|
||||
var response = new ResGetInterceptData
|
||||
{
|
||||
NormalInterceptGroup = 1,
|
||||
SpecialInterceptId = 1,
|
||||
TicketCount = 5,
|
||||
MaxTicketCount = 10
|
||||
};
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
EpinelPS/LobbyServer/Intercept/InterceptCheck.cs
Normal file
20
EpinelPS/LobbyServer/Intercept/InterceptCheck.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/check")]
|
||||
public class CheckClearInterceptToday : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqCheckClearInterceptToday>();
|
||||
|
||||
var response = new ResCheckClearInterceptToday
|
||||
{
|
||||
Clear = true
|
||||
};
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
EpinelPS/LobbyServer/Intercept/InterceptClear.cs
Normal file
23
EpinelPS/LobbyServer/Intercept/InterceptClear.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
17
EpinelPS/LobbyServer/Intercept/InterceptEnter.cs
Normal file
17
EpinelPS/LobbyServer/Intercept/InterceptEnter.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/enter")]
|
||||
public class EnterInterceptData : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqEnterIntercept>();
|
||||
|
||||
var response = new ResEnterIntercept();
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
EpinelPS/LobbyServer/Intercept/InterceptFastClear.cs
Normal file
22
EpinelPS/LobbyServer/Intercept/InterceptFastClear.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Intercept
|
||||
{
|
||||
[PacketPath("/intercept/fastclear")]
|
||||
public class FastClearInterceptData : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqFastClearIntercept>();
|
||||
|
||||
var response = new ResFastClearIntercept
|
||||
{
|
||||
TicketCount = 3,
|
||||
MaxTicketCount = 10,
|
||||
Damage = 2
|
||||
};
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user