Show / Hide Table of Contents

Class Game

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

Inheritance
object
Game
Game
Implements
IDisposable
Inherited Members
Game.Dispose()
Game.Dispose(bool)
Game.Exit()
Game.ResetElapsedTime()
Game.SuppressDraw()
Game.RunOneFrame()
Game.Run()
Game.Run(GameRunBehavior)
Game.Tick()
Game.BeginDraw()
Game.EndDraw()
Game.BeginRun()
Game.EndRun()
Game.LoadContent()
Game.UnloadContent()
Game.Draw(GameTime)
Game.Update(GameTime)
Game.OnExiting(object, ExitingEventArgs)
Game.OnActivated(object, EventArgs)
Game.OnDeactivated(object, EventArgs)
Game.LaunchParameters
Game.Components
Game.InactiveSleepTime
Game.MaxElapsedTime
Game.IsActive
Game.IsMouseVisible
Game.TargetElapsedTime
Game.IsFixedTimeStep
Game.Services
Game.Content
Game.GraphicsDevice
Game.Window
Game.Activated
Game.Deactivated
Game.Disposed
Game.Exiting
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Host
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class Game : Game, IDisposable

Constructors

Game()

Creates the new MonoGame game object.

Declaration
public Game()

Properties

WindowHeight

The current game window height.

Declaration
public int WindowHeight { get; }
Property Value
Type Description
int

WindowWidth

The current game window width.

Declaration
public int WindowWidth { get; }
Property Value
Type Description
int

Methods

Initialize()

Declaration
protected override void Initialize()
Overrides
Microsoft.Xna.Framework.Game.Initialize()

Events

WindowResized

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

Declaration
public event EventHandler WindowResized
Event Type
Type Description
EventHandler

Implements

IDisposable

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX