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

◆ TestOnePlayingStandAlone()

TFResult PMTPlayback::TestOnePlayingStandAlone ( )
inlineprivate

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

76 {
77 DayZPlayer player = GetGame().GetPlayer();
78
79 ParticleSource p = ParticleSource.CreateParticle(ParticleList.EXPLOSION_LANDMINE, player.GetPosition() + player.GetDirection() * 3 - player.GetDirectionAside() * 3, true);
80 p.GetEvents().Event_OnParticleEnd.Insert(OnePlayingSAEnded);
82
84
85 AddFrameTest("CheckOnePlayingSA");
86
87 return BTFR(p.IsParticlePlaying());
88 }
void AddFrameTest(string test)
Определения TestFramework.c:254
TFResult BTFR(bool result)
Определения TestFramework.c:278
proto native DayZPlayer GetPlayer()
ref array< ParticleSource > m_ParticleSources
Определения PMTPlayback.c:3
void OnePlayingSAEnded(ParticleSource p)
Определения PMTPlayback.c:294
int m_OnePlayingSAPSID
Определения PMTPlayback.c:14
override bool IsParticlePlaying()
Ask if the particle is still playing.
Определения ParticleSource.c:417
void DisableAutoDestroy()
Disables the particle automatically cleaning up itself when ending or stopping.
Определения ParticleSource.c:151
proto native CGame GetGame()

Перекрестные ссылки AddFrameTest(), BTFR(), ParticleSource::CreateParticle(), ParticleSource::DisableAutoDestroy(), ParticleList::EXPLOSION_LANDMINE, GetGame(), CGame::GetPlayer(), ParticleSource::IsParticlePlaying(), m_OnePlayingSAPSID, m_ParticleSources, OnePlayingSAEnded() и TFResult().