Table of Contents

Class VivariumGame

Namespace
Vivarium
Assembly
Vivarium.dll
public class VivariumGame : Game, IDisposable
Inheritance
Game
VivariumGame
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.LaunchParameters
Game.Components
Game.InactiveSleepTime
Game.MaxElapsedTime
Game.IsActive
Game.IsMouseVisible
Game.TargetElapsedTime
Game.IsFixedTimeStep
Game.Services
Game.Content
Game.GraphicsDevice
Game.Window
Game.Activated
Game.Deactivated
Game.Disposed
Game.Exiting

Constructors

VivariumGame()

public VivariumGame()

Properties

FramesPerSecond

public static double FramesPerSecond { get; }

Property Value

double

NextEntityId

public static long NextEntityId { get; set; }

Property Value

long

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

gameTime GameTime

A 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

gameTime GameTime

The elapsed time since the last call to Microsoft.Xna.Framework.Game.Update(Microsoft.Xna.Framework.GameTime).