mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
24 lines
753 B
C#
24 lines
753 B
C#
using EggLink.DanhengServer.GameServer.Game.Player;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.ChessRogue;
|
|
|
|
public class PacketGetChessRogueBuffEnhanceInfoScRsp : BasePacket
|
|
{
|
|
public PacketGetChessRogueBuffEnhanceInfoScRsp(PlayerInstance player) : base(CmdIds
|
|
.GetChessRogueBuffEnhanceInfoScRsp)
|
|
{
|
|
var proto = new GetChessRogueBuffEnhanceInfoScRsp();
|
|
if (player.ChessRogueManager!.RogueInstance == null)
|
|
{
|
|
proto.Retcode = 1;
|
|
SetData(proto);
|
|
return;
|
|
}
|
|
|
|
proto.BuffEnhanceInfo = player.ChessRogueManager.RogueInstance!.ToChessEnhanceInfo();
|
|
|
|
SetData(proto);
|
|
}
|
|
} |