From c2c8a532dbaa9f074b3503915c0d1d17fc3d35b4 Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 10 May 2026 08:09:10 +0200 Subject: [PATCH] fix(A.5 T13-T16): WorldEntity required-member fields in new tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 19b4465 broke build by omitting required-member init for SourceGfxObjOrSetupId/Position/Rotation in the new ToDemote/ToPromote tests. WorldEntity has [required] on those fields (CS9035). The lone test run that reported 38 passing used pre-existing binaries built before this break. Added all three required initializers (zero / Identity defaults — these test the routing path; entity content doesn't matter). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Streaming/StreamingControllerTwoTierTests.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/AcDream.Core.Tests/Streaming/StreamingControllerTwoTierTests.cs b/tests/AcDream.Core.Tests/Streaming/StreamingControllerTwoTierTests.cs index 7b0de6c..4774ac2 100644 --- a/tests/AcDream.Core.Tests/Streaming/StreamingControllerTwoTierTests.cs +++ b/tests/AcDream.Core.Tests/Streaming/StreamingControllerTwoTierTests.cs @@ -53,7 +53,11 @@ public class StreamingControllerTwoTierTests var lb100 = new LoadedLandblock( (100u << 24) | (100u << 16) | 0xFFFFu, Heightmap: null!, - Entities: new[] { new WorldEntity { Id = 1, MeshRefs = System.Array.Empty() } }); + Entities: new[] { new WorldEntity { + Id = 1, SourceGfxObjOrSetupId = 0, + Position = System.Numerics.Vector3.Zero, + Rotation = System.Numerics.Quaternion.Identity, + MeshRefs = System.Array.Empty() } }); state.AddLandblock(lb100); Assert.Equal(1, state.Entities.Count); @@ -96,7 +100,11 @@ public class StreamingControllerTwoTierTests // Streamer pushes a Promoted result carrying the entity layer. var promoted = new LandblockStreamResult.Promoted( lbId, - new[] { new WorldEntity { Id = 7, MeshRefs = System.Array.Empty() } }); + new[] { new WorldEntity { + Id = 7, SourceGfxObjOrSetupId = 0, + Position = System.Numerics.Vector3.Zero, + Rotation = System.Numerics.Quaternion.Identity, + MeshRefs = System.Array.Empty() } }); var queue = new Queue(); queue.Enqueue(promoted);