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 的成就配置。
get
检索具有指定 ID 的成就配置的元数据。
insert
在此应用中插入新的成就配置。
list
返回此应用中的成就配置列表。
update
使用指定 ID 更新成就配置的元数据。