Show / Hide Table of Contents

Class Game.SadConsoleGameComponent

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

Inheritance
object
GameComponent
DrawableGameComponent
Game.SadConsoleGameComponent
Implements
IGameComponent
IUpdateable
IDisposable
IDrawable
Inherited Members
DrawableGameComponent.Initialize()
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 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
IDisposable
Microsoft.Xna.Framework.IDrawable
In this article

Back to top

Back to top Generated by DocFX