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 更新關卡設定的中繼資料。