refactor: nettoie l'architecture monde et les docs

This commit is contained in:
tom-boullay
2026-05-28 15:47:16 +02:00
parent 1a91b1d7ae
commit ba50224e6e
45 changed files with 89 additions and 726 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ It supports:
The debug physics scene currently uses it to preview:
```txt
public/models/electricienne_animated/model.gltf
public/models/electricienne-animated/model.gltf
```
with the `Dance` animation.
+1 -2
View File
@@ -297,8 +297,7 @@ public/models/{name}/model.gltf
- The repository is still a prototype.
- There is no central production `GameManager`.
- The repair game is implemented, but broader mission orchestration is still light.
- `useRepairMovementLocked()` currently returns `false`, so repair movement lock is disabled even though the rule and UI component exist.
- The repair-runtime setting is stored in settings but not consumed by the repair-game implementation.
- `useRepairMovementLocked()` locks player movement during focused repair steps.
- Player collision and Rapier gameplay physics are separate systems.
- Editor persistence is local development tooling only.
- Debug systems are still part of active scene composition and should remain easy to identify.
+1 -1
View File
@@ -184,7 +184,7 @@ Input is ignored while:
- the settings menu is open
- a cinematic is playing
Movement lock is read separately from `useRepairMovementLocked`, but that hook currently returns `false` on this branch.
Movement lock is read separately from `useRepairMovementLocked`, which locks the player during focused repair steps.
## UI Prompt
+5 -5
View File
@@ -28,11 +28,11 @@ They are under `src/managers/stores/` because they are shared runtime state, not
## Store Responsibilities
| Store | Responsibility |
| ------------------ | ----------------------------------------------------------------- |
| `useGameStore` | Durable game progression, mission steps, cinematic input lock |
| `useSettingsStore` | Menu visibility, volumes, subtitle options, repair-runtime toggle |
| `useSubtitleStore` | Currently displayed subtitle cue |
| Store | Responsibility |
| ------------------ | ------------------------------------------------------------- |
| `useGameStore` | Durable game progression, mission steps, cinematic input lock |
| `useSettingsStore` | Menu visibility, volumes, and subtitle options |
| `useSubtitleStore` | Currently displayed subtitle cue |
## Managers vs Stores