/// <summary> /// 通知庄家翻牌 /// </summary> /// <param name="proto"></param> internal void IsBankeDrawProxy(GP_ROOM_INFORMBANKERDRAW proto) { CurrentRoom.roomStatus = ROOM_STATUS.CHECK; CurrentRoom.roomUnixtime = proto.unixtime; SeatEntity seat = GetSeatBySeatId(proto.pos); TransferData data = new TransferData(); data.SetValue("Time", CurrentRoom.roomUnixtime); data.SetValue("Seat", seat); data.SetValue("IsPlayer", seat == PlayerSeat); data.SetValue("RoomStatus", CurrentRoom.roomStatus); SendNotification(ConstantGuPaiJiu.TellIsBankeDraw, data); }
/// <summary> /// 服务器广播通知庄家翻牌 /// </summary> /// <param name="obj"></param> private void OnServerBroadcastIsBankeDraw(byte[] obj) { GP_ROOM_INFORMBANKERDRAW proto = GP_ROOM_INFORMBANKERDRAW.decode(obj); RoomGuPaiJiuProxy.Instance.IsBankeDrawProxy(proto); }