Show / Hide Table of Contents

Class SadConsoleGameComponent

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

Inheritance
object
GameComponent
DrawableGameComponent
SadConsoleGameComponent
Implements
IGameComponent
IUpdateable
IDisposable
IDrawable
Inherited Members
DrawableGameComponent.Dispose(bool)
DrawableGameComponent.LoadContent()
DrawableGameComponent.UnloadContent()
DrawableGameComponent.OnVisibleChanged(object, EventArgs)
DrawableGameComponent.OnDrawOrderChanged(object, EventArgs)
DrawableGameComponent.GraphicsDevice
DrawableGameComponent.DrawOrder
DrawableGameComponent.Visible
DrawableGameComponent.DrawOrderChanged
DrawableGameComponent.VisibleChanged
GameComponent.OnUpdateOrderChanged(object, EventArgs)
GameComponent.OnEnabledChanged(object, EventArgs)
GameComponent.Dispose()
GameComponent.Game
GameComponent.Enabled
GameComponent.UpdateOrder
GameComponent.EnabledChanged
GameComponent.UpdateOrderChanged
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 SadConsoleGameComponent : DrawableGameComponent, IGameComponent, IUpdateable, IDisposable, IDrawable

Constructors

SadConsoleGameComponent(Game)

Declaration
public SadConsoleGameComponent(Game game)
Parameters
Type Name Description
Game game

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)

Initialize()

Declaration
public override void Initialize()
Overrides
Microsoft.Xna.Framework.DrawableGameComponent.Initialize()

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
IDisposable
Microsoft.Xna.Framework.IDrawable

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX