SadConsoleGameComponent Class
Definition
Section titled “Definition”A game component that handles updating, input, and rendering of SadConsole.
public class SadConsoleGameComponent : DrawableGameComponent, IGameComponent, IUpdateable, IDisposable, IDrawableInheritance object → Microsoft.Xna.Framework.GameComponent → Microsoft.Xna.Framework.DrawableGameComponent
Implements Microsoft.Xna.Framework.IGameComponent, Microsoft.Xna.Framework.IUpdateable, IDisposable, Microsoft.Xna.Framework.IDrawable
Constructors
Section titled “Constructors”SadConsoleGameComponent(Game)
Section titled “SadConsoleGameComponent(Game)”public SadConsoleGameComponent(Game game)Parameters
Section titled “Parameters”game Microsoft.Xna.Framework.Game
Methods
Section titled “Methods”Initialize()
Section titled “Initialize()”public override void Initialize()Draw(GameTime)
Section titled “Draw(GameTime)”Draws the SadConsole frame through draw calls when SadConsole.Settings.DoDraw is true.
public override void Draw(GameTime gameTime)Parameters
Section titled “Parameters”gameTime Microsoft.Xna.Framework.GameTime
Time between drawing frames.
Update(GameTime)
Section titled “Update(GameTime)”Updates the SadConsole game objects and handles input. Only runs when SadConsole.Settings.DoUpdate is true.
public override void Update(GameTime gameTime)Parameters
Section titled “Parameters”gameTime Microsoft.Xna.Framework.GameTime