Data Structures | |
| class | ParticleEvents |
| Invokers for ParticleBase events, called from events. More... | |
Functions | |
| void | ParticleBase () |
| ctor | |
| override bool | IsParticle () |
| Have script recognize this as a Particle without casting. | |
Playback | |
Methods regarding playing/stopping of particle | |
| void | PlayParticle (int particle_id=-1) |
| Method to tell the particle to start playing. | |
| bool | PlayParticleEx (int particle_id=-1, int flags=0) |
| Method to tell the particle to start playing. | |
| bool | StopParticle (int flags=0) |
| Method to tell the particle to stop playing. | |
| bool | ResetParticle () |
| Method to tell the particle to reset. | |
| bool | RestartParticle () |
| Method to tell the particle to restart (reset + play) | |
| bool | IsParticlePlaying () |
| Ask if the particle is still playing. | |
| ParticleEvents | GetEvents () |
| Get the events. | |
Events | |
ParticleBase events For ParticleSource, these are handed on C++ side For more information, read ParticleEvents | |
| protected void | OnParticleStart () |
| Event when the particle starts. | |
| protected void | OnParticleStop () |
| Event when the particle stops. | |
| protected void | OnParticleReset () |
| Event when the particle is restarted. | |
| protected void | OnParticleEnd () |
| Event when the particle ends. | |
| protected void | OnParticleParented (IEntity parent) |
| Event when the particle receives a parent. | |
| protected void | OnParticleUnParented (IEntity parent) |
| Event when the particle is orphaned. | |
Variables | |
| class ParticleEvents | m_IsPlaying |
| Engine base class with internal functionality. | |
| protected ref ParticleEvents | m_EventInvokers |
| Event invokers. | |
| ParticleEvents GetEvents | ( | ) |
Get the events.
ParticleEvents If there is any events set, this will return them so that additional functionality can be bound to them References m_EventInvokers.
Referenced by OnAllocation(), OnAllocationEnd(), OnEnd(), OnHeaderLoad(), OnLoad(), OnParticleEnd(), OnParticleParented(), OnParticleReset(), OnParticleStart(), OnParticleStop(), OnParticleUnParented(), OnPlay(), and OnStop().
| bool IsParticlePlaying | ( | ) |
Ask if the particle is still playing.
bool Whether the particle is playing References ErrorEx.
| protected void OnParticleEnd | ( | ) |
Event when the particle ends.
References ParticleEvents::Event_OnParticleEnd, GetEvents(), and ScriptInvoker::Invoke().
Referenced by Particle::OnCheckAutoDelete().
| protected void OnParticleParented | ( | IEntity | parent | ) |
Event when the particle receives a parent.
References ParticleEvents::Event_OnParticleParented, GetEvents(), and ScriptInvoker::Invoke().
| protected void OnParticleReset | ( | ) |
Event when the particle is restarted.
References ParticleEvents::Event_OnParticleReset, GetEvents(), and ScriptInvoker::Invoke().
| protected void OnParticleStart | ( | ) |
Event when the particle starts.
References ParticleEvents::Event_OnParticleStart, GetEvents(), ScriptInvoker::Invoke(), and m_IsPlaying.
Referenced by Particle::PlayParticleEx().
| protected void OnParticleStop | ( | ) |
Event when the particle stops.
References ParticleEvents::Event_OnParticleStop, GetEvents(), ScriptInvoker::Invoke(), and m_IsPlaying.
Referenced by Particle::OnCheckAutoDelete(), and Particle::StopParticle().
| protected void OnParticleUnParented | ( | IEntity | parent | ) |
Event when the particle is orphaned.
References ParticleEvents::Event_OnParticleUnParented, GetEvents(), and ScriptInvoker::Invoke().
| void ParticleBase | ( | ) |
ctor
References m_EventInvokers.
| void PlayParticle | ( | int | particle_id = -1 | ) |
Method to tell the particle to start playing.
| particle_id | int Particle ID registered in ParticleList to start playing |
bool Whether the particle successfully started References ErrorEx.
Referenced by ParticleFireEndStart(), ParticleFireStartStart(), ParticleFireWindyNoIgniteStart(), ParticleNormalFireStart(), ParticleNormalSmokeStart(), FireplaceIndoor::ParticleNormalSmokeStart(), FireplaceBase::ParticleNormalSmokeStart(), ParticleSmallFireStart(), ParticleSmallSmokeStart(), FireplaceIndoor::ParticleSmallSmokeStart(), FireplaceBase::ParticleSmallSmokeStart(), ParticleSteamEndStart(), ParticleSteamExtinguishingStart(), and ParticleWetNoIgniteStart().
Method to tell the particle to start playing.
| particle_id | int Particle ID registered in ParticleList to start playing |
| flags | int Flags to pass to the playing |
bool Whether the particle successfully started References ErrorEx.
| bool ResetParticle | ( | ) |
Method to tell the particle to reset.
bool Whether the particle successfully reset References ErrorEx.
| bool RestartParticle | ( | ) |
Method to tell the particle to restart (reset + play)
bool Whether the particle successfully restarted References ErrorEx.
Method to tell the particle to stop playing.
| flags | int Flags to pass to the stopping |
bool Whether the particle successfully stopped References ErrorEx.
Referenced by ParticleFireEndStop(), ParticleFireStartStop(), ParticleNormalFireStop(), ParticleNormalSmokeStop(), ParticleSmallFireStop(), ParticleSmallSmokeStop(), ParticleSteamEndStop(), ParticleSteamExtinguishingStop(), ParticleWetNoIgniteStop(), and StopAllParticlesAndSounds().
| protected ref ParticleEvents m_EventInvokers |
Event invokers.
Referenced by GetEvents(), and ParticleBase().
| class ParticleEvents m_IsPlaying |
Engine base class with internal functionality.