Метод | Описание | |
---|---|---|
AutoInitialize ( GraphicsDevice cGraphicsDevice, Microsoft.Xna.Framework.Content.ContentManager cContentManager, |
Function to Initialize the Particle System with default values. Particle system properties should not be set until after this is called, as they are likely to be reset to their default values.
|
|
InitializeParticleProperties ( DefaultSpriteParticle cParticle ) : void |
Example of how to create a Particle Initialization Function
|
|
LoadParticleSystem ( ) : void |
Load the Particle System Events and any other settings
|
|
ShotParticleSystem ( Microsoft.Xna.Framework.Game cGame, Vector2 initialPos, float rotation, Vector2 velocity ) : System |
Constructor
|
|
UpdateParticle ( DefaultSpriteParticle cParticle, Vector2 velocity ) : void |
Example of how to create a Particle Event Function
|
|
UpdateParticleEmmiter ( Vector2 shotPos, float rotation ) : void |
Example of how to create a Particle System Event Function
|
public AutoInitialize ( GraphicsDevice cGraphicsDevice, Microsoft.Xna.Framework.Content.ContentManager cContentManager, |
||
cGraphicsDevice | GraphicsDevice | The Graphics Device the Particle System should use |
cContentManager | Microsoft.Xna.Framework.Content.ContentManager | The Content Manager the Particle System should use to load resources |
cSpriteBatch | The Sprite Batch that the Sprite Particle System should use to draw its particles. /// If this is not initializing a Sprite particle system, or you want the particle system to use its own Sprite Batch, /// pass in null. | |
Результат | void |
public InitializeParticleProperties ( DefaultSpriteParticle cParticle ) : void | ||
cParticle | DefaultSpriteParticle | The Particle to be Initialized |
Результат | void |
public ShotParticleSystem ( Microsoft.Xna.Framework.Game cGame, Vector2 initialPos, float rotation, Vector2 velocity ) : System | ||
cGame | Microsoft.Xna.Framework.Game | Handle to the Game object being used. Pass in null for this /// parameter if not using a Game object. |
initialPos | Vector2 | |
rotation | float | |
velocity | Vector2 | |
Результат | System |
public UpdateParticle ( DefaultSpriteParticle cParticle, Vector2 velocity ) : void | ||
cParticle | DefaultSpriteParticle | The Particle to update |
velocity | Vector2 | |
Результат | void |
public UpdateParticleEmmiter ( Vector2 shotPos, float rotation ) : void | ||
shotPos | Vector2 | |
rotation | float | |
Результат | void |