Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IGamePlatform.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Paradox.Games
4 {
5  /// <summary>
6  /// Interface for a game platform (OS, machine dependent).
7  /// </summary>
8  public interface IGamePlatform
9  {
10  /// <summary>
11  /// Gets the default app directory.
12  /// </summary>
13  /// <value>The default app directory.</value>
14  string DefaultAppDirectory { get; }
15 
16  /// <summary>
17  /// Gets the main window.
18  /// </summary>
19  /// <value>The main window.</value>
20  GameWindow MainWindow { get; }
21 
22  /// <summary>
23  /// Creates the a new <see cref="GameWindow"/>. See remarks.
24  /// </summary>
25  /// <param name="gameContext">The window context. See remarks.</param>
26  /// <returns>A new game window.</returns>
27  /// <remarks>
28  /// 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).
29  /// </remarks>
30  GameWindow CreateWindow(GameContext gameContext = null);
31  }
32 }
Interface for a game platform (OS, machine dependent).
Definition: IGamePlatform.cs:8
Contains context used to render the game (Control for WinForm, a DrawingSurface for WP8...
Definition: GameContext.cs:31