Exemplo n.º 1
0
 public void OnGameTurnToPlayer(bs.gameddz.turn_to_player rsp)
 {
 }
Exemplo n.º 2
0
    public void ProcessGameData(byte[] buff, uint data_id)
    {
        System.IO.Stream stream = new System.IO.MemoryStream(buff);
        switch (data_id)
        {
        case (uint)bs.gameddz.CMDID_Gameddz.IDGameBegin:
            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameDealCards:
        {
            bs.gameddz.deal_cards rsp = Serializer.Deserialize <bs.gameddz.deal_cards>(stream);
            OnGameDealCards(rsp);
        }
        break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameTurnToPlayer:
        {
            bs.gameddz.turn_to_player rsp = Serializer.Deserialize <bs.gameddz.turn_to_player>(stream);
            OnGameTurnToPlayer(rsp);
        }
        break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameBidScore:

            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameBidScoreEnd:
        {
            bs.gameddz.bid_socre_end rsp = Serializer.Deserialize <bs.gameddz.bid_socre_end>(stream);
            OnGameBidScoreEnd(rsp);
        }
        break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameOutCardsReq:
            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameOutCardsReply:
        {
            bs.gameddz.out_cards_reply rsp = Serializer.Deserialize <bs.gameddz.out_cards_reply>(stream);
            OnGameOutCardsReply(rsp);
        }
        break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameSeenDataReq:
            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameEnd:
        {
            bs.gameddz.game_end rsp = Serializer.Deserialize <bs.gameddz.game_end>(stream);
            OnGameEnd(rsp);
        }
        break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameDataReq:
            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameSetAuto:
        {
            bs.gameddz.set_auto rsp = Serializer.Deserialize <bs.gameddz.set_auto>(stream);
            OnGameSetAuto(rsp);
        }
        break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameExpression:
            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDGameScoreChage:
            break;

        case (uint)bs.gameddz.CMDID_Gameddz.IDCardsForRobots:
            break;

        default:
            break;
        }
    }