表示成就的配置。
有关此资源的方法列表,请参阅本页末尾。
资源表示
这是成就配置资源的 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 |
嵌套对象 |
成就的草稿数据。 | |
draft.kind |
string |
唯一标识此资源的类型。值始终为固定字符串 gamesConfiguration#achievementConfigurationDetail。 |
|
draft.name |
嵌套对象 |
成就名称的本地化字符串。 | |
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 |
嵌套对象 |
成就说明的本地化字符串。 | |
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 |
嵌套对象 |
成就的已发布数据。此数据为只读。 | |
published.kind |
string |
唯一标识此资源的类型。值始终为固定字符串 gamesConfiguration#achievementConfigurationDetail。 |
|
published.name |
嵌套对象 |
成就名称的本地化字符串。 | |
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 |
嵌套对象 |
成就说明的本地化字符串。 | |
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 |
此成就的排序排名。对此字段的写入将被忽略。 |