refactor(world): canonicalize live physics host ownership
This commit is contained in:
parent
5882b308c1
commit
fcb66198fc
21 changed files with 1546 additions and 323 deletions
|
|
@ -1202,7 +1202,10 @@ public sealed class ProjectileControllerTests
|
|||
fixture.Live.SetRemoteMotionRuntime(Guid, replacement);
|
||||
remote.CellId = CellB;
|
||||
Assert.Equal(CellA, record.FullCellId);
|
||||
Assert.Equal(0u, remote.CellId);
|
||||
// A displaced component retains read-only access to its exact
|
||||
// incarnation through exit_world; its guarded write cannot mutate the
|
||||
// current canonical owner.
|
||||
Assert.Equal(CellA, remote.CellId);
|
||||
replacement.CellId = CellB;
|
||||
Assert.Equal(CellB, record.FullCellId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue