表示成就的配置。
有关此类资源的方法列表,请参阅本页面的结尾部分。
资源表示法
这是成就配置资源的 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 |
成就的类型。 可能的值包括:
|
|
initialState |
string |
成就的初始状态。 可能的值包括:
|
|
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 |
此成就的排序排名。系统会忽略对此字段的写入。 |