예제 #1
0
    // ------------------------------------------------
    // 全コマ情報取得
    // ------------------------------------------------
    void GetPiecesInfo()
    {
        ApiClient.Instance.ResponseListPieces = ResponseListPieces;
        var param = new RequestListPieces();

        param.game_id = UserInfo.game_id;
        ApiClient.Instance.RequestListPieces(param);
    }
예제 #2
0
    void RoadPieces()
    {
        RequestListPieces param = new RequestListPieces();

        param.game_id = PlayerSession.game_id;

        ApiClient.Instance.ResponseListPieces = ResponseListPieces;
        ApiClient.Instance.RequestListPieces(param);
    }
예제 #3
0
        /// <summary>
        ///     RequestListPieces
        ///     /api/games/:game_id/piecesへGETでリクエストを行なう
        /// </summary>
        public void RequestListPieces(RequestListPieces param)
        {
            var url = ipAddr + string.Format("/api/games/{0}/pieces", param.game_id);

            requester.Get(url, ResponseListPieces);
        }