refactor(app): close ordered startup composition
This commit is contained in:
parent
54244d31f1
commit
530b4bd8f5
16 changed files with 537 additions and 215 deletions
|
|
@ -693,6 +693,7 @@ internal sealed class RetailInteractionRetainedUiCompositionFactory
|
|||
|
||||
internal sealed class InteractionRetainedUiCompositionPhase
|
||||
: IInteractionUiCompositionPhase<
|
||||
GameWindowPlatformResult<GL, IInputContext>,
|
||||
HostInputCameraResult,
|
||||
ContentEffectsAudioResult,
|
||||
SettingsDevToolsResult,
|
||||
|
|
@ -805,16 +806,20 @@ internal sealed class InteractionRetainedUiCompositionPhase
|
|||
}
|
||||
|
||||
public InteractionRetainedUiResult Compose(
|
||||
GameWindowPlatformResult<GL, IInputContext> platform,
|
||||
HostInputCameraResult host,
|
||||
ContentEffectsAudioResult content,
|
||||
SettingsDevToolsResult settings,
|
||||
WorldRenderResult world)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(platform);
|
||||
ArgumentNullException.ThrowIfNull(host);
|
||||
ArgumentNullException.ThrowIfNull(content);
|
||||
ArgumentNullException.ThrowIfNull(settings);
|
||||
ArgumentNullException.ThrowIfNull(world);
|
||||
if (!ReferenceEquals(_dependencies.InputDispatcher, host.InputDispatcher)
|
||||
if (!ReferenceEquals(_dependencies.Gl, platform.Graphics)
|
||||
|| !ReferenceEquals(_dependencies.Input, platform.Input)
|
||||
|| !ReferenceEquals(_dependencies.InputDispatcher, host.InputDispatcher)
|
||||
|| !ReferenceEquals(_dependencies.Dats, content.Dats)
|
||||
|| !ReferenceEquals(_dependencies.MagicCatalog, content.MagicCatalog)
|
||||
|| !ReferenceEquals(_dependencies.TextureCache, world.Foundation.TextureCache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue