docs: 更新本地化架构说明和 CSV 配置路径
This commit is contained in:
@@ -42,8 +42,9 @@ Modular framework with Kit-pattern utilities:
|
|||||||
### Content & Localization
|
### Content & Localization
|
||||||
|
|
||||||
- **Assets/GameContent/**: Runtime assets by scope (`Common/`, `UI/`, `Scene_{Name}/`, `Feature_{Name}/`)
|
- **Assets/GameContent/**: Runtime assets by scope (`Common/`, `UI/`, `Scene_{Name}/`, `Feature_{Name}/`)
|
||||||
- **Assets/Language/**: Unity Localization tables (`Dialog/`, `ActorName/`, `UIText/`, `Locales/`, `Sprite/`)
|
- **Assets/Language/**: Unity Localization tables (runtime active: `UIText/`, `Locales/`, `Sprite/`; `Dialog/`、`ActorName/`、`Params/` currently kept as migration backups)
|
||||||
- **Assets/Resources/Yarn/**: Current Yarn dialogue files (target migration to `Assets/Narrative/` per spec, not yet complete)
|
- **Assets/Resources/Yarn/**: Current Yarn dialogue files (target migration to `Assets/Narrative/` per spec, not yet complete)
|
||||||
|
- **Assets/StreamingAssets/Config/**: CSV-driven localized gameplay data (`character.csv` for actor names, `params.csv` for `l10n.*` substitution terms)
|
||||||
- **Assets/Prototype/**: HTML/JS prototypes for mechanic testing
|
- **Assets/Prototype/**: HTML/JS prototypes for mechanic testing
|
||||||
|
|
||||||
## Critical Dependencies
|
## Critical Dependencies
|
||||||
@@ -109,7 +110,7 @@ Modular framework with Kit-pattern utilities:
|
|||||||
|
|
||||||
### Adding Yarn Dialogue
|
### Adding Yarn Dialogue
|
||||||
1. Create `.yarn` in `Assets/Resources/Yarn/{Module}/`
|
1. Create `.yarn` in `Assets/Resources/Yarn/{Module}/`
|
||||||
2. Add Dialog string tables in `Assets/Language/Dialog/`
|
2. Ensure YarnProject localization assets/CSV are updated (Unity `Assets/Language/Dialog/` is backup-only during migration)
|
||||||
3. Reference in scene's `DialogueRunner`; test with `DialogController`
|
3. Reference in scene's `DialogueRunner`; test with `DialogController`
|
||||||
|
|
||||||
## Debugging & Performance
|
## Debugging & Performance
|
||||||
|
|||||||
Reference in New Issue
Block a user