Table of Contents

Namespace BSGameLib.Game.Components

Classes

Component

A game object with an Id, updated by the game each frame. Two components are equal when they have the same type and Id.

DrawableComponent

A Component that draws itself each frame. Override Draw(IGameTime) to draw, and LoadContent() and UnloadContent() to load and release assets.

FrameRateCounter

Shows the frames drawn per second (FPS) and updates per second (UPS) as text, refreshed once a second.

GcCounterOverlay

Shows the garbage collector's collection counts for generations 0 to 2, and the change in managed memory, refreshed once a second.

RenderTargetComponent

A component that draws itself into its own IRenderTarget, then presents that target as a sprite in its parent's render pass. Subclasses implement DrawSelf(IGameTime).

Timer

Calls ElapsedAction each time Interval has passed while the timer is running.

Interfaces

IGetTicks

The clock a Timer measures its interval against.