C# Класс Axiom.ParticleSystems.ParticleAffector

Abstract class defining the interface to be implemented by particle affectors.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
commandTable AxiomCollection
type string

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

Метод Описание
AffectParticles ( ParticleSystem system, float timeElapsed ) : void

Method called to allow the affector to 'do it's stuff' on all active particles in the system.

This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.

CopyTo ( ParticleAffector affector ) : void

InitParticle ( Particle &particle ) : void

Method called to allow the affector to 'do it's stuff' on all active particles in the system.

This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.

ParticleAffector ( ) : System

Default constructor

SetParam ( string name, string val ) : bool

Защищенные методы

Метод Описание
RegisterCommands ( ) : void

Registers all attribute names with their respective parser.

Methods meant to serve as attribute parsers should use a method attribute to

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

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

Method called to allow the affector to 'do it's stuff' on all active particles in the system.
This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.
public abstract AffectParticles ( ParticleSystem system, float timeElapsed ) : void
system ParticleSystem Reference to a ParticleSystem to affect.
timeElapsed float The number of seconds which have elapsed since the last call.
Результат void

CopyTo() публичный Метод

public CopyTo ( ParticleAffector affector ) : void
affector ParticleAffector
Результат void

InitParticle() публичный Метод

Method called to allow the affector to 'do it's stuff' on all active particles in the system.
This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.
public InitParticle ( Particle &particle ) : void
particle Particle Reference to a ParticleSystem to affect.
Результат void

ParticleAffector() публичный Метод

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

RegisterCommands() защищенный Метод

Registers all attribute names with their respective parser.
Methods meant to serve as attribute parsers should use a method attribute to
protected RegisterCommands ( ) : void
Результат void

SetParam() публичный Метод

public SetParam ( string name, string val ) : bool
name string
val string
Результат bool

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

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

protected AxiomCollection commandTable
Результат AxiomCollection

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

Name of the affector type. Must be initialized by subclasses.
protected string type
Результат string