mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
31 lines
850 B
C#
31 lines
850 B
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Player;
|
|
|
|
public class PacketPlayerGetTokenScRsp : BasePacket
|
|
{
|
|
public PacketPlayerGetTokenScRsp(Connection connection) : base(CmdIds.PlayerGetTokenScRsp)
|
|
{
|
|
var rsp = new PlayerGetTokenScRsp
|
|
{
|
|
BlackInfo = new BlackInfo(),
|
|
Uid = (uint)(connection.Player?.Uid ?? 0)
|
|
};
|
|
|
|
SetData(rsp);
|
|
}
|
|
|
|
public PacketPlayerGetTokenScRsp(uint uid, Retcode ret, BlackInfo? black = null, string msg = "") : base(CmdIds.PlayerGetTokenScRsp)
|
|
{
|
|
var rsp = new PlayerGetTokenScRsp
|
|
{
|
|
Retcode = (uint)ret,
|
|
BlackInfo = black ?? new BlackInfo(),
|
|
Msg = msg,
|
|
Uid = uid
|
|
};
|
|
|
|
SetData(rsp);
|
|
}
|
|
} |