Ejemplo n.º 1
0
    /// <summary>
    /// 翻牌
    /// </summary>
    /// <param name="proto"></param>
    internal void DrawPokerProxy(GP_ROOM_DRAWPOKER proto)
    {
        List <Poker> DrawPokerList = new List <Poker>();
        SeatEntity   seat          = GetSeatBySeatId(proto.pos);
        int          dun           = proto.index;

        for (int i = 0; i < proto.drawPokerListCount(); i++)
        {
            DrawPokerList.Add(new Poker()
            {
                Index = proto.getDrawPokerList(i).index, //索引
                Type  = proto.getDrawPokerList(i).type,  //花色
                Size  = proto.getDrawPokerList(i).size,  //大小
            });
        }
        TransferData data = new TransferData();

        data.SetValue("DrawPokerList", DrawPokerList);
        data.SetValue("Seat", seat);
        data.SetValue("Index", dun);
        SendNotification(ConstantGuPaiJiu.DrawPoker, data);
    }
Ejemplo n.º 2
0
    private void OnServerBroadcastDrawPoker(byte[] obj)
    {
        GP_ROOM_DRAWPOKER proto = GP_ROOM_DRAWPOKER.decode(obj);

        RoomGuPaiJiuProxy.Instance.DrawPokerProxy(proto);
    }