mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
29 lines
795 B
C#
29 lines
795 B
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
using static EggLink.DanhengServer.Proto.PlayerKickOutScNotify.Types;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Player;
|
|
|
|
public class PacketPlayerKickOutScNotify : BasePacket
|
|
{
|
|
public PacketPlayerKickOutScNotify() : base(CmdIds.PlayerKickOutScNotify)
|
|
{
|
|
var proto = new PlayerKickOutScNotify
|
|
{
|
|
KickType = KickType.KickSqueezed
|
|
};
|
|
SetData(proto);
|
|
}
|
|
|
|
public PacketPlayerKickOutScNotify(KickType type, BlackInfo? info = null) : base(CmdIds.PlayerKickOutScNotify)
|
|
{
|
|
var proto = new PlayerKickOutScNotify
|
|
{
|
|
KickType = type
|
|
};
|
|
|
|
if (info != null) proto.BlackInfo = info;
|
|
|
|
SetData(proto);
|
|
}
|
|
} |