feat(player): 添加玩家阵型保存功能 新增savedFormation字段用于存储玩家的阵型配置, 包括角色ID列表和对应的格子索引位置信息。 ```
53 lines
1.0 KiB
JSON
53 lines
1.0 KiB
JSON
{
|
|
"playerId": "local_player",
|
|
"unlockedCharacters": [
|
|
{
|
|
"characterId": "human_soldier",
|
|
"level": 1,
|
|
"starLevel": 0
|
|
},
|
|
{
|
|
"characterId": "archer",
|
|
"level": 1,
|
|
"starLevel": 0
|
|
},
|
|
{
|
|
"characterId": "shield_guard",
|
|
"level": 1,
|
|
"starLevel": 0
|
|
},
|
|
{
|
|
"characterId": "mage",
|
|
"level": 1,
|
|
"starLevel": 0
|
|
},
|
|
{
|
|
"characterId": "elite_soldier",
|
|
"level": 1,
|
|
"starLevel": 0
|
|
}
|
|
],
|
|
"currentDeck": [
|
|
"human_soldier",
|
|
"archer",
|
|
"shield_guard",
|
|
"mage",
|
|
"elite_soldier"
|
|
],
|
|
"savedFormation": {
|
|
"characterIds": [
|
|
"archer",
|
|
"mage",
|
|
"human_soldier",
|
|
"elite_soldier",
|
|
"shield_guard"
|
|
],
|
|
"cellIndices": [
|
|
1,
|
|
4,
|
|
14,
|
|
15,
|
|
27
|
|
]
|
|
}
|
|
} |