클라이언트 패치 정보 가져오기

Namespace: Matrix.Component
Assembly: MatrixGames (in MatrixGames.dll)

void GetPatchInfo( 
Callback<GetPatchInfoResponse> cb 
)
This language is not supported or no code example is available.

Parameters

cb

Type: Callback<GetPatchInfoResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

    cb.response: Response Data GetPatchInfoResponse

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

게임 최신 버전과 게임 Patch정보를 조회하는 Method.

최초 게임 실행시 호출하여 SW 업데이트가 필요한지를 체크할때 필요

	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onMaintainGetPatchInfoTest(Matrix.CallbackInfo<Matrix.Domain.Maintain.GetPatchInfoResponse> info)
  {
      Debug.Log("onMaintainGetPatchInfoTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          string message = info.response.StructToJson();
 
          Debug.Log(message);
      }
  }
 
  static void MaintainGetPatchInfoTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[MaintainGetPatchInfoTest]");
 
      API.Maintain.GetPatchInfo(onMaintainGetPatchInfoTest);
  }
 					

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0