OmegaEngine API
1.0.3
|
A set of information about a particle system as a whole More...
Public Member Functions | |
CpuParticlePreset | Clone () |
Creates a deep copy of the this particle system preset More... | |
Static Public Member Functions | |
static CpuParticlePreset | FromContent (string id) |
Loads a preset from an XML file via the ContentManager. More... | |
Public Attributes | |
bool | InfiniteLifetime1 => LowerParameters1.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters1.LifeTime == CpuParticleParameters.InfiniteFlag |
true CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters1 or UpperParameters1. More... | |
bool | InfiniteLifetime2 => LowerParameters2.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters2.LifeTime == CpuParticleParameters.InfiniteFlag |
true CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters2 or UpperParameters2. More... | |
Properties | |
CpuParticleParameters | LowerParameters1 [get, set] |
The lower values of the range of parameters used to spawn new particles More... | |
CpuParticleParameters | UpperParameters1 [get, set] |
The upper values of the range of parameters used to spawn new particles More... | |
CpuParticleParameters | LowerParameters2 [get, set] |
The lower values of the range of parameters used to start particles' "second life" More... | |
CpuParticleParameters | UpperParameters2 [get, set] |
The upper values of the range of parameters used to start particles' "second life" More... | |
float | SpawnRate [get, set] |
How many new particles shall be spawned per second More... | |
float | SpawnRadius [get, set] |
The largest distance from the emitter at which particle shall be spawned More... | |
int | MaxParticles = 512 [get, set] |
The maximum number particles in existance at any one point in time More... | |
float | EmitterRepelRange [get, set] |
How far the emitter's repelling force can reach More... | |
float | EmitterRepelSpeed [get, set] |
How fast particles will be pushed away from the emitter's centre More... | |
float | EmitterSuctionRange = 32768 [get, set] |
From where the emitter suction force starts to act More... | |
float | EmitterSuctionSpeed [get, set] |
How fast particles will be sucked back to the emitter's centre More... | |
Vector3 | Gravity [get, set] |
A permanent acceleration force applied to all particles More... | |
float | RandomAcceleration [get, set] |
Randomly accelerate particles with up to the specified speed More... | |
float | Speed = 1 [get, set] |
A factor by which all elapsed times are multiplied More... | |
float | WarmupTime [get, set] |
How many seconds to "fast forward" the particle system before it's render the first time More... | |
string | Particle1Texture [get, set] |
The ID of the texture to place on the particles More... | |
int | Particle1Alpha [get, set] |
The level of transparency from 0 (solid) to 255 (invisible), EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending More... | |
string | Particle2Texture [get, set] |
The ID of the texture to place on the particles during their "second life" More... | |
int | Particle2Alpha [get, set] |
The level of transparency from 0 (solid) to 255 (invisible) for particles' "second life", EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending More... | |
A set of information about a particle system as a whole
|
inline |
Creates a deep copy of the this particle system preset
Implements NanoByte::Common::ICloneable< T >.
|
inlinestatic |
Loads a preset from an XML file via the ContentManager.
id | The ID of the XML file to load |
FileNotFoundException | The specified file could not be found. |
IOException | There was an error reading the file. |
UnauthorizedAccessException | Read access to the file is not permitted. |
InvalidOperationException | A problem occurred while deserializing the XML data. |
bool OmegaEngine.Graphics.Renderables.CpuParticlePreset.InfiniteLifetime1 => LowerParameters1.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters1.LifeTime == CpuParticleParameters.InfiniteFlag |
true
CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters1 or UpperParameters1.
bool OmegaEngine.Graphics.Renderables.CpuParticlePreset.InfiniteLifetime2 => LowerParameters2.LifeTime == CpuParticleParameters.InfiniteFlag || UpperParameters2.LifeTime == CpuParticleParameters.InfiniteFlag |
true
CpuParticleParameters.LifeTime is set to CpuParticleParameters.InfiniteFlag for LowerParameters2 or UpperParameters2.
|
getset |
How far the emitter's repelling force can reach
|
getset |
How fast particles will be pushed away from the emitter's centre
|
getset |
From where the emitter suction force starts to act
|
getset |
How fast particles will be sucked back to the emitter's centre
|
getset |
A permanent acceleration force applied to all particles
|
getset |
The lower values of the range of parameters used to spawn new particles
|
getset |
The lower values of the range of parameters used to start particles' "second life"
|
getset |
The maximum number particles in existance at any one point in time
|
getset |
The level of transparency from 0 (solid) to 255 (invisible), EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending
|
getset |
The ID of the texture to place on the particles
|
getset |
The level of transparency from 0 (solid) to 255 (invisible) for particles' "second life", EngineState.AlphaChannel, EngineState.BinaryAlphaChannel or EngineState.AdditivBlending
|
getset |
The ID of the texture to place on the particles during their "second life"
|
getset |
Randomly accelerate particles with up to the specified speed
|
getset |
The largest distance from the emitter at which particle shall be spawned
|
getset |
How many new particles shall be spawned per second
|
getset |
A factor by which all elapsed times are multiplied
|
getset |
The upper values of the range of parameters used to spawn new particles
|
getset |
The upper values of the range of parameters used to start particles' "second life"
|
getset |
How many seconds to "fast forward" the particle system before it's render the first time