PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ParticleEvents Class Reference

Invokers for ParticleBase events, called from events. More...

Private Attributes

ref ScriptInvoker Event_OnParticleStart = new ScriptInvoker()
 Called when particle starts playing.
 
ref ScriptInvoker Event_OnParticleStop = new ScriptInvoker()
 Called when particle stops playing.
 
ref ScriptInvoker Event_OnParticleReset = new ScriptInvoker()
 Called when particle is reset.
 
ref ScriptInvoker Event_OnParticleEnd = new ScriptInvoker()
 Called when particle ends.
 
ref ScriptInvoker Event_OnParticleParented = new ScriptInvoker()
 Called when particle receives a parent.
 
ref ScriptInvoker Event_OnParticleUnParented = new ScriptInvoker()
 Called when particle is orphaned.
 

Detailed Description

Invokers for ParticleBase events, called from events.

void EnableOnEndPrint(ParticleBase psrc)
{
psrc.GetEvents().Event_OnParticleEnd.Insert(PrintParticleEnded);
}
void PrintParticleEnded(ParticleBase psrc)
{
Print(string.Format("%1 ended.", psrc.GetDebugNameNative());
}
void ParticleBase()
ctor
Definition ParticleBase.c:71
proto void Print(void var)
Prints content of variable to console/log.

Field Documentation

◆ Event_OnParticleEnd

ref ScriptInvoker Event_OnParticleEnd = new ScriptInvoker()
private

Called when particle ends.

Note
Particle: Called when lifetime is over and there are no emitors active anymore
ParticleSource: Called when particle ends naturally or after the particle is stopped and there are no emitors active anymore
Warning
Looped never ends naturally and need to be stopped

Referenced by OnParticleEnd().

◆ Event_OnParticleParented

ref ScriptInvoker Event_OnParticleParented = new ScriptInvoker()
private

Called when particle receives a parent.

Note
Particle: Not present

Referenced by OnParticleParented().

◆ Event_OnParticleReset

ref ScriptInvoker Event_OnParticleReset = new ScriptInvoker()
private

Called when particle is reset.

Note
Particle: Not present, there is no reset functionality
ParticleSource: Called when ResetParticleNative is successful

Referenced by OnParticleReset().

◆ Event_OnParticleStart

ref ScriptInvoker Event_OnParticleStart = new ScriptInvoker()
private

Called when particle starts playing.

Note
Particle: Called when any Play method has been called
ParticleSource: Called when PlayParticleNative is successful

Referenced by OnParticleStart(), and EffectParticle::SetParticle().

◆ Event_OnParticleStop

ref ScriptInvoker Event_OnParticleStop = new ScriptInvoker()
private

Called when particle stops playing.

Note
Particle: Called when any Stop method has been called or when lifetime is over
ParticleSource: Called when StopParticleNative is successful, when the particle ends and when the particle is destroyed while it is playing

Referenced by OnParticleStop(), and EffectParticle::SetParticle().

◆ Event_OnParticleUnParented

ref ScriptInvoker Event_OnParticleUnParented = new ScriptInvoker()
private

Called when particle is orphaned.

Note
Particle: Not present

Referenced by OnParticleUnParented().


The documentation for this class was generated from the following file: