DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnCheckAutoDelete()

void Particle::OnCheckAutoDelete ( )
inlineprivate

Creates ParticleEffect child, called from UpdateState.

См. определение в файле Particle.c строка 498

499 {
500 if (m_Lifetime <= 0)
501 {
503 {
504 m_IsRepeat = IsRepeat(); // It is possible that the REPEAT flag was changed during lifetime, so it needs to be checked again.
505
506 if ( m_IsRepeat )
507 {
509 }
510 else
511 {
513
514 if ( GetParticleCount() == 0 )
515 {
516 m_MarkedForDeletion = true;
517 OnToDelete();
519 }
520 }
521 }
522 else
523 {
525 {
527 {
528 m_ParticleEffect.Delete();
529 m_ParticleEffect = null;
530 }
531
532 Delete();
533 }
534 }
535 }
536 }
void OnParticleEnd()
Event when the particle ends.
Определения ParticleBase.c:206
void OnParticleStop()
Event when the particle stops.
Определения ParticleBase.c:188
bool m_IsRepeat
Whether this particle repeats.
Определения Particle.c:17
float GetMaxLifetime()
Returns the approx. max lifetime.
Определения Particle.c:380
bool m_MarkedForDeletion
Whether this particle is queued for deletion.
Определения Particle.c:19
Object m_ParticleEffect
The child object which contains the actual particle.
Определения Particle.c:50
int GetParticleCount()
Returns the total count of active particles in all emitors.
Определения Particle.c:340
float m_Lifetime
Approx. remaining lifetime of particle.
Определения Particle.c:15
bool IsRepeat()
Returns whether there is a repeating particle.
Определения Particle.c:354
void OnToDelete()
Called before deletion from OnCheckAutoDelete.
Определения Particle.c:541

Перекрестные ссылки GetMaxLifetime(), GetParticleCount(), IsRepeat(), m_IsRepeat, m_Lifetime, m_MarkedForDeletion, m_ParticleEffect, OnParticleEnd(), OnParticleStop() и OnToDelete().

Используется в EOnFrame().