refactor(runtime): extract the live object frame
This commit is contained in:
parent
99a3e819c4
commit
4e4aac2c5a
27 changed files with 1217 additions and 371 deletions
27
tests/AcDream.App.Tests/FramePhaseTestDoubles.cs
Normal file
27
tests/AcDream.App.Tests/FramePhaseTestDoubles.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using AcDream.App.Update;
|
||||
|
||||
namespace AcDream.App.Tests;
|
||||
|
||||
internal sealed class TestLiveObjectFramePhase(Action<float> tick)
|
||||
: ILiveObjectFramePhase
|
||||
{
|
||||
public void Tick(float deltaSeconds) => tick(deltaSeconds);
|
||||
}
|
||||
|
||||
internal sealed class TestLiveSessionFramePhase(Action tick)
|
||||
: ILiveSessionFramePhase
|
||||
{
|
||||
public void Tick() => tick();
|
||||
}
|
||||
|
||||
internal sealed class TestPostNetworkCommandFramePhase(Action run)
|
||||
: IPostNetworkCommandFramePhase
|
||||
{
|
||||
public void RunPostNetworkCommandPhase() => run();
|
||||
}
|
||||
|
||||
internal sealed class TestLiveSpatialReconcilePhase(Action reconcile)
|
||||
: ILiveSpatialReconcilePhase
|
||||
{
|
||||
public void Reconcile() => reconcile();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue