can play Chapter

This commit is contained in:
Kei-Luna
2026-04-26 09:38:14 +09:00
parent 3460ad9185
commit 789e1b27a4

View File

@@ -0,0 +1,15 @@
namespace MikuSB.GameServer.Server.CallGS.Handlers.Chapter;
// Success response shape expected by Lua:
// { nSeed = random_number }
[CallGSApi("Chapter_EnterLevel")]
public class Chapter_EnterLevel : ICallGSHandler
{
private static readonly Random Random = new();
public async Task Handle(Connection connection, string param, ushort seqNo)
{
var rsp = $"{{\"nSeed\":{Random.Next(1, 1000000000)}}}";
await CallGSRouter.SendScript(connection, "Chapter_EnterLevel", rsp);
}
}