Skip to content

Game Class

A MonoGame Microsoft.Xna.Framework.Game instance that runs SadConsole.

C#
public class Game : Game, IDisposable

Inheritance object → Microsoft.Xna.Framework.Game

Implements IDisposable

Creates the new MonoGame game object.

C#
public Game()

The current game window width.

C#
public int WindowWidth { get; }

The current game window height.

C#
public int WindowHeight { get; }
C#
protected override void Initialize()

Raised when the window is resized and the render area has been calculated.

C#
public event EventHandler WindowResized

EventHandler