basic event support

This commit is contained in:
Mikhail
2024-07-06 08:53:48 -04:00
parent 6fb82d5fa7
commit 0e193323ad
10 changed files with 316 additions and 21 deletions

View File

@@ -0,0 +1,22 @@
using nksrv.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nksrv.LobbyServer.Msgs.Archive
{
[PacketPath("/bookmark/scenario/exist")]
public class CheckBookmarkScenarioExists : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var req = await ReadData<ReqExistScenarioBookmark>();
var response = new ResExistScenarioBookmark();
// TODO
WriteData(response);
}
}
}

View File

@@ -15,7 +15,9 @@ namespace nksrv.LobbyServer.Msgs.Archive
var req = await ReadData<ReqGetArchiveRecord>();
var response = new ResGetArchiveRecord();
// TODO
response.ArchiveRecordList.AddRange([100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800]);
response.UnlockedArchiveRecordList.AddRange([100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800]);
// TODO: allow unlocking
WriteData(response);
}
}