![]() |
Dayz Explorer 1.28.160049
|
Wrapper class for managing particles through SEffectManager. More...
Protected Member Functions | |
EffectType | |
Information about what type of effect the Effect is, without the need for casting | |
| override EffectType | GetEffectType () |
| Get what type of effect the Effect is. | |
| override bool | IsParticle () |
| Check whether the Effect is EffectParticle without casting. | |
Main particle | |
Set or get the main particle which this Effect will manage | |
| void | SetParticle (Particle p) |
| Sets the main particle which this Effect will manage. | |
| Particle | GetParticle () |
| Gets the main particle which this Effect is managing. | |
Playback | |
Methods to Play/Stop Effect Generally, SEffectManager.Play methods are used instead of Start | |
| override void | Start () |
| Plays all elements this effect consists of. | |
| override void | Stop () |
| Stops all elements this effect consists of. | |
Attach | |
Helper methods for attaching to prent | |
| void | AttachTo (Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_to_world=false) |
| Read Particle.AddAsChild. | |
| void | ReAttach () |
| Helper method to attach to parent using stored settings. | |
| void | AddAsChild (Object obj, vector local_pos, vector local_ori, bool force_rotation_to_world) |
| Helper method to attach to parent. | |
Events | |
Various events that can be overriden for custom behaviour | |
| void | Event_OnPlayStart () |
| Event which just simply exists (DEPRECATED) | |
| void | Event_OnPlayStarted () |
| Event which just simply exists (DEPRECATED) | |
Generic API | |
Setters and getters for generic data and properties | |
| void | SetParticleID (int id) |
| Sets the id of the particle to be used. | |
| int | GetParticleID () |
| Gets the id of the particle to be used. | |
| void | SetCurrentParticleID (int id) |
| Sets the id of the particle to be used. | |
| int | GetCurrentParticleID () |
| Gets the current id of the managed Particle. | |
| override void | SetCurrentParent (Object parent_obj, bool updateCached=true) |
| Set current parent of the managed Particle. | |
| override Object | GetCurrentParent () |
| Get the current parent of the managed Particle. | |
| override void | SetCurrentPosition (vector pos, bool updateCached=true) |
| Set the current world position of the managed Particle. | |
| override vector | GetCurrentPosition () |
| Get the current world position of the managed Particle. | |
| override void | SetCurrentLocalPosition (vector pos, bool updateCached=true) |
| Set the current local position of the managed Particle. | |
| override vector | GetCurrentLocalPosition () |
| Get the current local position of the managed Particle. | |
| void | SetOrientation (vector ori) |
| Set orientation of the EffectParticle. | |
| vector | GetOrientation () |
| Get the orientation of the EffectParticle. | |
| void | SetCurrentOrientation (vector ori, bool updateCached=true) |
| Set the current orientation of the managed Particle. | |
| vector | GetCurrentOrientation () |
| Get the current orientation of the managed Particle. | |
| void | ForceParticleRotationRelativeToWorld (bool state) |
| Set orientation setting to be used by the effect when the Effect starts. | |
| bool | IsParticleRotationRelativeToWorld () |
| Get the orientation setting to be used by the effect when the Effect starts. | |
| bool | IsParticleCurrentRotationRelativeToWorld () |
| Get the current orientation setting to be used by the managed Particle. | |
Protected Attributes | |
| Particle | m_ParticleObj |
| The main Particle effect that this Effect wrapper manages. | |
Generic data | |
Generic data for the particle | |
| int | m_ParticleID |
| The ID in the ParticleList to create Particle from. | |
| vector | m_Orientation |
| Orientation set by SetOrientation. | |
| bool | m_ForceRotationRelativeToWorld |
| Orientation setting to be used by the effect when the Effect starts. | |
DEPRECATED | |
Methods which exist for backwards compatibility and are no longer in use or have never been in use | |
| vector | m_ParticleOrientation |
| Object | m_Object |
| void | EffectParticle () |
| ctor | |
| void | ~EffectParticle () |
| dtor | |
| override void | InitEffect () |
| init | |
| override string | GetDebugName () |
| Override when getting debug information. | |
| override void | ValidateStart () |
| Validation whether an effect truly started playing or if the Effect should stop as none is present. | |
| void | CheckLifeSpan () |
| Was never called and probably should never be called. | |
| void | SetDecalOwner (Object o) |
Wrapper class for managing particles through SEffectManager.
Definition at line 4 of file effectparticle.c.
|
protected |
ctor
Definition at line 34 of file effectparticle.c.
|
protected |
dtor
Definition at line 42 of file effectparticle.c.
|
protected |
Helper method to attach to parent.
Definition at line 251 of file effectparticle.c.
|
protected |
Read Particle.AddAsChild.
Definition at line 227 of file effectparticle.c.
|
protected |
Was never called and probably should never be called.
Definition at line 550 of file effectparticle.c.
|
protected |
Event which just simply exists (DEPRECATED)
Definition at line 274 of file effectparticle.c.
|
protected |
Event which just simply exists (DEPRECATED)
Definition at line 284 of file effectparticle.c.
|
protected |
Set orientation setting to be used by the effect when the Effect starts.
| state | bool Whether to keep WS orientation when attaching it to parent |
Definition at line 503 of file effectparticle.c.
|
protected |
Get the current local position of the managed Particle.
vector The current local position of the managed Particle Definition at line 431 of file effectparticle.c.
|
protected |
Get the current orientation of the managed Particle.
vector The current orientation of the managed Particle Definition at line 487 of file effectparticle.c.
|
protected |
Get the current parent of the managed Particle.
Definition at line 367 of file effectparticle.c.
|
protected |
Gets the current id of the managed Particle.
int Particle ID registered in ParticleList Definition at line 338 of file effectparticle.c.
|
protected |
Get the current world position of the managed Particle.
vector The current world position of the managed Particle Definition at line 396 of file effectparticle.c.
|
protected |
Override when getting debug information.
Definition at line 67 of file effectparticle.c.
|
protected |
Get what type of effect the Effect is.
EffectType What type of effect the Effect is Definition at line 107 of file effectparticle.c.
|
protected |
Get the orientation of the EffectParticle.
vector The orientation of EffectParticle Definition at line 463 of file effectparticle.c.
|
protected |
Gets the main particle which this Effect is managing.
Particle Main particle which this Effect is managing Definition at line 162 of file effectparticle.c.
|
protected |
Gets the id of the particle to be used.
int Particle ID registered in ParticleList Definition at line 313 of file effectparticle.c.
|
protected |
init
Definition at line 50 of file effectparticle.c.
|
protected |
Check whether the Effect is EffectParticle without casting.
bool Whether the Effect is EffectParticle Definition at line 116 of file effectparticle.c.
|
protected |
Get the current orientation setting to be used by the managed Particle.
bool Whether the managed Particle is only updating position from parent Definition at line 527 of file effectparticle.c.
|
protected |
Get the orientation setting to be used by the effect when the Effect starts.
bool Whether to keep WS orientation when attaching it to parent Definition at line 513 of file effectparticle.c.
|
protected |
Helper method to attach to parent using stored settings.
Definition at line 242 of file effectparticle.c.
|
protected |
Set the current local position of the managed Particle.
| pos | vector The current local position for the managed Particle |
| updateCached | bool Whether to update the cached variable |
Definition at line 411 of file effectparticle.c.
Set the current orientation of the managed Particle.
| ori | vector Orientation in degrees (yaw, pitch, roll) |
Definition at line 472 of file effectparticle.c.
|
protected |
Set current parent of the managed Particle.
| parent_obj | Object The parent for the Particle |
| updateCached | bool Whether to update the cached variable |
Definition at line 356 of file effectparticle.c.
|
protected |
Sets the id of the particle to be used.
| id | int Particle ID registered in ParticleList |
Definition at line 323 of file effectparticle.c.
Set the current world position of the managed Particle.
| pos | vector The current world position for the Particle |
| updateCached | bool Whether to update the cached variable |
Definition at line 382 of file effectparticle.c.
|
protected |
Definition at line 562 of file effectparticle.c.
|
protected |
Set orientation of the EffectParticle.
| ori | vector Orientation in degrees (yaw, pitch, roll) |
Definition at line 453 of file effectparticle.c.
|
protected |
Sets the main particle which this Effect will manage.
| p | Particle Main particle which this Effect will manage |
Definition at line 134 of file effectparticle.c.
|
protected |
Sets the id of the particle to be used.
| id | int Particle ID registered in ParticleList |
Definition at line 303 of file effectparticle.c.
|
protected |
Plays all elements this effect consists of.
Definition at line 181 of file effectparticle.c.
|
protected |
Stops all elements this effect consists of.
Definition at line 204 of file effectparticle.c.
|
protected |
Validation whether an effect truly started playing or if the Effect should stop as none is present.
Definition at line 87 of file effectparticle.c.
|
protected |
Orientation setting to be used by the effect when the Effect starts.
Definition at line 18 of file effectparticle.c.
|
protected |
Definition at line 26 of file effectparticle.c.
|
protected |
Orientation set by SetOrientation.
Definition at line 16 of file effectparticle.c.
|
protected |
The ID in the ParticleList to create Particle from.
Definition at line 14 of file effectparticle.c.
|
protected |
The main Particle effect that this Effect wrapper manages.
Definition at line 7 of file effectparticle.c.
|
protected |
Definition at line 25 of file effectparticle.c.