docs: document actor behavior config locations
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
- `Server/Framework.Shared/Framework.Shared.csproj` 会从客户端共享目录编译同一份源码。
|
||||
- 小游戏 Core 代码也使用同源模式:`scripts~` 目录同时被客户端和服务端项目编译。
|
||||
- 已有虚拟 HUD 输入系统只负责输出摇杆和按钮事件,不负责技能协议或技能执行。角色行为系统位于输入层之后,把输入转换为行为请求。
|
||||
- 客户端已有 `Client/Assets/Resources/Config` 配置目录先例;服务端需要通过文件或字符串读取同一套 JSON 内容。
|
||||
- 通用行为配置放在 `Client/Assets/Game/Config/ActorBehavior`;小游戏私有行为配置放在对应小游戏目录下的 `Config/ActorBehavior`,例如 `Client/Assets/MiniGames/RockPaperScissors/Config/ActorBehavior`。服务端需要通过文件或字符串读取同一套 JSON 内容。
|
||||
|
||||
## 推荐方案
|
||||
|
||||
@@ -187,6 +187,18 @@ fighter_flyobj.json
|
||||
fighter_buff.json
|
||||
```
|
||||
|
||||
通用大厅/全局角色配置放在:
|
||||
|
||||
```text
|
||||
Client/Assets/Game/Config/ActorBehavior/
|
||||
```
|
||||
|
||||
小游戏独有角色配置放在:
|
||||
|
||||
```text
|
||||
Client/Assets/MiniGames/<GameName>/Config/ActorBehavior/
|
||||
```
|
||||
|
||||
所有文件都包含:
|
||||
|
||||
- `type`:角色类型名,例如 `fighter`。
|
||||
|
||||
Reference in New Issue
Block a user