SceneManager.LoadInitialSceneAsync(Func, CancellationToken) Method
Definition¶
Namespace: Brine2D.Engine
Blocking initial scene load used exclusively by GameApplication before the game loop starts. Not part of the public ISceneManager contract.
internal System.Threading.Tasks.Task LoadInitialSceneAsync<TScene>(System.Func<System.IServiceProvider,TScene>? sceneFactory, System.Threading.CancellationToken cancellationToken)
where TScene : Brine2D.Engine.Scene;
Type parameters¶
TScene
Parameters¶
sceneFactory System.Func<System.IServiceProvider,TScene>
cancellationToken System.Threading.CancellationToken