Interface IGame
public interface IGameProperties
Content
Gets or sets the ContentManager.
ContentManager Content { get; }Property Value
- ContentManager
- The content manager. 
Context
Gets the game context.
GameContext Context { get; }Property Value
- GameContext
- The game context. 
DrawInterpolationFactor
Gets the draw interpolation factor, which is (UpdateTime - DrawTime) / TargetElapsedTime. If IsFixedTimeStep is false, it will be 0 as UpdateTime and DrawTime will be equal.
float DrawInterpolationFactor { get; }Property Value
- float
- The draw interpolation factor. 
DrawTime
Gets the current draw time.
GameTime DrawTime { get; }Property Value
- GameTime
- The current draw time. 
GameSystems
Gets the game components registered by this game.
GameSystemCollection GameSystems { get; }Property Value
- GameSystemCollection
- The game components. 
GraphicsContext
Gets the graphics context.
GraphicsContext GraphicsContext { get; }Property Value
- GraphicsContext
- The graphics context. 
GraphicsDevice
Gets the graphics device.
GraphicsDevice GraphicsDevice { get; }Property Value
- GraphicsDevice
- The graphics device. 
InactiveSleepTime
Gets or sets the inactive sleep time.
TimeSpan InactiveSleepTime { get; set; }Property Value
- TimeSpan
- The inactive sleep time. 
IsActive
Gets a value indicating whether this instance is active.
bool IsActive { get; }Property Value
- bool
- trueif this instance is active; otherwise,- false.
IsDrawDesynchronized
Gets or sets a value indicating whether draw can happen as fast as possible, even when IsFixedTimeStep is set.
bool IsDrawDesynchronized { get; set; }Property Value
- bool
- trueif this instance allows desychronized drawing; otherwise,- false.
IsFixedTimeStep
Gets or sets a value indicating whether this instance is fixed time step.
bool IsFixedTimeStep { get; set; }Property Value
- bool
- trueif this instance is fixed time step; otherwise,- false.
IsMouseVisible
Gets or sets a value indicating whether the mouse should be visible.
bool IsMouseVisible { get; set; }Property Value
- bool
- trueif the mouse should be visible; otherwise,- false.
IsRunning
Gets a value indicating whether is running.
bool IsRunning { get; }Property Value
LaunchParameters
Gets the launch parameters.
LaunchParameters LaunchParameters { get; }Property Value
- LaunchParameters
- The launch parameters. 
Services
Gets the service container.
ServiceRegistry Services { get; }Property Value
- ServiceRegistry
- The service container. 
TargetElapsedTime
Gets or sets the target elapsed time.
TimeSpan TargetElapsedTime { get; set; }Property Value
- TimeSpan
- The target elapsed time. 
UpdateTime
Gets the current game time.
GameTime UpdateTime { get; }Property Value
- GameTime
- The current game time. 
Window
Gets the abstract window.
GameWindow Window { get; }Property Value
- GameWindow
- The window. 
Events
Activated
Occurs when [activated].
event EventHandler<EventArgs> ActivatedEvent Type
Deactivated
Occurs when [deactivated].
event EventHandler<EventArgs> DeactivatedEvent Type
Exiting
Occurs when [exiting].
event EventHandler<EventArgs> ExitingEvent Type
WindowCreated
Occurs when [window created].
event EventHandler<EventArgs> WindowCreated