C# Class ParticleEditorPlugin.ParticlePreviewer

Inheritance: Microsoft.Xna.Framework.Game
Mostra file Open project: vchelaru/FlatRedBall

Public Methods

Method Description
DisplayEmitter ( EmitterSave emitterSave, string absolutePath ) : void

Disposes of the currently displaying emitter and creates a new one from the supplied save object. Requires an absolute path so it knows where to load sprites and other paths from.

TryRun ( ) : void

Attempts to run the game instance or wraps the exception with an additional message on failure.

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void

Performs FlatRedBall drawing services.

Initialize ( ) : void

Performs FlatRedBall initialization tasks.

OnExiting ( object sender, EventArgs args ) : void

Updates the previewer state that the game is not running.

Update ( GameTime gameTime ) : void

Updates the game each cycle

Private Methods

Method Description
ParticlePreviewer ( ) : System

Private constructor, only one of these should be launchable

Method Details

DisplayEmitter() public method

Disposes of the currently displaying emitter and creates a new one from the supplied save object. Requires an absolute path so it knows where to load sprites and other paths from.
public DisplayEmitter ( EmitterSave emitterSave, string absolutePath ) : void
emitterSave FlatRedBall.Content.Particle.EmitterSave The emitter save to inflate into an emitter runtime object.
absolutePath string The base path to use when loading sprite textures or other resources.
return void

Draw() protected method

Performs FlatRedBall drawing services.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Container for information about time elapsed since last update.
return void

Initialize() protected method

Performs FlatRedBall initialization tasks.
protected Initialize ( ) : void
return void

OnExiting() protected method

Updates the previewer state that the game is not running.
protected OnExiting ( object sender, EventArgs args ) : void
sender object The object that sent this request
args System.EventArgs
return void

TryRun() public method

Attempts to run the game instance or wraps the exception with an additional message on failure.
public TryRun ( ) : void
return void

Update() protected method

Updates the game each cycle
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Container for information about time elapsed since last update.
return void