Game¶
-
class
Game
: System.Object, System.IDisposable -
readonly LaunchParameters
LaunchParameters
-
readonly GameComponentCollection
Components
-
System.TimeSpan
InactiveSleepTime
-
System.TimeSpan
MaxElapsedTime
The maximum amount of time we will frameskip over and only perform Update calls with no Draw calls. MonoGame extension.
-
readonly bool
IsActive
-
bool
IsMouseVisible
-
System.TimeSpan
TargetElapsedTime
-
bool
IsFixedTimeStep
-
readonly GameServiceContainer
Services
-
ContentManager
Content
-
readonly GraphicsDevice
GraphicsDevice
-
readonly GameWindow
Window
-
void
Log
(string Message) Parameters: - Message (string) –
-
public void
Dispose
()
-
Game
get_Instance
()
-
bool
get_Initialized
()
-
public void
add_Activated
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_Activated
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_Deactivated
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_Deactivated
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_Disposed
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_Disposed
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
add_Exiting
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
remove_Exiting
(System.EventHandler<EventArgs> value) Parameters: - value (System.EventHandler<EventArgs>) –
-
public void
Exit
()
-
public void
ResetElapsedTime
()
-
public void
SuppressDraw
()
-
public void
RunOneFrame
()
-
public void
Run
()
-
public void
Run
(GameRunBehavior runBehavior) Parameters: - runBehavior (Microsoft.Xna.Framework.GameRunBehavior) –
-
public void
Tick
()
-
void
applyChanges
(GraphicsDeviceManager manager) Parameters: - manager (Microsoft.Xna.Framework.GraphicsDeviceManager) –
-
void
DoUpdate
(GameTime gameTime) Parameters: - gameTime (Microsoft.Xna.Framework.GameTime) –
-
void
DoDraw
(GameTime gameTime) Parameters: - gameTime (Microsoft.Xna.Framework.GameTime) –
-
void
DoInitialize
()
-
void
DoExiting
()
-
GraphicsDeviceManager
get_graphicsDeviceManager
()
-
void
set_graphicsDeviceManager
(GraphicsDeviceManager value) Parameters: - value (Microsoft.Xna.Framework.GraphicsDeviceManager) –
-
readonly LaunchParameters