Goals persist as a player attachment: load on join, write after each change, unload on leave so worlds do not leak. Dying does not wipe the list. Remote dedicated servers stay RAM-only.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Java packages for the first slice. Root: `com.sufficient.satistaskory`.
|
||||
|
||||
Rule #9: do not add a package until the slice needs it. No `project`, `emi`, or `persistence` until those are in the slice.
|
||||
Rule #9: do not add a package until the slice needs it. No `project` or `emi` until those are in the slice.
|
||||
|
||||
---
|
||||
|
||||
@@ -25,7 +25,8 @@ com.sufficient.satistaskory
|
||||
|
||||
application/
|
||||
Planner # create / increment / decrement / clear / snapshot
|
||||
InMemoryGoalStore
|
||||
GoalStore # port
|
||||
InMemoryGoalStore # unit tests; inner store for persist
|
||||
|
||||
infrastructure/
|
||||
recipe/
|
||||
@@ -33,6 +34,10 @@ com.sufficient.satistaskory
|
||||
StubRecipeProvider # unit tests only
|
||||
inventory/
|
||||
PlayerInventoryAdapter # player inventory → InventoryState
|
||||
persistence/
|
||||
GoalPlan # NBT codec
|
||||
PersistingGoalStore
|
||||
PlayerGoalPersistence # player attachment in this world
|
||||
client/
|
||||
PlayOverlay # Screen 2 HUD (not a Screen)
|
||||
CaptureHook # tooltip + KeyMapping ADD_GOAL
|
||||
@@ -50,7 +55,6 @@ Dependencies point inward: `infrastructure` and `application` may import `domain
|
||||
|---------|-----|
|
||||
| `Project` | Organizational only; not in the slice |
|
||||
| Completion strategy | Ready ≠ complete; complete is not in the slice |
|
||||
| Persistence | In-memory goals. ADR-004 still holds; no save adapter yet |
|
||||
| Full-screen planner | Not discovered |
|
||||
|
||||
The NeoForge template example block/item is gone. Do not put it back.
|
||||
@@ -65,6 +69,8 @@ The NeoForge template example block/item is gone. Do not put it back.
|
||||
|
||||
[[🔌 Recipe Provider]]
|
||||
|
||||
[[💾 Persistence]]
|
||||
|
||||
[[🎯 Goal]]
|
||||
|
||||
[[📝 Decisions]]
|
||||
|
||||
Reference in New Issue
Block a user