61bf21bda0ce37e48881dfc9e74ffe9ccd1390fc
BodyTemplate: JSON-serializable entity body definition. - parts: Vec<BodyPart> with x, y, color, label - constraints: Vec<(usize, usize)> connecting parts - half_w/half_h/radius: collider and physics params Built-in templates: - humanoid_player: purple wizard (15 parts) - humanoid_goblin: green (15 parts) - boulder: 4x4 rock (16 parts) API for AI agents: - BodyTemplate::to_json() / from_json() — serialize/deserialize - BodyTemplate::preview_ascii() — text preview of silhouette - BodyTemplate::apply_to(&mut entity, cx, cy) — build entity from template - template_for_kind(EntityKind) — get template by entity type - Custom templates: create any shape (snake, dragon, boss) from code or JSON Entity::build_humanoid() now delegates to template_for_kind().apply_to() — single source of truth for body layout. 7 new tests for template system (116 total, 0 failures)
Languages
Rust
98.6%
GLSL
1%
Python
0.4%