diff --git a/client/tests/fixtures/msgpack/snapshot_multi_entity.msgpack b/client/tests/fixtures/msgpack/snapshot_multi_entity.msgpack index 2c0217a45..658104fd8 100644 Binary files a/client/tests/fixtures/msgpack/snapshot_multi_entity.msgpack and b/client/tests/fixtures/msgpack/snapshot_multi_entity.msgpack differ diff --git a/client/tests/fixtures/msgpack/snapshot_player.msgpack b/client/tests/fixtures/msgpack/snapshot_player.msgpack new file mode 100644 index 000000000..b1d14171f Binary files /dev/null and b/client/tests/fixtures/msgpack/snapshot_player.msgpack differ diff --git a/server/tests/gen_fixtures.rs b/server/tests/gen_fixtures.rs index 0b6389135..3562393cd 100644 --- a/server/tests/gen_fixtures.rs +++ b/server/tests/gen_fixtures.rs @@ -60,26 +60,49 @@ fn generate_msgpack_fixtures() { &rmp_serde::to_vec_named(&input_perception).unwrap(), ); + // Snapshot with Player entity (EntityKind::Player added by server team) + let snapshot_player = ObserverSnapshot { + tick: 1, + entities: vec![VisibleEntity { + entity_id: 100, + x: 16.5, + y: 16.5, + z: 0, + kind: EntityKind::Player, + }], + }; + write_fixture( + "snapshot_player", + &rmp_serde::to_vec_named(&snapshot_player).unwrap(), + ); + // Snapshot with multiple entities and all EntityKind variants let snapshot_multi = ObserverSnapshot { tick: 999, entities: vec![ VisibleEntity { entity_id: 1, + x: 16.5, + y: 16.5, + z: 0, + kind: EntityKind::Player, + }, + VisibleEntity { + entity_id: 2, x: 5.0, y: 10.0, z: 0, kind: EntityKind::Npc, }, VisibleEntity { - entity_id: 2, + entity_id: 3, x: 15.5, y: 3.0, z: 1, kind: EntityKind::Object, }, VisibleEntity { - entity_id: 3, + entity_id: 4, x: 0.0, y: 0.0, z: -1,