Exemplo n.º 1
0
    /// <summary>
    /// 客户端发送拒绝解散房间
    /// </summary>
    private void ClientSendRefuseDisbandRoom()
    {
        PAIGOW_ROOM_DISMISS_GET proto = new PAIGOW_ROOM_DISMISS_GET();

        proto.isDismiss = false;
        NetWorkSocket.Instance.Send(proto.encode(), PAIGOW_ROOM_DISMISS_GET.CODE, GameCtrl.Instance.SocketHandle);
    }
Exemplo n.º 2
0
    /// <summary>
    /// 客户端发送请求解散房间
    /// </summary>
    private void ClientSendApplyDisbandRoom()
    {
        //OP_ROOM_DISMISS_GET proto = new OP_ROOM_DISMISS_GET();
        //proto.isDismiss = true;
        //NetWorkSocket.Instance.Send(proto.encode(), OP_ROOM_DISMISS.CODE);

        PAIGOW_ROOM_DISMISS_GET proto = new PAIGOW_ROOM_DISMISS_GET();

        proto.isDismiss = true;
        NetWorkSocket.Instance.Send(proto.encode(), PAIGOW_ROOM_DISMISS_GET.CODE, GameCtrl.Instance.SocketHandle);
    }