mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
add CheckBookmarkScenarioExists and CheckScenarioExists
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Msgs.Event
|
||||
{
|
||||
[PacketPath("/bookmark/event/scenario/exist")]
|
||||
public class CheckBookmarkScenarioExists : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqExistScenarioBookmark>();
|
||||
|
||||
var response = new ResExistScenarioBookmark();
|
||||
|
||||
// TODO
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
21
EpinelPS/LobbyServer/Msgs/Event/CheckScenarioExists.cs
Normal file
21
EpinelPS/LobbyServer/Msgs/Event/CheckScenarioExists.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Msgs.Event
|
||||
{
|
||||
[PacketPath("/event/scenario/exist")]
|
||||
public class CheckScenarioExists : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqExistEventScenario>();
|
||||
|
||||
var response = new ResExistEventScenario();
|
||||
|
||||
foreach (var item in req.ScenarioGroupIds)
|
||||
response.ExistGroupIds.Add(item);
|
||||
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user