using EggLink.DanhengServer.Kcp;
using EggLink.DanhengServer.Proto;

namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Player;

public class PacketPlayerKickOutScNotify : BasePacket
{
    public PacketPlayerKickOutScNotify() : base(CmdIds.PlayerKickOutScNotify)
    {
        var proto = new PlayerKickOutScNotify
        {
            KickType = PlayerKickOutScNotify.Types.KickType.KickSqueezed
        };
        SetData(proto);
    }

    public PacketPlayerKickOutScNotify(PlayerKickOutScNotify.Types.KickType type, BlackInfo? info = null) : base(CmdIds.PlayerKickOutScNotify)
    {
        var proto = new PlayerKickOutScNotify
        {
            KickType = type
        };

        if (info != null) proto.BlackInfo = info;

        SetData(proto);
    }
}