feat(simulation): mod-first BodySourceResolver (#969, D-225)

First piece of the layer-stream proxy. Resolves body_id -> source heightmap.png
read-only from systems.db (terrain_reference, mirroring CultureResolver's
pattern), searching roots mod-first over the base install. Explicit errors
(UnknownBody / NoTerrainReference / SourceMissing). v1 callers pass the base
root only; the search-order logic is proven with synthetic mod roots so the
mod-first seam is ready (Q-099 covers registering a mod's new bodies).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 11:36:18 +02:00
co-authored by Claude Opus 4.7
parent bd5355d0a5
commit 0097fd5027
2 changed files with 210 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ pub mod heightmap;
pub mod layer1;
pub mod plugin;
pub mod skeleton_gen;
pub mod source_resolver;
pub mod subbiome;
pub mod tile_condition;