add CheckBookmarkScenarioExists and CheckScenarioExists

This commit is contained in:
Mikhail
2024-11-21 18:04:49 -05:00
parent 93dc699b1e
commit de1f688831
2 changed files with 40 additions and 0 deletions

View File

@@ -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);
}
}
}

View 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);
}
}
}