C# Class Artemis.Engine.ArtemisEngine

Inheritance: IDisposable
Datei anzeigen Open project: ArtemisEngine/Artemis-Engine Class Usage Examples

Private Properties

Property Type Description
AddOptions void
ArtemisEngine System
Dispose void
Initialize void
InitializeRenderPipeline void
Render void
Run void
Update void
_RegisterMultiforms void

Public Methods

Method Description
Begin ( System.Action initializer ) : void

Begin the game.

Dispose ( ) : void

Clean up and dispose this AssetGroup object.

RegisterMultiforms ( ) : void

Register multiforms to the engine.

Setup ( string constantsFileName, System.Action setupAction ) : void

Setup the engine. This loads the game constants from the given constants file and initializes the user options. NOTE: This does NOT actually load the user options. That happens after calling Begin.

Setup ( string constantsFileName, string optionFileName, System.Action setupAction ) : void

Setup the engine. This loads the game constants from the given constants file and initializes the user options. NOTE: This does NOT actually load the user options. That happens after calling Begin.

StartWith ( string multiformName ) : void

Indicate what multiform to construct upon game startup.

Private Methods

Method Description
AddOptions ( ) : void
ArtemisEngine ( System.Action initializer ) : System
Dispose ( bool disposing ) : void

Clean up and dispose this AssetGroup object.

Initialize ( ) : void

Actually call the initializer.

InitializeRenderPipeline ( SpriteBatch sb, GraphicsDevice gd, GraphicsDeviceManager gdm ) : void

Initialize the game's render pipeline. This has to be called in gameKernel.Initialize because that's where the spriteBatch has to be created.

Render ( ) : void

The main rendering loop, which gets called after Update.

Run ( ) : void
Update ( GameTime gameTime ) : void

The main game loop.

_RegisterMultiforms ( object multiforms ) : void

Register Multiform classes to the engine's MultiformManager.

Method Details

Begin() public static method

Begin the game.
public static Begin ( System.Action initializer ) : void
initializer System.Action
return void

Dispose() public method

Clean up and dispose this AssetGroup object.
public Dispose ( ) : void
return void

RegisterMultiforms() public static method

Register multiforms to the engine.
public static RegisterMultiforms ( ) : void
return void

Setup() public static method

Setup the engine. This loads the game constants from the given constants file and initializes the user options. NOTE: This does NOT actually load the user options. That happens after calling Begin.
public static Setup ( string constantsFileName, System.Action setupAction ) : void
constantsFileName string
setupAction System.Action
return void

Setup() public static method

Setup the engine. This loads the game constants from the given constants file and initializes the user options. NOTE: This does NOT actually load the user options. That happens after calling Begin.
public static Setup ( string constantsFileName, string optionFileName, System.Action setupAction ) : void
constantsFileName string
optionFileName string
setupAction System.Action
return void

StartWith() public static method

Indicate what multiform to construct upon game startup.
public static StartWith ( string multiformName ) : void
multiformName string
return void