refactor(streaming): extract the update frame
This commit is contained in:
parent
4e4aac2c5a
commit
0bc9fda9de
13 changed files with 912 additions and 184 deletions
|
|
@ -80,6 +80,7 @@ public sealed class GameWindowLiveEntityCompositionTests
|
|||
[InlineData(typeof(AcDream.App.Update.LiveObjectFrameController))]
|
||||
[InlineData(typeof(AcDream.App.Update.LiveEffectFrameController))]
|
||||
[InlineData(typeof(AcDream.App.Update.LiveSpatialPresentationReconciler))]
|
||||
[InlineData(typeof(AcDream.App.Streaming.StreamingFrameController))]
|
||||
[InlineData(typeof(LiveEntityAnimationPresenter))]
|
||||
[InlineData(typeof(LiveAnimationPresentationContext))]
|
||||
[InlineData(typeof(StaticLiveRootCommitter))]
|
||||
|
|
@ -106,6 +107,7 @@ public sealed class GameWindowLiveEntityCompositionTests
|
|||
typeof(AcDream.App.Update.LiveObjectFrameController),
|
||||
typeof(AcDream.App.Update.LiveEffectFrameController),
|
||||
typeof(AcDream.App.Update.LiveSpatialPresentationReconciler),
|
||||
typeof(AcDream.App.Streaming.StreamingFrameController),
|
||||
typeof(LiveEntityAnimationScheduler),
|
||||
typeof(LiveEntityAnimationPresenter),
|
||||
typeof(LiveAnimationPresentationContext),
|
||||
|
|
@ -167,6 +169,20 @@ public sealed class GameWindowLiveEntityCompositionTests
|
|||
Assert.Contains("new AcDream.App.Physics.DatProjectileSetupResolver", source);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SessionReset_ClosesEveryStreamingReadinessOwner()
|
||||
{
|
||||
string source = File.ReadAllText(Path.Combine(
|
||||
FindRepoRoot(), "src", "AcDream.App", "Rendering", "GameWindow.cs"));
|
||||
|
||||
Assert.Contains("_localPlayerMode.ResetSession();", source, StringComparison.Ordinal);
|
||||
Assert.Contains(
|
||||
"_liveEntityNetworkUpdates?.ResetSessionState();",
|
||||
source,
|
||||
StringComparison.Ordinal);
|
||||
Assert.Contains("_liveWorldOrigin.Reset();", source, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private static string FindRepoRoot()
|
||||
{
|
||||
DirectoryInfo? directory = new(AppContext.BaseDirectory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue