Esempio n. 1
0
    /// <summary>
    /// 通知坐庄
    /// </summary>
    internal void InfoRebankerProxy(GP_ROOM_INFORMBANKER proto)
    {
        SeatEntity seat = GetSeatBySeatId(proto.pos);

        if (seat == null)
        {
            return;
        }
        CurrentRoom.roomStatus = ROOM_STATUS.READY;
        for (int i = 0; i < CurrentRoom.seatList.Count; i++)
        {
            if (seat.Pos == CurrentRoom.seatList[i].Pos)
            {
                CurrentRoom.seatList[i].IsBanker = true;
            }
            else
            {
                CurrentRoom.seatList[i].IsBanker = false;
            }
            CurrentRoom.seatList[i].seatStatus = SEAT_STATUS.READY;
            SendGameSeatInfoChangeNotify(CurrentRoom.seatList[i]);
        }
    }
Esempio n. 2
0
    /// <summary>
    /// 服务器通知坐庄
    /// </summary>
    /// <param name="obj"></param>
    private void OnServerBroadcastInfoRebanker(byte[] obj)
    {
        GP_ROOM_INFORMBANKER proto = GP_ROOM_INFORMBANKER.decode(obj);

        RoomGuPaiJiuProxy.Instance.InfoRebankerProxy(proto);
    }