달성한 시즌 랭킹에 대한 보상

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

void GiveSeasonRankReward( 
int myRank
Callback<GiveSeasonRankRewardResponse> cb 
)
This language is not supported or no code example is available.

Parameters

myRank

Type: int

응모하는 이벤트 타입

cb

Type: Callback<GiveSeasonRankRewardResponse>

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

    cb.response: Response Data GiveSeasonRankRewardResponse

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

달성한 시즌 순위가 Reward 조건에 해당할때 보상하는 Method.
	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onRewardGiveSeasonRankRewardTest(Matrix.CallbackInfo<Matrix.Domain.Reward.GiveSeasonRankRewardResponse> info)
  {
      Debug.Log("onRewardGiveSeasonRankRewardTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          string message = info.response.StructToJson();
 
          Debug.Log(message);
      }
  }
 
  static void RewardGiveSeasonRankRewardTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[RewardGiveSeasonRankRewardTest]");
 
      API.Reward.GiveSeasonRankReward(1, onRewardGiveSeasonRankRewardTest);
  }
 					

.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