AchievementConfigurations

代表成就的設定。

如需本資源的方法清單,請見本頁結尾。

資源表示法

這是成就設定資源的 JSON 範本。

{
  "kind": "gamesConfiguration#achievementConfiguration",
  "token": string,
  "id": string,
  "achievementType": string,
  "initialState": string,
  "stepsToUnlock": integer,
  "draft": {
    "kind": "gamesConfiguration#achievementConfigurationDetail",
    "name": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "description": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "pointValue": integer,
    "iconUrl": string,
    "sortRank": integer
  },
  "published": {
    "kind": "gamesConfiguration#achievementConfigurationDetail",
    "name": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "description": {
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations": [
        {
          "kind": "gamesConfiguration#localizedString",
          "locale": string,
          "value": string
        }
      ]
    },
    "pointValue": integer,
    "iconUrl": string,
    "sortRank": integer
  }
}
屬性名稱 說明 附註
kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#achievementConfiguration
token string 這項資源的權杖。
id string 成就的 ID。
achievementType string 成就的類型。
可能的值包括:
  • STANDARD」- 成就鎖定或解鎖。
  • INCREMENTAL」- 成就感會不斷增加,
initialState string 成就的初始狀態。
可能的值包括:
  • HIDDEN」- 已隱藏成就。
  • REVEALED」- 顯示成就。
  • UNLOCKED」- 解鎖成就。
stepsToUnlock integer 解鎖步驟。僅適用於漸進式成就。
draft nested object 成就的草稿資料。
draft.kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#achievementConfigurationDetail
draft.name nested object 成就名稱的本地化字串。
draft.name.kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedStringBundle
draft.name.translations[] list 語言代碼字串。
draft.name.translations[].kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedString
draft.name.translations[].locale string 語言代碼字串。
draft.name.translations[].value string 字串值。
draft.description nested object 成就說明的本地化字串。
draft.description.kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedStringBundle
draft.description.translations[] list 語言代碼字串。
draft.description.translations[].kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedString
draft.description.translations[].locale string 語言代碼字串。
draft.description.translations[].value string 字串值。
draft.pointValue integer 成就的分數值。
draft.iconUrl string 此成就的圖示網址。系統會忽略寫入這個欄位。
draft.sortRank integer 此成就的排序排名。系統會忽略寫入這個欄位。
published nested object 成就的已發布資料。此為唯讀資料。
published.kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#achievementConfigurationDetail
published.name nested object 成就名稱的本地化字串。
published.name.kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedStringBundle
published.name.translations[] list 語言代碼字串。
published.name.translations[].kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedString
published.name.translations[].locale string 語言代碼字串。
published.name.translations[].value string 字串值。
published.description nested object 成就說明的本地化字串。
published.description.kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedStringBundle
published.description.translations[] list 語言代碼字串。
published.description.translations[].kind string 專門用於識別這項資源的類型。值一律為固定字串 gamesConfiguration#localizedString
published.description.translations[].locale string 語言代碼字串。
published.description.translations[].value string 字串值。
published.pointValue integer 成就的分數值。
published.iconUrl string 此成就的圖示網址。系統會忽略寫入這個欄位。
published.sortRank integer 此成就的排序排名。系統會忽略寫入這個欄位。

方法

刪除
刪除具有指定 ID 的成就設定。
取得
擷取具有指定 ID 的成就設定中繼資料。
插入
在此應用程式中插入新的成就設定。
list
傳回此應用程式中的成就設定清單。
更新
使用指定 ID 更新成就設定的中繼資料。