refactor(runtime): close simulation ownership
Move remote-motion construction, CreateObject vector initialization, final simulation-component retirement, and the combined J5 ownership ledger into Runtime. Delete App compatibility views and moved-state reconstruction while preserving the existing graphical projection and retail update order.
This commit is contained in:
parent
c30a3efeb0
commit
cdee7a4b49
57 changed files with 1013 additions and 410 deletions
|
|
@ -1005,7 +1005,6 @@ internal sealed class DatLiveEntityProjectionMaterializer
|
|||
incarnation =>
|
||||
{
|
||||
var created = new PhysicsBody { Orientation = entity.Rotation };
|
||||
RemotePhysicsBodyInitializer.Initialize(created, incarnation);
|
||||
created.SnapToCell(
|
||||
staticPosition.LandblockId,
|
||||
entity.Position,
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ internal interface IDevToolsRuntimeFacts
|
|||
internal sealed class DevToolsRuntimeFacts : IDevToolsRuntimeFacts
|
||||
{
|
||||
private readonly ILocalPlayerModeSource _mode;
|
||||
private readonly ILocalPlayerControllerSource _player;
|
||||
private readonly IRuntimeLocalPlayerControllerSource _player;
|
||||
private readonly CameraController _camera;
|
||||
private readonly ICanonicalWorldEntityCountSource _world;
|
||||
private readonly LiveEntityAnimationRuntimeView<LiveEntityAnimationState> _animations;
|
||||
|
|
@ -273,7 +273,7 @@ internal sealed class DevToolsRuntimeFacts : IDevToolsRuntimeFacts
|
|||
|
||||
public DevToolsRuntimeFacts(
|
||||
ILocalPlayerModeSource mode,
|
||||
ILocalPlayerControllerSource player,
|
||||
IRuntimeLocalPlayerControllerSource player,
|
||||
CameraController camera,
|
||||
ICanonicalWorldEntityCountSource world,
|
||||
LiveEntityAnimationRuntimeView<LiveEntityAnimationState> animations,
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ internal sealed class RuntimeWorldFrameRootSource : IWorldFrameRootSource
|
|||
private readonly CellVisibility _cells;
|
||||
private readonly ILocalPlayerModeSource _mode;
|
||||
private readonly IChaseCameraSource _chase;
|
||||
private readonly ILocalPlayerControllerSource _player;
|
||||
private readonly IRuntimeLocalPlayerControllerSource _player;
|
||||
private readonly LiveWorldOriginState _origin;
|
||||
|
||||
public RuntimeWorldFrameRootSource(
|
||||
|
|
@ -226,7 +226,7 @@ internal sealed class RuntimeWorldFrameRootSource : IWorldFrameRootSource
|
|||
CellVisibility cells,
|
||||
ILocalPlayerModeSource mode,
|
||||
IChaseCameraSource chase,
|
||||
ILocalPlayerControllerSource player,
|
||||
IRuntimeLocalPlayerControllerSource player,
|
||||
LiveWorldOriginState origin)
|
||||
{
|
||||
_physics = physics ?? throw new ArgumentNullException(nameof(physics));
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ internal sealed class WorldSceneDiagnosticsController : IWorldSceneDiagnostics
|
|||
private readonly DebugLineRenderer? _lines;
|
||||
private readonly PhysicsEngine _physics;
|
||||
private readonly ILocalPlayerModeSource _mode;
|
||||
private readonly ILocalPlayerControllerSource _player;
|
||||
private readonly IRuntimeLocalPlayerControllerSource _player;
|
||||
private readonly DebugVmRenderFactsPublisher _debugVm;
|
||||
private readonly bool _debugVmConsumerActive;
|
||||
private int _debugDrawLogCount;
|
||||
|
|
@ -72,7 +72,7 @@ internal sealed class WorldSceneDiagnosticsController : IWorldSceneDiagnostics
|
|||
DebugLineRenderer? lines,
|
||||
PhysicsEngine physics,
|
||||
ILocalPlayerModeSource mode,
|
||||
ILocalPlayerControllerSource player,
|
||||
IRuntimeLocalPlayerControllerSource player,
|
||||
DebugVmRenderFactsPublisher debugVm,
|
||||
bool debugVmConsumerActive)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -55,12 +55,12 @@ internal interface IWorldScenePViewDiagnosticSource
|
|||
internal sealed class RuntimeWorldScenePViewDiagnosticSource :
|
||||
IWorldScenePViewDiagnosticSource
|
||||
{
|
||||
private readonly ILocalPlayerControllerSource _player;
|
||||
private readonly IRuntimeLocalPlayerControllerSource _player;
|
||||
private readonly PhysicsEngine _physics;
|
||||
private readonly CellVisibility _visibility;
|
||||
|
||||
public RuntimeWorldScenePViewDiagnosticSource(
|
||||
ILocalPlayerControllerSource player,
|
||||
IRuntimeLocalPlayerControllerSource player,
|
||||
PhysicsEngine physics,
|
||||
CellVisibility visibility)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue