mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 16:34:40 +01:00
basic event support
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user