ezEngine Release 25.08
Loading...
Searching...
No Matches
ezParticleEmitter_Burst Class Referencefinal
Inheritance diagram for ezParticleEmitter_Burst:

Public Member Functions

virtual void CreateRequiredStreams () override
 
- Public Member Functions inherited from ezParticleModule
virtual void QueryOptionalStreams ()
 
void Reset (ezParticleSystemInstance *pOwner)
 
ezParticleSystemInstanceGetOwnerSystem ()
 
const ezParticleSystemInstanceGetOwnerSystem () const
 
ezParticleEffectInstanceGetOwnerEffect () const
 
virtual void RequestRequiredWorldModulesForCache (ezParticleWorldModule *pParticleModule)
 Override this to cache world module pointers for later (through ezParticleWorldModule::GetCachedWorldModule()).
 
- Public Member Functions inherited from ezProcessingStreamProcessor
 ezProcessingStreamProcessor ()
 Base constructor.
 
virtual ~ezProcessingStreamProcessor ()
 Base destructor.
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () 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.
 

Public Attributes

ezTime m_Duration
 
ezTime m_StartDelay
 
ezUInt32 m_uiSpawnCountMin
 
ezUInt32 m_uiSpawnCountRange
 
ezTempHashedString m_sSpawnCountScaleParameter
 
- Public Attributes inherited from ezProcessingStreamProcessor
float m_fPriority = 0.0f
 Used for sorting processors, to ensure a certain order. Lower priority == executed first.
 

Protected Member Functions

virtual void OnFinalize () override
 Called after everything is set up.
 
virtual void InitializeElements (ezUInt64 uiStartIndex, ezUInt64 uiNumElements) override
 This method needs to be implemented in order to initialize new elements to specific values.
 
virtual ezParticleEmitterState IsFinished () override
 Called before ComputeSpawnCount(). Should return true, if the emitter will never spawn any more particles.
 
virtual ezUInt32 ComputeSpawnCount (const ezTime &tDiff) override
 Called once per update. Must return how many new particles are to be spawned.
 
- Protected Member Functions inherited from ezParticleEmitter
virtual bool IsContinuous () const
 
virtual void Process (ezUInt64 uiNumElements) final override
 The actual method which processes the data, will be called with the number of elements to process.
 
virtual void ProcessEventQueue (ezParticleEventQueue queue)
 
- Protected Member Functions inherited from ezParticleModule
virtual void OnReset ()
 Called by Reset()
 
void CreateStream (const char *szName, ezProcessingStream::DataType Type, ezProcessingStream **ppStream, bool bWillInitializeStream)
 
virtual ezResult UpdateStreamBindings () final override
 Internal method which needs to be implemented, gets the concrete stream bindings. This is called every time the streams are resized. Implementations should check that their required streams exist and are of the correct data types.
 
ezRandomGetRNG () const
 

Protected Attributes

ezUInt32 m_uiSpawnCountLeft = 0
 
float m_fSpawnPerSecond = 0
 
float m_fSpawnAccu = 0
 
- Protected Attributes inherited from ezProcessingStreamProcessor
ezProcessingStreamGroupm_pStreamGroup = nullptr
 Back pointer to the stream group - will be set to the owner stream group when adding the stream processor to the group. Can be used to get stream pointers in UpdateStreamBindings();.
 

Additional Inherited Members

- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Member Function Documentation

◆ ComputeSpawnCount()

ezUInt32 ezParticleEmitter_Burst::ComputeSpawnCount ( const ezTime tDiff)
overrideprotectedvirtual

Called once per update. Must return how many new particles are to be spawned.

Implements ezParticleEmitter.

◆ CreateRequiredStreams()

virtual void ezParticleEmitter_Burst::CreateRequiredStreams ( )
inlineoverridevirtual

Implements ezParticleModule.

◆ InitializeElements()

virtual void ezParticleEmitter_Burst::InitializeElements ( ezUInt64  uiStartIndex,
ezUInt64  uiNumElements 
)
inlineoverrideprotectedvirtual

This method needs to be implemented in order to initialize new elements to specific values.

Implements ezProcessingStreamProcessor.

◆ IsFinished()

ezParticleEmitterState ezParticleEmitter_Burst::IsFinished ( )
overrideprotectedvirtual

Called before ComputeSpawnCount(). Should return true, if the emitter will never spawn any more particles.

Implements ezParticleEmitter.

◆ OnFinalize()

void ezParticleEmitter_Burst::OnFinalize ( )
overrideprotectedvirtual

Called after everything is set up.

Reimplemented from ezParticleModule.


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