/// <summary> /// 切锅 /// </summary> internal void RoomCutpanProxy(GP_ROOM_CUTPAN proto) { SeatEntity seat = GetSeatBySeatId(proto.pos); long CutPanTime = proto.unixtime; TransferData data = new TransferData(); data.SetValue("Time", CutPanTime); data.SetValue("IsPlayer", seat == PlayerSeat); if (!proto.hasIsCutPan()) { SendNotification(ConstantGuPaiJiu.TellCutPan, data); } if (proto.hasIsCutPan()) { //if (proto.isCutPan==1) //{ // CurrentRoom.roomStatus = ROOM_STATUS.READY; // for (int i = 0; i < CurrentRoom.seatList.Count; i++) // { // CurrentRoom.seatList[i].IsBanker = false; // CurrentRoom.seatList[i].seatStatus = SEAT_STATUS.READY; // } //} SendNotification(ConstantGuPaiJiu.CutPanResult, data); } }
/// <summary> /// 服务器通知庄家切锅 /// </summary> private void OnServerBroadcastIsCutpan(byte[] obj) { GP_ROOM_CUTPAN proto = GP_ROOM_CUTPAN.decode(obj); RoomGuPaiJiuProxy.Instance.RoomCutpanProxy(proto); }