fix(A.5 T13-T16): WorldEntity required-member fields in new tests
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) <noreply@anthropic.com>
This commit is contained in:
parent
19b4465257
commit
c2c8a532db
1 changed files with 10 additions and 2 deletions
|
|
@ -53,7 +53,11 @@ public class StreamingControllerTwoTierTests
|
||||||
var lb100 = new LoadedLandblock(
|
var lb100 = new LoadedLandblock(
|
||||||
(100u << 24) | (100u << 16) | 0xFFFFu,
|
(100u << 24) | (100u << 16) | 0xFFFFu,
|
||||||
Heightmap: null!,
|
Heightmap: null!,
|
||||||
Entities: new[] { new WorldEntity { Id = 1, MeshRefs = System.Array.Empty<MeshRef>() } });
|
Entities: new[] { new WorldEntity {
|
||||||
|
Id = 1, SourceGfxObjOrSetupId = 0,
|
||||||
|
Position = System.Numerics.Vector3.Zero,
|
||||||
|
Rotation = System.Numerics.Quaternion.Identity,
|
||||||
|
MeshRefs = System.Array.Empty<MeshRef>() } });
|
||||||
state.AddLandblock(lb100);
|
state.AddLandblock(lb100);
|
||||||
Assert.Equal(1, state.Entities.Count);
|
Assert.Equal(1, state.Entities.Count);
|
||||||
|
|
||||||
|
|
@ -96,7 +100,11 @@ public class StreamingControllerTwoTierTests
|
||||||
// Streamer pushes a Promoted result carrying the entity layer.
|
// Streamer pushes a Promoted result carrying the entity layer.
|
||||||
var promoted = new LandblockStreamResult.Promoted(
|
var promoted = new LandblockStreamResult.Promoted(
|
||||||
lbId,
|
lbId,
|
||||||
new[] { new WorldEntity { Id = 7, MeshRefs = System.Array.Empty<MeshRef>() } });
|
new[] { new WorldEntity {
|
||||||
|
Id = 7, SourceGfxObjOrSetupId = 0,
|
||||||
|
Position = System.Numerics.Vector3.Zero,
|
||||||
|
Rotation = System.Numerics.Quaternion.Identity,
|
||||||
|
MeshRefs = System.Array.Empty<MeshRef>() } });
|
||||||
var queue = new Queue<LandblockStreamResult>();
|
var queue = new Queue<LandblockStreamResult>();
|
||||||
queue.Enqueue(promoted);
|
queue.Enqueue(promoted);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue