Implement per-school save functionality by introducing a dedicated save directory and updating the school management system to support loading and saving school states. Revise documentation to reflect these changes, including updates to the architecture and design documents, and enhance the API for reloading schools from disk. Update tests to ensure proper functionality of the new save and reload features.
This commit is contained in:
@@ -52,7 +52,7 @@ Time runs at 5 game minutes per real second at ×1. **Every school runs on its o
|
||||
not you are inside it — the menu cards keep counting. Only the pause button stops a school, and it
|
||||
stays paused (the card says so) until you press play again.
|
||||
|
||||
Schools live in server memory: restarting the server clears them.
|
||||
Schools are written under `saves/` on the server. Restarting the process brings them back.
|
||||
|
||||
## Run the pieces separately
|
||||
|
||||
@@ -74,7 +74,7 @@ dotnet test
|
||||
```
|
||||
|
||||
- `tests/HSchool.Protocol.Tests` — wire-format round-trips and byte layouts.
|
||||
- `tests/HSchool.Simulation.Tests` — the game clock and the school registry, no host involved.
|
||||
- `tests/HSchool.Simulation.Tests` — the game clock, school load/create, and the school registry, no host involved.
|
||||
- `tests/HSchool.AppHost.Tests` — boots the real Aspire graph, drives the menu API and the
|
||||
WebSocket clock. Runs headless (`--HSchool:Headless=true`), so no Node install is needed.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user