Table of Contents

Interface IGamePlatform

Namespace
Stride.Games
Assembly
Stride.Games.dll

Interface for a game platform (OS, machine dependent).

public interface IGamePlatform

Properties

DefaultAppDirectory

Gets the default app directory.

string DefaultAppDirectory { get; }

Property Value

string

The default app directory.

MainWindow

Gets the main window.

GameWindow MainWindow { get; }

Property Value

GameWindow

The main window.

Methods

CreateWindow(GameContext)

Creates the a new GameWindow. See remarks.

GameWindow CreateWindow(GameContext gameContext = null)

Parameters

gameContext GameContext

The window context. See remarks.

Returns

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).