DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ParticleBase.c

См. исходные тексты.

Структуры данных

class  ParticleEvents
 Invokers for ParticleBase events, called from events. Подробнее...
 

Функции

void ParticleBase ()
 ctor
 
override bool IsParticle ()
 Have script recognize this as a Particle without casting.
 
Playback

Methods regarding playing/stopping of particle

void PlayParticle (int particle_id=-1)
 Method to tell the particle to start playing.
 
bool PlayParticleEx (int particle_id=-1, int flags=0)
 Method to tell the particle to start playing.
 
bool StopParticle (int flags=0)
 Method to tell the particle to stop playing.
 
bool ResetParticle ()
 Method to tell the particle to reset.
 
bool RestartParticle ()
 Method to tell the particle to restart (reset + play)
 
bool IsParticlePlaying ()
 Ask if the particle is still playing.
 
ParticleEvents GetEvents ()
 Get the events.
 
Events

ParticleBase events For ParticleSource, these are handed on C++ side For more information, read ParticleEvents

void OnParticleStart ()
 Event when the particle starts.
 
void OnParticleStop ()
 Event when the particle stops.
 
void OnParticleReset ()
 Event when the particle is restarted.
 
void OnParticleEnd ()
 Event when the particle ends.
 
void OnParticleParented (IEntity parent)
 Event when the particle receives a parent.
 
void OnParticleUnParented (IEntity parent)
 Event when the particle is orphaned.
 

Переменные

class ParticleEvents m_IsPlaying
 Engine base class with internal functionality.
 
ref ParticleEvents m_EventInvokers
 Event invokers.
 

Функции

◆ GetEvents()

ParticleEvents GetEvents ( )
protected

Get the events.

Возвращает
ParticleEvents If there is any events set, this will return them so that additional functionality can be bound to them
163 {
164 return m_EventInvokers;
165 }
ref ParticleEvents m_EventInvokers
Event invokers.
Definition ParticleBase.c:66

Перекрестные ссылки m_EventInvokers.

Используется в OnAllocation(), OnAllocationEnd(), OnParticleEnd(), OnParticleParented(), OnParticleReset(), OnParticleStart(), OnParticleStop() и OnParticleUnParented().

◆ IsParticle()

override bool IsParticle ( )
protected

Have script recognize this as a Particle without casting.

80 {
81 return true;
82 }

◆ IsParticlePlaying()

bool IsParticlePlaying ( )
protected

Ask if the particle is still playing.

Возвращает
bool Whether the particle is playing
149 {
150 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
151 return false;
152 }
ErrorExSeverity
Definition EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx.

◆ OnParticleEnd()

void OnParticleEnd ( )
protected

Event when the particle ends.

Заметки
Looping particles will never end
207 {
208 GetEvents().Event_OnParticleEnd.Invoke(this);
209 }
ParticleEvents GetEvents()
Get the events.
Definition ParticleBase.c:162
ref ScriptInvoker Event_OnParticleEnd
Called when particle ends.
Definition ParticleBase.c:41

Перекрестные ссылки ParticleEvents::Event_OnParticleEnd и GetEvents().

Используется в Particle::OnCheckAutoDelete().

◆ OnParticleParented()

void OnParticleParented ( IEntity parent)
protected

Event when the particle receives a parent.

215 {
216 GetEvents().Event_OnParticleParented.Invoke(this);
217 }
ref ScriptInvoker Event_OnParticleParented
Called when particle receives a parent.
Definition ParticleBase.c:46

Перекрестные ссылки ParticleEvents::Event_OnParticleParented и GetEvents().

◆ OnParticleReset()

void OnParticleReset ( )
protected

Event when the particle is restarted.

198 {
199 GetEvents().Event_OnParticleReset.Invoke(this);
200 }
ref ScriptInvoker Event_OnParticleReset
Called when particle is reset.
Definition ParticleBase.c:34

Перекрестные ссылки ParticleEvents::Event_OnParticleReset и GetEvents().

◆ OnParticleStart()

void OnParticleStart ( )
protected

Event when the particle starts.

180 {
181 m_IsPlaying = true;
182 GetEvents().Event_OnParticleStart.Invoke(this);
183 }
class ParticleEvents m_IsPlaying
Engine base class with internal functionality.
ref ScriptInvoker Event_OnParticleStart
Called when particle starts playing.
Definition ParticleBase.c:22

