
jpmschweitzerandClaude Opus 4.6
88fc6c30dc
feat(simulation): template instantiation engine — load, spawn, lifecycle (#161)
Add content::instantiation module with:
- instantiate_template(): validates FullTemplateDef, calls
spawn_template_npcs, generates TriangleState entities with ActiveSim,
registers in ActiveTemplateInstances resource
- unload_template(): despawns all NPC + triangle entities, removes
from tracking
- load_template_from_file(): YAML → FullTemplateDef deserialization
- ActiveTemplateInstances: BTreeMap-backed resource (D-010 determinism)
Integration tests: end-to-end logistics-hub.yaml instantiation (4 NPCs,
2 TriangleStates), lifecycle (instantiate → unload → clean), determinism
(same seed = same layout), error path (missing file).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 17:59:49 +01:00
..
2026-02-18 02:20:24 +01:00
2026-02-27 17:46:27 +01:00
2026-02-25 12:13:03 +01:00
2026-02-27 17:46:27 +01:00
2026-02-27 17:46:27 +01:00
2026-02-24 12:14:53 +01:00
2026-02-19 12:04:29 +01:00
2026-02-19 14:14:07 +01:00
2026-02-19 14:14:07 +01:00
2026-02-20 19:00:07 +01:00
2026-02-27 11:11:45 +01:00
2026-02-27 17:46:27 +01:00
2026-02-21 13:42:59 +01:00
2026-02-27 17:46:27 +01:00
2026-02-19 12:04:29 +01:00
2026-02-27 17:46:15 +01:00
2026-02-25 12:57:59 +01:00
2026-02-25 12:13:03 +01:00
2026-02-11 20:15:24 +01:00
2026-02-19 12:04:29 +01:00
2026-02-27 17:46:27 +01:00
2026-02-16 00:40:43 +01:00
2026-02-11 17:53:16 +01:00
2026-02-27 17:59:49 +01:00
2026-02-27 17:46:37 +01:00
2026-02-25 22:34:27 +01:00
2026-02-27 11:11:31 +01:00