Paradoxes can play(It is still in the experimental stage and contains many bugs.)

This commit is contained in:
Kei-Luna
2026-04-27 13:13:41 +09:00
parent b6ed4bc089
commit 6f5c19976c
4 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
namespace MikuSB.GameServer.Server.CallGS.Handlers.Rogue3D;
// Enters the Rogue3D level. Returns a random seed used by the client for map generation.
// param: {"nDiffId", "nTeamID", "tbTeam", "tbBuffList", "tbLog"}
// Response: {"nSeed": int}
[CallGSApi("Rogue3D_EnterLevel")]
public class Rogue3D_EnterLevel : ICallGSHandler
{
private static readonly Random Random = new();
public async Task Handle(Connection connection, string param, ushort seqNo)
{
var seed = Random.Next(1, 1_000_000_000);
await CallGSRouter.SendScript(connection, "Rogue3D_EnterLevel", $"{{\"nSeed\":{seed}}}");
}
}