unlock some feature

This commit is contained in:
Naruse
2026-04-23 17:38:15 +08:00
parent b246b920c6
commit de8b82c982
3 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
namespace MikuSB.GameServer.Server.CallGS.Handlers.Role;
// Response:{tbRet:{nSeed:random_number}}
[CallGSApi("Role_EnterLevel")]
public class Role_EnterLevel : ICallGSHandler
{
private static readonly Random _random = new Random();
public async Task Handle(Connection connection, string param, ushort seqNo)
{
string rsp = $"{{\"tbRet\":{{\"nSeed\":{_random.Next(1, 1000000000)}}}}}";
await CallGSRouter.SendScript(connection, "Role_EnterLevel", rsp, seqNo);
}
}