fix(simulation): add TileKind to VisibleTile wire protocol (#412)

Server was sending visible_tiles without tile type data, so the client
could not distinguish floor from wall in live mode. Add TileKind enum
(Floor/Wall/Door/Object) to VisibleTile, populated from WalkabilityMap
in the NaturalVision perception query. Update test fixtures to include
the new field. Uses #[serde(default)] for backward compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 02:07:19 +01:00
co-authored by Claude Opus 4.6
parent 33f4f6078c
commit 29c5003403
5 changed files with 34 additions and 7 deletions
+3
View File
@@ -176,18 +176,21 @@ fn generate_msgpack_fixtures() {
y: 10,
z: 0,
visibility: VisibilitySector::Forward,
tile_kind: TileKind::Floor,
},
VisibleTile {
x: 11,
y: 10,
z: 0,
visibility: VisibilitySector::Peripheral,
tile_kind: TileKind::Floor,
},
VisibleTile {
x: 10,
y: 9,
z: 0,
visibility: VisibilitySector::Forward,
tile_kind: TileKind::Floor,
},
],
nearby_interactions: vec![],
+2
View File
@@ -205,12 +205,14 @@ fn snapshot_v2_fields_roundtrip() {
y: 10,
z: 0,
visibility: VisibilitySector::Forward,
tile_kind: TileKind::Floor,
},
VisibleTile {
x: 6,
y: 10,
z: 0,
visibility: VisibilitySector::Peripheral,
tile_kind: TileKind::Wall,
},
],
nearby_interactions: vec![],