Skip to content

Exomia.ParticleSystem

Daniel Baetz edited this page May 13, 2020 · 3 revisions

Emitter

An emitter. This class cannot be inherited.

public class Exomia.ParticleSystem.Emitter
    : IEmitter, IDisposable

Constructors

.ctor Emitter(Int32 capacity, TimeSpan lifespan, IProfile profile)

Summary:

Initializes a new instance of the class.

Parameter:

  • capacity - The capacity.
  • lifespan - The lifespan.
  • profile - The profile.


Properties

Int32 ActiveParticles

Summary:

Gets the active particles.


Particle* Buffer

Summary:

Gets the buffer.


IModifierExecutionStrategy ModifierExecutionStrategy

Summary:

Gets or sets the modifier execution strategy.


IModifier[] Modifiers

Summary:

Gets or sets the modifiers.


Single ReclaimFrequency

Summary:

Gets or sets the reclaim frequency.


ReleaseParameters ReleaseParameters

Summary:

Gets or sets options for controlling the release.



Methods

void Dispose()

Summary:

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.


void Trigger(Vector2 position)

Summary:

Triggers.

Parameter:

  • position - The position.

void Trigger(Vector2 p1, Vector2 p2)

Summary:

Triggers.

Parameter:

  • p1 - The first Vector2.
  • p2 - The second Vector2.

void Update(GameTime gameTime)

Summary:

Updates the given gameTime.

Parameter:

  • gameTime - The game time.


IEmitter

Interface for emitter.

public interface Exomia.ParticleSystem.IEmitter
    : IDisposable

Properties

Int32 ActiveParticles

Summary:

Gets the active particles.


Particle* Buffer

Summary:

Gets the buffer.


IModifier[] Modifiers

Summary:

Gets or sets the modifiers.


Single ReclaimFrequency

Summary:

Gets or sets the reclaim frequency.


ReleaseParameters ReleaseParameters

Summary:

Gets or sets options for controlling the release.



Methods

void Trigger(Vector2 position)

Summary:

Triggers.

Parameter:

  • position - The position.

void Trigger(Vector2 p1, Vector2 p2)

Summary:

Triggers.

Parameter:

  • p1 - The first Vector2.
  • p2 - The second Vector2.

void Update(GameTime gameTime)

Summary:

Updates the given gameTime.

Parameter:

  • gameTime - The game time.


IModifier

Interface for modifier.

public interface Exomia.ParticleSystem.IModifier

Methods

void Update(Single elapsedSeconds, Particle* particle, Int32 count)

Summary:

Updates this object.

Parameter:

  • elapsedSeconds - The elapsed in seconds.
  • particle - [in,out] If non-, the particle.
  • count - Number of.


IParticleSystem

Interface for particle system.

public interface Exomia.ParticleSystem.IParticleSystem
    : IDisposable

Properties

Int32 ActiveParticles

Summary:

Gets the active particles.


IEmitter[] Emitters

Summary:

Gets or sets the emitters.


Boolean Enabled

Summary:

Gets or sets a value indicating whether this object is enabled.


IEmitter Item

Summary:

Indexer to get items within this collection using array index syntax.

Parameter:

  • index - Zero-based index of the entry to access.


Methods

void Trigger(Vector2 position)

Summary:

Triggers.

Parameter:

  • position - The position.

void Trigger(Vector2 p1, Vector2 p2)

Summary:

Triggers.

Parameter:

  • p1 - The first Vector2.
  • p2 - The second Vector2.

void Update(GameTime gameTime)

Summary:

Updates the given gameTime.

Parameter:

  • gameTime - The game time.


IProfile

Interface for profile.

public interface Exomia.ParticleSystem.IProfile

Methods

void GetOffsetAndVelocity(Vector2* offset, Vector2* velocity)

Summary:

Gets offset and velocity.

Parameter:

  • offset - [in,out] If non-, the offset.
  • velocity - [in,out] If non-, the velocity.


Particle

A particle.

public struct Exomia.ParticleSystem.Particle

Fields

Single Age

Summary:

The age.


Color Color

Summary:

The color.


Single LifeTime

Summary:

The life time.


Single Mass

Summary:

The mass.


Single Opacity

Summary:

The opacity.


Vector2 Position

Summary:

The position.


Single Rotation

Summary:

The rotation.


Single Scale

Summary:

The scale.


Vector2 Velocity

Summary:

The velocity.



Static Fields

Int32 SIZE_IN_BYTES

Summary:

The size in bytes.



ParticleSystem

A particle system. This class cannot be inherited.

public class Exomia.ParticleSystem.ParticleSystem
    : IParticleSystem, IDisposable

Constructors

.ctor ParticleSystem()

Summary:

Initializes a new instance of the class.



Properties

Int32 ActiveParticles

Summary:

Gets the active particles.


IEmitter[] Emitters

Summary:

Gets or sets the emitters.


Boolean Enabled

Summary:

Gets or sets a value indicating whether this object is enabled.


IEmitter Item

Summary:

Indexer to get items within this collection using array index syntax.

Parameter:

  • index - Zero-based index of the entry to access.


Methods

void Dispose()

Summary:

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.


void Trigger(Vector2 position)

Summary:

Triggers.

Parameter:

  • position - The position.

void Trigger(Vector2 p1, Vector2 p2)

Summary:

Triggers.

Parameter:

  • p1 - The first Vector2.
  • p2 - The second Vector2.

void Update(GameTime gameTime)

Summary:

Updates the given gameTime.

Parameter:

  • gameTime - The game time.


Range

A range. This class cannot be inherited.

public class Exomia.ParticleSystem.Range
    : ReleaseParameter<Int32>

Constructors

.ctor Range(Int32 min, Int32 max)

Summary:

Initializes a new instance of the class.

Parameter:

  • min - The minimum.
  • max - The maximum.


Methods

Int32 Get()

Summary:

Gets the get.



RangeColor

A range color. This class cannot be inherited.

public class Exomia.ParticleSystem.RangeColor
    : ReleaseParameter<Color>

Constructors

.ctor RangeColor(Color min, Color max)

Summary:

Initializes a new instance of the class.

Parameter:

  • min - The minimum.
  • max - The maximum.


Methods

Color Get()

Summary:

Gets the get.



RangeF

A range f. This class cannot be inherited.

public class Exomia.ParticleSystem.RangeF
    : ReleaseParameter<Single>

Constructors

.ctor RangeF(Single min, Single max)

Summary:

Initializes a new instance of the class.

Parameter:

  • min - The minimum.
  • max - The maximum.


Methods

Single Get()

Summary:

Gets the get.



ReleaseParameter

A release parameter.

public class Exomia.ParticleSystem.ReleaseParameter<T>

Constructors

.ctor ReleaseParameter`1(T value)

Summary:

Initializes a new instance of the class.

Parameter:

  • value - The value.


Fields

T _value

Summary:

The value.



Methods

T Get()

Summary:

Gets the get.



ReleaseParameters

A release parameters.

public struct Exomia.ParticleSystem.ReleaseParameters

Fields

ReleaseParameter Color

Summary:

The color.


ReleaseParameter Mass

Summary:

The mass.


ReleaseParameter Opacity

Summary:

The opacity.


ReleaseParameter Quantity

Summary:

The quantity.


ReleaseParameter Rotation

Summary:

The rotation.


ReleaseParameter Scale

Summary:

The scale.


ReleaseParameter Speed

Summary:

The speed.



Clone this wiki locally