/// <summary> /// 每局结算 /// </summary> /// <param name="proto"></param> internal void LoopSettleProxy(GP_ROOM_LOOPSETTLE proto) { CurrentRoom.roomStatus = ROOM_STATUS.IDLE; CurrentRoom.dealSecond = 0; if (CurrentRoom.roomPokerList.Count != 0) { CurrentRoom.roomPokerList.Clear(); } for (int i = 0; i < proto.room.seatListCount(); i++) { SeatEntity seat = GetSeatBySeatId(proto.room.getSeatList(i).pos); seat.seatStatus = SEAT_STATUS.READY; //seat.Gold += proto.room.getSeatList(i).earnings; //seat.loopEamings = proto.room.getSeatList(i).loopEarnings; if (CurrentRoom.roomMode == RoomEntity.RoomMode.RoundZhuang) { if (seat.IsBanker) { seat.IsBanker = false; } } seat.firstPour = 0; seat.secondPour = 0; TransferData data = new TransferData(); data.SetValue("Seat", seat); data.SetValue("IsPlayer", seat == PlayerSeat); SendGameSeatInfoChangeNotify(seat); } }
/// <summary> /// 服务器广播每局结算 /// </summary> /// <param name="obj"></param> private void OnServerBroadcastLoopSettle(byte[] obj) { GP_ROOM_LOOPSETTLE proto = GP_ROOM_LOOPSETTLE.decode(obj); RoomGuPaiJiuProxy.Instance.LoopSettleProxy(proto); }