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.

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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