Skip to content

SadConsoleGameComponent Class

A game component that handles updating, input, and rendering of SadConsole.

C#
public class SadConsoleGameComponent : DrawableGameComponent, IGameComponent, IUpdateable, IDisposable, IDrawable

Inheritance object → Microsoft.Xna.Framework.GameComponent → Microsoft.Xna.Framework.DrawableGameComponent

Implements Microsoft.Xna.Framework.IGameComponent, Microsoft.Xna.Framework.IUpdateable, IDisposable, Microsoft.Xna.Framework.IDrawable

C#
public SadConsoleGameComponent(Game game)

game Microsoft.Xna.Framework.Game

C#
public override void Initialize()

Draws the SadConsole frame through draw calls when SadConsole.Settings.DoDraw is true.

C#
public override void Draw(GameTime gameTime)

gameTime Microsoft.Xna.Framework.GameTime
Time between drawing frames.

Updates the SadConsole game objects and handles input. Only runs when SadConsole.Settings.DoUpdate is true.

C#
public override void Update(GameTime gameTime)

gameTime Microsoft.Xna.Framework.GameTime