mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 23:54:00 +00:00
some changes
- girl favorite - immediately read new item - save database on request login
This commit is contained in:
15
GameServer/Server/CallGS/Handlers/Daily/Daily_EnterLevel.cs
Normal file
15
GameServer/Server/CallGS/Handlers/Daily/Daily_EnterLevel.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace MikuSB.GameServer.Server.CallGS.Handlers.Daily;
|
||||
|
||||
// Success response shape expected by Lua:
|
||||
// { nSeed = random_number }
|
||||
[CallGSApi("Daily_EnterLevel")]
|
||||
public class Daily_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, "Daily_EnterLevel", rsp);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user