DPSF by Daniel Schroeder

<PackageReference Include="DPSF" Version="2.5.0" />

.NET API 168,448 bytes

 ParticleEmitterCollection

Holds a collection of ParticleEmitters.
public int Count { get; }

Gets how many ParticleEmitters are in this collection.

Returns all of the ParticleEmitters in this collection.

public ReadOnlyCollection<int> IDs { get; }

Returns a list of IDs for the ParticleEmitters that this collection contains.

public ParticleEmitter this[int id] { get; }

Overload the [] operator to allow for direct access to ParticleEmitters in the collection using indexer syntax. Throws an exception if a ParticleEmitter with the given ID does not exist in the collection.

Fires anytime a ParticleEmitter is removed from the collection and the collection is left empty.

Adds a new ParticleEmitter to the list of emitters and returns it.

Adds the given ParticleEmitter to the list of emitters and returns it.

public bool Contains(int id)

Returns if the ParticleEmitter with the given ID is in this collection or not.

public bool Contains(ParticleEmitter emitter)

Returns if the given ParticleEmitter is in this collection or not.

public bool Remove(int id)

Removes the ParticleEmitter with the given ID from the collection. Returns false if the ParticleEmitter was not found in the collection.

public bool Remove(ParticleEmitter emitter)

Removes the given ParticleEmitter from the collection. Returns false if the ParticleEmitter was not found in the collection.

public void RemoveAll()

Removes all ParticleEmitters from the collection.