Space Engineers
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
Sandbox.Engine.Platform.Game Class Referenceabstract

The game. More...

Inheritance diagram for Sandbox.Engine.Platform.Game:
Sandbox.MySandboxGame Sandbox.MySandboxExternal SpaceEngineers.Game.SpaceEngineersGame SpaceEngineers.Game.SpaceEngineersGame

Public Member Functions

 Game ()
 Initializes a new instance of the Game class. More...
 
void SetNextFrameDelayDelta (int delta)
 
void Exit ()
 Exits the game. More...
 
void RunSingleFrame ()
 

Public Attributes

long FrameTimeTicks
 

Static Public Attributes

static bool IsDedicated = false
 
static bool IsPirated = false
 
static bool IgnoreLastSession = false
 
static IPEndPoint ConnectToServer = null
 
static bool EnableSimSpeedLocking = false
 

Protected Member Functions

void RunLoop ()
 Updates the game's clock and calls Update More...
 
abstract void PrepareForDraw ()
 
abstract void LoadData_UpdateThread ()
 
abstract void UnloadData_UpdateThread ()
 
virtual void Update ()
 Reference page contains links to related conceptual articles. More...
 

Protected Attributes

readonly MyGameTimer m_gameTimer = new MyGameTimer()
 

Properties

MyTimeSpan DrawTime [get]
 
MyTimeSpan UpdateTime [get]
 
MyTimeSpan SimulationTime [get]
 
double TimerMultiplier [get, set]
 
Thread UpdateThread [get, protected set]
 
Thread DrawThread [get, protected set]
 
static float SimulationRatio [get]
 
bool IsActive [get]
 Gets a value indicating whether this instance is active. More...
 
bool IsRunning [get]
 Gets a value indicating whether is running. More...
 
bool IsFirstUpdateDone [get]
 
bool EnableMaxSpeed [get, set]
 

Events

Action OnGameExit
 

Detailed Description

The game.

Definition at line 32 of file Game.cs.

Constructor & Destructor Documentation

Sandbox.Engine.Platform.Game.Game ( )
inline

Initializes a new instance of the Game class.

Definition at line 123 of file Game.cs.

Member Function Documentation

void Sandbox.Engine.Platform.Game.Exit ( )
inline

Exits the game.

Definition at line 176 of file Game.cs.

abstract void Sandbox.Engine.Platform.Game.LoadData_UpdateThread ( )
protectedpure virtual

Implemented in Sandbox.MySandboxGame.

abstract void Sandbox.Engine.Platform.Game.PrepareForDraw ( )
protectedpure virtual

Implemented in Sandbox.MySandboxGame.

void Sandbox.Engine.Platform.Game.RunLoop ( )
inlineprotected

Updates the game's clock and calls Update

Definition at line 186 of file Game.cs.

void Sandbox.Engine.Platform.Game.RunSingleFrame ( )
inline

Definition at line 207 of file Game.cs.

void Sandbox.Engine.Platform.Game.SetNextFrameDelayDelta ( int  delta)
inline

Definition at line 168 of file Game.cs.

abstract void Sandbox.Engine.Platform.Game.UnloadData_UpdateThread ( )
protectedpure virtual

Implemented in Sandbox.MySandboxGame.

virtual void Sandbox.Engine.Platform.Game.Update ( )
inlineprotectedvirtual

Reference page contains links to related conceptual articles.

Parameters
gameTimeTime passed since the last call to Update.

Reimplemented in Sandbox.MySandboxGame, and Sandbox.MySandboxExternal.

Definition at line 370 of file Game.cs.

Member Data Documentation

IPEndPoint Sandbox.Engine.Platform.Game.ConnectToServer = null
static

Definition at line 39 of file Game.cs.

bool Sandbox.Engine.Platform.Game.EnableSimSpeedLocking = false
static

Definition at line 40 of file Game.cs.

long Sandbox.Engine.Platform.Game.FrameTimeTicks

Definition at line 105 of file Game.cs.

bool Sandbox.Engine.Platform.Game.IgnoreLastSession = false
static

Definition at line 38 of file Game.cs.

bool Sandbox.Engine.Platform.Game.IsDedicated = false
static

Definition at line 36 of file Game.cs.

bool Sandbox.Engine.Platform.Game.IsPirated = false
static

Definition at line 37 of file Game.cs.

readonly MyGameTimer Sandbox.Engine.Platform.Game.m_gameTimer = new MyGameTimer()
protected

Definition at line 43 of file Game.cs.

Property Documentation

Thread Sandbox.Engine.Platform.Game.DrawThread
getprotected set

Definition at line 103 of file Game.cs.

MyTimeSpan Sandbox.Engine.Platform.Game.DrawTime
get

Definition at line 68 of file Game.cs.

bool Sandbox.Engine.Platform.Game.EnableMaxSpeed
getset

Definition at line 157 of file Game.cs.

bool Sandbox.Engine.Platform.Game.IsActive
get

Gets a value indicating whether this instance is active.

true if this instance is active; otherwise, false.

Definition at line 147 of file Game.cs.

bool Sandbox.Engine.Platform.Game.IsFirstUpdateDone
get

Definition at line 154 of file Game.cs.

bool Sandbox.Engine.Platform.Game.IsRunning
get

Gets a value indicating whether is running.

Definition at line 152 of file Game.cs.

float Sandbox.Engine.Platform.Game.SimulationRatio
staticget

Definition at line 111 of file Game.cs.

MyTimeSpan Sandbox.Engine.Platform.Game.SimulationTime
get

Definition at line 85 of file Game.cs.

double Sandbox.Engine.Platform.Game.TimerMultiplier
getset

Definition at line 93 of file Game.cs.

Thread Sandbox.Engine.Platform.Game.UpdateThread
getprotected set

Definition at line 102 of file Game.cs.

MyTimeSpan Sandbox.Engine.Platform.Game.UpdateTime
get

Definition at line 77 of file Game.cs.

Event Documentation

Action Sandbox.Engine.Platform.Game.OnGameExit

Definition at line 137 of file Game.cs.


The documentation for this class was generated from the following file: