![]() |
ezEngine Release 26.3
|
#include <ParticleEventReaction.h>

Protected Member Functions | |
| void | Reset (ezParticleEffectInstance *pOwner) |
| Initializes the reaction with a reference to the owning effect instance. | |
| virtual void | ProcessEvent (const ezParticleEvent &e)=0 |
Protected Attributes | |
| ezTempHashedString | m_sEventName |
| Hashed event type name for fast comparison. | |
| ezUInt8 | m_uiProbability |
| Probability value (1-100) for triggering this reaction. | |
| ezParticleEffectInstance * | m_pOwnerEffect = nullptr |
| The effect instance that owns this reaction. | |
Friends | |
| class | ezParticleEventReactionFactory |
| class | ezParticleEffectInstance |
Additional Inherited Members | |
Public Member Functions inherited from ezReflectedClass | |
| virtual const ezRTTI * | GetDynamicRTTI () const |
| bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it. | |
| template<typename T > | |
| EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it. | |
Static Public Member Functions inherited from ezNoBase | |
| static const ezRTTI * | GetStaticRTTI () |
Base class for all particle event reactions.
Event reactions respond to particle events by performing actions like spawning effects or prefabs. Reactions are checked probabilistically - they may not trigger every time an event occurs.
|
protectedpure virtual |
Called when a matching event occurs and the probability check passes.
Derived classes implement the actual reaction behavior (e.g., spawning an effect).
Implemented in ezParticleEventReaction_Effect, and ezParticleEventReaction_Prefab.