docs: document actor behavior config locations

This commit is contained in:
ud18010
2026-07-30 15:16:25 +08:00
parent de69e6d223
commit 41e73da631
3 changed files with 22 additions and 10 deletions
@@ -36,11 +36,11 @@ Create:
- 配置加载、索引和校验。
- `Client/Assets/Framework/Shared/ActorBehavior/BehaviorWorld.cs`
- 行为、飞行物、Buff、逻辑效果运行时。
- `Client/Assets/Resources/Config/ActorBehavior/fighter_skill.json`
- `Client/Assets/Game/Config/ActorBehavior/fighter_skill.json`
- 示例技能配置。
- `Client/Assets/Resources/Config/ActorBehavior/fighter_flyobj.json`
- `Client/Assets/Game/Config/ActorBehavior/fighter_flyobj.json`
- 示例飞行物配置。
- `Client/Assets/Resources/Config/ActorBehavior/fighter_buff.json`
- `Client/Assets/Game/Config/ActorBehavior/fighter_buff.json`
- 示例 Buff 配置。
- `Server/Framework.Shared.Tests/ActorBehavior/BehaviorConfigCatalogTests.cs`
- 配置解析和校验测试。
@@ -665,9 +665,9 @@ Expected: PASS.
## Task 6: 示例配置、全量验证和 cleanup
**Files:**
- Create: `Client/Assets/Resources/Config/ActorBehavior/fighter_skill.json`
- Create: `Client/Assets/Resources/Config/ActorBehavior/fighter_flyobj.json`
- Create: `Client/Assets/Resources/Config/ActorBehavior/fighter_buff.json`
- Create: `Client/Assets/Game/Config/ActorBehavior/fighter_skill.json`
- Create: `Client/Assets/Game/Config/ActorBehavior/fighter_flyobj.json`
- Create: `Client/Assets/Game/Config/ActorBehavior/fighter_buff.json`
- Modify: all new actor behavior files as needed after refactor
- Test: `Server/Framework.Shared.Tests/ActorBehavior/BehaviorConfigCatalogTests.cs`
@@ -684,7 +684,7 @@ Add to `BehaviorConfigCatalogTests.cs`:
public void ExampleConfigFiles_LoadFromRepository()
{
string root = FindRepoRoot();
string dir = System.IO.Path.Combine(root, "Client", "Assets", "Resources", "Config", "ActorBehavior");
string dir = System.IO.Path.Combine(root, "Client", "Assets", "Game", "Config", "ActorBehavior");
BehaviorConfigCatalog catalog = BehaviorConfigCatalog.LoadFromJson(
"fighter",
@@ -749,7 +749,7 @@ Expected: PASS.
Run:
```powershell
git diff -- Client/Assets/Framework/Shared/ActorBehavior Server/Framework.Shared.Tests/ActorBehavior Client/Assets/Resources/Config/ActorBehavior
git diff -- Client/Assets/Framework/Shared/ActorBehavior Server/Framework.Shared.Tests/ActorBehavior Client/Assets/Game/Config/ActorBehavior
```
Expected: only actor behavior core, tests, and example config files changed.