C# Класс 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.

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
affectorList AffectorList

Открытые методы

Метод Описание
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.

Описание методов

Create() публичный абстрактный метод

Creates a new affector instance.
Subclasses MUST add a reference to the affectorList.
public abstract Create ( ) : ParticleAffector
Результат ParticleAffector

Destroy() публичный метод

Destroys the affector referenced by the parameter.
public Destroy ( ParticleAffector e ) : void
e ParticleAffector The Affector to destroy.
Результат void

ParticleAffectorFactory() публичный метод

Default constructor.
public ParticleAffectorFactory ( ) : System
Результат System

Описание свойств

affectorList защищенное свойство

protected AffectorList affectorList
Результат AffectorList