mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-05 13:13:59 +00:00
Implement BossPvP logic (I implemented this based on undownding's code. Thank you!)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace MikuSB.GameServer.Server.CallGS.Handlers.BossPvp;
|
||||
|
||||
[CallGSApi("BossPvpLogic_LevelSettlement")]
|
||||
public class BossPvpLogic_LevelSettlement : ICallGSHandler
|
||||
{
|
||||
public async Task Handle(Connection connection, string param, ushort seqNo)
|
||||
{
|
||||
var node = System.Text.Json.Nodes.JsonNode.Parse(param);
|
||||
var (response, sync) = BossPvpShared.HandleSettlement(connection.Player!, node);
|
||||
await CallGSRouter.SendScript(connection, "BossPvpLogic_LevelSettlement", response.ToJsonString(), sync);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user