Implement the following plan: Update CLAUDE.md to Reflect Post-Refactoring State Context…
- User
Implement the following plan:
Update CLAUDE.md to Reflect Post-Refactoring State
Context
The core/Examples alignment refactoring is complete (7 commits on
ro/core-examples-alignment). The CLAUDE.md still describes the pre-refactoring state where "core contains legacy code" and "Examples has the most current patterns." This is now wrong — core IS the authoritative source for all engine infrastructure, and Examples contains only game-specific logic.Changes
File:
.claude/CLAUDE.mdSection: "About this project" (lines 1-11)
- Remove "core library contains some legacy code" — legacy code was deleted
- Remove "MonoDreams.Examples/ has the most current and mature patterns" — infrastructure is now in core
- Remove "Always prefer conventions found in MonoDreams.Examples over the core library when they diverge" — core is now authoritative
- Keep the starting point reference to
LoadLevelExampleGameScreen.csas the best example of how to wire up a game screen
Section: "Project structure" (lines 13-20)
- Update
MonoDreams/description to reflect it now contains rendering, camera, cursor, collision, physics, entity spawning, level loading, and screen management - Update
MonoDreams.Examples/description to clarify it's game-specific logic only (screens, input mapping, dialogue, movement, entity factories, settings) - Add note that
MonoDreams.YarnSpinner/is standalone (not referenced by core)
Section: "Component design" (lines 24-36)
- Add that
EntityInfois string-based in core (new EntityInfo("Player")), game code can define its own enum for convenience - Add that
Transformis the single spatial component (Position was removed) - Note that
CameraFollowTargetis inMonoDreams.Component(not a Camera subdirectory, to avoid namespace conflicts) - Existing DrawComponent/SpriteInfo/Visible guidance is correct and stays
Section: "Entity creation" (lines 38-45)
- Update to clarify
IEntityFactoryandEntitySpawnSystemare in core (MonoDreams.EntityFactoryandMonoDreams.System.EntitySpawn) - Note namespace choice:
MonoDreams.EntityFactory(not.Entity) to avoid shadowingDefaultEcs.Entity
Assistant
I'll start by reading the current CLAUDE.md to make the precise edits.
Assistant
Now I'll apply the edits. I'll rewrite the full file since most sections need changes.
Assistant
Now let me verify the build still passes (documentation-only change, but good to confirm).
Assistant
Build passes with 0 errors (only pre-existing warnings).
Here's a summary of what changed in
.claude/CLAUDE.md:About this project — Removed the outdated "legacy code in core" and "prefer Examples over core" language. Core is now described as the authoritative source for all engine infrastructure.
Project structure — Updated
MonoDreams/to list all infrastructure it now contains, updatedMonoDreams.Examples/to clarify it's game-specific only, notedMonoDreams.YarnSpinner/is standalone.Component design — Added
EntityInfostring-based convention,Transformas the single spatial component (no Position), andCameraFollowTargetnamespace note. Kept existing DrawComponent/SpriteInfo/Visible guidance.Entity creation — Added core namespace locations (
MonoDreams.EntityFactory,MonoDreams.System.EntitySpawn) and the namespace choice rationale to avoid shadowingDefaultEcs.Entity.