/// <summary> /// 小牌九搓牌结束 /// </summary> /// <param name="proto"></param> internal void CuoPaiProxy(GP_ROOM_CUOPAI proto) { SeatEntity seat = GetSeatBySeatId(proto.pos); seat.seatStatus = SEAT_STATUS.GROUPDONE; seat.isCuoPai = 1; TransferData data = new TransferData(); data.SetValue("Seat", seat); data.SetValue("RoomStatus", CurrentRoom.roomStatus); SendNotification(ConstantGuPaiJiu.EndIamge, data);//组合完成显示完成 if (seat != PlayerSeat) { return; } SendNotification(ConstantGuPaiJiu.GroupEnd, data); }
/// <summary> ///小牌九,服务器广播玩家搓牌结束 /// </summary> /// <param name="obj"></param> private void OnServerBroadCuoPai(byte[] obj) { GP_ROOM_CUOPAI proto = GP_ROOM_CUOPAI.decode(obj); RoomGuPaiJiuProxy.Instance.CuoPaiProxy(proto); }