Class VivariumGame
- Namespace
- Vivarium
- Assembly
- Vivarium.dll
public class VivariumGame : Game, IDisposable
- Inheritance
-
GameVivariumGame
- Implements
- Inherited Members
-
Game.Dispose()Game.Exit()Game.ResetElapsedTime()Game.SuppressDraw()Game.RunOneFrame()Game.Run()Game.Run(GameRunBehavior)Game.Tick()Game.BeginDraw()Game.EndDraw()Game.BeginRun()Game.EndRun()Game.UnloadContent()Game.LaunchParametersGame.ComponentsGame.InactiveSleepTimeGame.MaxElapsedTimeGame.IsActiveGame.IsMouseVisibleGame.TargetElapsedTimeGame.IsFixedTimeStepGame.ServicesGame.ContentGame.GraphicsDeviceGame.WindowGame.ActivatedGame.DeactivatedGame.DisposedGame.Exiting
Constructors
VivariumGame()
public VivariumGame()
Properties
FramesPerSecond
public static double FramesPerSecond { get; }
Property Value
NextEntityId
public static long NextEntityId { get; set; }
Property Value
Methods
Draw(GameTime)
Called when the game should draw a frame.
Draws the Microsoft.Xna.Framework.DrawableGameComponent instances attached to this game. Override this to render your game.
protected override void Draw(GameTime gameTime)
Parameters
gameTimeGameTimeA Microsoft.Xna.Framework.GameTime instance containing the elapsed time since the last call to Microsoft.Xna.Framework.Game.Draw(Microsoft.Xna.Framework.GameTime) and the total time elapsed since the game started.
Initialize()
Override this to initialize the game and load any needed non-graphical resources.
Initializes attached Microsoft.Xna.Framework.GameComponent instances and calls Microsoft.Xna.Framework.Game.LoadContent().
protected override void Initialize()
LoadContent()
Override this to load graphical resources required by the game.
protected override void LoadContent()
Update(GameTime)
Called when the game should update.
Updates the Microsoft.Xna.Framework.GameComponent instances attached to this game. Override this to update your game.
protected override void Update(GameTime gameTime)
Parameters
gameTimeGameTimeThe elapsed time since the last call to Microsoft.Xna.Framework.Game.Update(Microsoft.Xna.Framework.GameTime).