Перекрестные ссылки ParticleEvents::Event_OnParticleStart, GetEvents() и m_IsPlaying.

Используется в Particle::PlayParticleEx().

◆ OnParticleStop()

void OnParticleStop ( )
protected

Event when the particle stops.

189 {
190 m_IsPlaying = false;
191 GetEvents().Event_OnParticleStop.Invoke(this);
192 }
ref ScriptInvoker Event_OnParticleStop
Called when particle stops playing.
Definition ParticleBase.c:28

Перекрестные ссылки ParticleEvents::Event_OnParticleStop, GetEvents() и m_IsPlaying.

Используется в Particle::OnCheckAutoDelete() и Particle::StopParticle().

◆ OnParticleUnParented()

void OnParticleUnParented ( IEntity parent)
protected

Event when the particle is orphaned.

223 {
225 }
ref ScriptInvoker Event_OnParticleUnParented
Called when particle is orphaned.
Definition ParticleBase.c:51

Перекрестные ссылки ParticleEvents::Event_OnParticleUnParented и GetEvents().

◆ ParticleBase()

void ParticleBase ( )
protected

ctor

72 {
74 }
Invokers for ParticleBase events, called from events.
Definition ParticleBase.c:16

Перекрестные ссылки m_EventInvokers.

◆ PlayParticle()

void PlayParticle ( int particle_id = -1)
protected

Method to tell the particle to start playing.

Аргументы
particle_idint Particle ID registered in ParticleList to start playing
Возвращает
bool Whether the particle successfully started
97 {
98 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
99 }

Перекрестные ссылки ErrorEx.

Используется в ParticleFireEndStart(), ParticleFireStartStart(), ParticleFireWindyNoIgniteStart(), ParticleNormalFireStart(), ParticleNormalSmokeStart(), FireplaceBase::ParticleNormalSmokeStart(), ParticleSmallFireStart(), ParticleSmallSmokeStart(), FireplaceBase::ParticleSmallSmokeStart(), ParticleSteamEndStart(), ParticleSteamExtinguishingStart() и ParticleWetNoIgniteStart().

◆ PlayParticleEx()

bool PlayParticleEx ( int particle_id = -1,
int flags = 0 )
protected

Method to tell the particle to start playing.

Аргументы
particle_idint Particle ID registered in ParticleList to start playing
flagsint Flags to pass to the playing
Возвращает
bool Whether the particle successfully started
108 {
109 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
110 return false;
111 }

Перекрестные ссылки ErrorEx.

◆ ResetParticle()

bool ResetParticle ( )
protected

Method to tell the particle to reset.

Возвращает
bool Whether the particle successfully reset
129 {
130 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
131 return false;
132 }

Перекрестные ссылки ErrorEx.

◆ RestartParticle()

bool RestartParticle ( )
protected

Method to tell the particle to restart (reset + play)

Возвращает
bool Whether the particle successfully restarted
139 {
140 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
141 return false;
142 }

Перекрестные ссылки ErrorEx.

◆ StopParticle()

bool StopParticle ( int flags = 0)
protected

Method to tell the particle to stop playing.

Аргументы
flagsint Flags to pass to the stopping
Возвращает
bool Whether the particle successfully stopped
119 {
120 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
121 return false;
122 }

Перекрестные ссылки ErrorEx.

Используется в ParticleFireEndStop(), ParticleFireStartStop(), ParticleNormalFireStop(), ParticleNormalSmokeStop(), ParticleSmallFireStop(), ParticleSmallSmokeStop(), ParticleSteamEndStop(), ParticleSteamExtinguishingStop(), ParticleWetNoIgniteStop() и StopAllParticlesAndSounds().

Переменные

◆ m_EventInvokers

ref ParticleEvents m_EventInvokers
protected

Event invokers.

Используется в GetEvents() и ParticleBase().

◆ m_IsPlaying

class ParticleEvents m_IsPlaying

Engine base class with internal functionality.

Заметки
Is NOT intended for direct creation As this does not have an actual particle Use either Particle or ParticleSource Whether the particle is currently playing