1using System.Windows.Forms;
12 private readonly Control _renderSurface;
13 private readonly Action<Scene, bool> _bindScene;
23 _renderSurface = renderSurface ??
throw new ArgumentNullException(nameof(renderSurface));
24 _bindScene = bindScene ??
throw new ArgumentNullException(nameof(bindScene));
32 Engine.Instance.InitializeWinFormsAudioFormats();
41 Engine.Instance.InitializeWinFormsKeyboardAdapter(_renderSurface);
50 Engine.Instance.InitializeWinFormsMouseAdapter(_renderSurface);
60 Engine.InitializeXInputGamepadManager();
82 Engine.Instance.InitializeWinFormsTouchAdapter(_renderSurface);
83 Engine.Input.TouchEventPoller?.StartMonitoringTouch();
96 throw new InvalidOperationException(
97 $
"{nameof(BindScene)} cannot be called before {nameof(Scene)} has been created.");
99 _bindScene(
Scene,
false);
Provides a base class for hosting and managing the lifecycle of a Gondwana game application.
Scene? Scene
Gets the current active scene.
Engine Engine
Gets the singleton instance of the Gondwana engine.