IGamePlatform Interface
Namespace: Stride.GamesAssembly: Stride.Games.dll
Interface for a game platform (OS, machine dependent).
public interface IGamePlatform
| Name | Description | |
|---|---|---|
| Properties | ||
| DefaultAppDirectory | Gets the default app directory. |
|
| MainWindow | Gets the main window. |
|
| Methods | ||
| CreateWindow(GameContext) | Creates the a new GameWindow. See remarks. |
|
Properties
DefaultAppDirectory
Gets the default app directory.
string DefaultAppDirectory { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The default app directory. |
MainWindow
Gets the main window.
GameWindow MainWindow { get; }
Property Value
| Type | Description |
|---|---|
| GameWindow | The main window. |
Methods
CreateWindow(GameContext)
Creates the a new GameWindow. See remarks.
GameWindow CreateWindow(GameContext gameContext = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GameContext | gameContext | The window context. See remarks. |
Returns
| Type | Description |
|---|---|
| GameWindow | A new game window. |
Remarks
This is currently only supported on Windows Desktop. The window context supported on windows is a subclass of System.Windows.Forms.Control (or null and a default GameForm will be created).