代表成就的設定。
如需本資源的方法清單,請見本頁結尾。
資源表示法
這是關卡設定資源的 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 |
此關卡的排序排名。系統會忽略寫入這個欄位。 |