Files
DanhengServer-OpenSource/GameServer/Server/Packet/Recv/ChessRogue/HandlerChessRogueReRollDiceCsReq.cs
2024-08-06 20:57:20 +08:00

13 lines
477 B
C#

using EggLink.DanhengServer.Kcp;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Recv.ChessRogue;
[Opcode(CmdIds.ChessRogueReRollDiceCsReq)]
public class HandlerChessRogueReRollDiceCsReq : Handler
{
public override async Task OnHandle(Connection connection, byte[] header, byte[] data)
{
if (connection.Player!.ChessRogueManager?.RogueInstance == null) return;
await connection.Player!.ChessRogueManager.RogueInstance.ReRollDice();
}
}