Class Game.SadConsoleGameComponent
A game component that handles updating, input, and rendering of SadConsole.
Inherited Members
DrawableGameComponent.Initialize()
DrawableGameComponent.LoadContent()
DrawableGameComponent.UnloadContent()
DrawableGameComponent.GraphicsDevice
DrawableGameComponent.DrawOrder
DrawableGameComponent.Visible
DrawableGameComponent.DrawOrderChanged
DrawableGameComponent.VisibleChanged
GameComponent.Dispose()
GameComponent.Game
GameComponent.Enabled
GameComponent.UpdateOrder
GameComponent.EnabledChanged
GameComponent.UpdateOrderChanged
Namespace: SadConsole.Host
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class Game.SadConsoleGameComponent : DrawableGameComponent, IGameComponent, IUpdateable, IDisposable, IDrawable
Methods
Draw(GameTime)
Draws the SadConsole frame through draw calls when DoDraw is true.
Declaration
public override void Draw(GameTime gameTime)
Parameters
Type | Name | Description |
---|---|---|
GameTime | gameTime | Time between drawing frames. |
Overrides
Microsoft.Xna.Framework.DrawableGameComponent.Draw(Microsoft.Xna.Framework.GameTime)
Update(GameTime)
Updates the SadConsole game objects and handles input. Only runs when DoUpdate is true.
Declaration
public override void Update(GameTime gameTime)
Parameters
Type | Name | Description |
---|---|---|
GameTime | gameTime |
Overrides
Microsoft.Xna.Framework.GameComponent.Update(Microsoft.Xna.Framework.GameTime)
Implements
Microsoft.Xna.Framework.IGameComponent
Microsoft.Xna.Framework.IUpdateable
Microsoft.Xna.Framework.IDrawable