/// <summary> /// 组合完成 /// </summary> internal void GroupPokerProxy(GP_ROOM_GROUPPOKER proto) { SeatEntity seat = GetSeatBySeatId(proto.pos); seat.seatStatus = SEAT_STATUS.GROUPDONE; if (seat.pokerList.Count != 0) { seat.pokerList.Clear(); } for (int i = 0; i < proto.pokerIndexListCount(); i++) { seat.pokerList.Add(new Poker() { Index = proto.getPokerIndexList(i), //索引 Type = proto.getPokerIndexList(i), //花色 Size = proto.getPokerIndexList(i), //大小 }); } 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 OnServerBroadcastGroup(byte[] obj) { GP_ROOM_GROUPPOKER proto = GP_ROOM_GROUPPOKER.decode(obj); RoomGuPaiJiuProxy.Instance.GroupPokerProxy(proto); }