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

◆ SoundLoadEx()

bool EffectSound::SoundLoadEx ( out SoundParams params)
inlineprotected

Loads in the sound when it is requested for playing through 'SoundPlayEx'.

Аргументы
paramsSoundParams Possibility of passing in an already existing SoundParams, else one will get created

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

301 {
302 if ( !m_SoundParams || !m_SoundParams.IsValid() )
303 {
304 if (!params)
305 {
306 params = new SoundParams( m_SoundSetName );
307 }
308
309 //Print("SoundLoad is loading..");
310 m_SoundParams = params;
311 if ( !m_SoundParams.IsValid() )
312 {
313 SoundError("Invalid sound set.");
314 return false;
315 }
316
319 {
320 m_SoundObjectBuilder.AddEnvSoundVariables(GetPosition());
321 }
322
323 m_SoundObject = m_SoundObjectBuilder.BuildSoundObject();
324
325 if ( m_SoundObject )
326 {
328 m_SoundObject.SetParent( m_ParentObject );
329 }
330 else
331 {
332 SoundError("m_SoundObject is null.");
333 }
334 }
335 else
336 {
337 //Print("SoundLoad is loaded.");
338 }
339
340 return true;
341 }
Object m_ParentObject
Cached parent.
Определения Effect.c:39
ref SoundParams m_SoundParams
Определения EffectSound.c:20
bool m_SetEnvVariables
Определения EffectSound.c:33
string m_SoundSetName
Определения EffectSound.c:31
void SoundError(string err_msg)
Helper for throwing sound errors.
Определения EffectSound.c:917
WaveKind m_SoundWaveKind
Определения EffectSound.c:30
ref SoundObjectBuilder m_SoundObjectBuilder
Определения EffectSound.c:21
ref SoundObject m_SoundObject
Определения EffectSound.c:22
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9
class SoundObject SoundParams(string name)

Перекрестные ссылки GetPosition, m_ParentObject, m_SetEnvVariables, m_SoundObject, m_SoundObjectBuilder, m_SoundParams, m_SoundSetName, m_SoundWaveKind, SoundError(), SoundObjectBuilder() и SoundParams().

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