C# Class Axiom.ParticleSystems.ParticleAffectorFactory

Abstract class defining the interface to be implemented by creators of ParticleAffector subclasses.
Plugins or 3rd party applications can add new types of particle affectors by creating subclasses of the ParticleAffector class. Because multiple instances of these affectors may be required, a factory class to manage the instances is also required.

ParticleAffectorFactory subclasses must allow the creation and destruction of ParticleAffector subclasses. They must also be registered with the ParticleSystemManager. All factories have a name which identifies them, examples might be 'ForceVector', 'Attractor', or 'Fader', and these can be also be used from particle system scripts.

Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство Type Description
affectorList AffectorList

Méthodes publiques

Méthode Description
Create ( ) : ParticleAffector

Creates a new affector instance.

Subclasses MUST add a reference to the affectorList.

Destroy ( ParticleAffector e ) : void

Destroys the affector referenced by the parameter.

ParticleAffectorFactory ( ) : System

Default constructor.

Method Details

Create() public abstract méthode

Creates a new affector instance.
Subclasses MUST add a reference to the affectorList.
public abstract Create ( ) : ParticleAffector
Résultat ParticleAffector

Destroy() public méthode

Destroys the affector referenced by the parameter.
public Destroy ( ParticleAffector e ) : void
e ParticleAffector The Affector to destroy.
Résultat void

ParticleAffectorFactory() public méthode

Default constructor.
public ParticleAffectorFactory ( ) : System
Résultat System

Property Details

affectorList protected_oe property

protected AffectorList affectorList
Résultat AffectorList