DayZ 1.26
DayZ Explorer by KGB
|
Wrapper class for managing sound through SEffectManager. Подробнее...
Защищенные члены | |
EffectType | |
Information about what type of effect the Effect is, without the need for casting | |
override EffectType | GetEffectType () |
Get what type of effect the Effect is. | |
override bool | IsSound () |
Check whether the Effect is EffectSound without casting. | |
Playback | |
Methods to Play/Stop sound Generally, SEffectManager.PlaySound methods are used instead of SoundPlay | |
bool | SoundPlayEx (out SoundParams params) |
Plays sound. | |
bool | SoundPlay () |
Plays sound. | |
override void | Start () |
Plays sound. | |
void | SoundStop () |
Stops sound. | |
override void | Stop () |
Stops sound. | |
void | SoundReset () |
Resets EffectSound. | |
bool | IsSoundPlaying () |
Get whether EffectSound is currently playing. | |
override bool | IsPlaying () |
Returns true when the effect is playing, false otherwise. | |
Sound load | |
Methods regarding the loading of the sound, used in SoundPlay | |
bool | SoundLoadEx (out SoundParams params) |
Loads in the sound when it is requested for playing through 'SoundPlayEx'. | |
bool | SoundLoad () |
Loads in the sound when it is requested for playing. | |
bool | IsSoundValid () |
Helper for checking if params are valid. | |
void | ValidateSoundWave () |
Gets called to fill in the necessary data when the header has finished loading. | |
bool | SoundWaveValidation () |
Validation of fade settings. | |
void | UpdateEvents () |
Enables the frame event on the EffectSound. | |
Events | |
Various events that can be overriden for custom behaviour | |
override void | Event_OnFrameUpdate (float time_delta) |
Event called on frame when enabled by SetEnableEventFrame(true) | |
override void | Event_OnRegistered (int id) |
Event called from SEffectManager when the Effect is registered. | |
override void | Event_OnUnregistered () |
Event called from SEffectManager when the Effect is unregistered. | |
void | Event_OnSoundWaveStarted () |
Event called when sound starts playing. | |
void | Event_OnSoundWaveEnded () |
Event called when sound stops playing. | |
void | Event_OnSoundFadeInStopped () |
Event called when sound fade in stops. | |
void | Event_OnSoundFadeOutStarted () |
Event called when sound fade out starts. | |
AutoDestroy | |
Methods regarding automatic cleanup on stop | |
override void | SetAutodestroy (bool auto_destroy) |
Sets whether Effect automatically cleans up when it stops. | |
override bool | IsAutodestroy () |
Get whether Effect automatically cleans up when it stops. | |
void | SetSoundAutodestroy (bool auto_destroy) |
Sets whether EffectSound automatically cleans up when sound stops. | |
bool | IsSoundAutodestroy () |
Get whether EffectSound automatically cleans up when sound stops. | |
override bool | CanDestroy () |
Generic API | |
Setters and getters for generic data and properties | |
override void | SetParent (Object parent_obj) |
Set parent for the sound to follow. | |
override Object | GetParent () |
Get parent for the EffectSound. | |
override Object | GetCurrentParent () |
Get parent for the EffectSound. | |
override void | SetCurrentPosition (vector pos, bool updateCached=true) |
Set the world position of the managed sound. | |
override vector | GetCurrentPosition () |
Get the current world position of the managed sound. | |
override void | SetCurrentLocalPosition (vector pos, bool updateCached=true) |
Set the current local position of the managed sound. | |
override vector | GetCurrentLocalPosition () |
Get the current local position of the managed sound. | |
void | SetSoundWaveKind (WaveKind wave_kind) |
Set WaveKind for the sound. | |
void | SetSoundSet (string snd) |
Set soundset for the sound. | |
string | GetSoundSet () |
Get soundset for the sound. | |
void | SetSoundLoop (bool loop) |
Set if the sound loops. | |
void | SetEnviromentVariables (bool setEnvVariables) |
Sets whether AddEnvSoundVariables needs to be called during Loading. | |
float | GetSoundWaveLenght () |
Get the sound wave length. | |
float | GetSoundWaveLength () |
Get the sound wave length. | |
void | SetSoundVolume (float volume) |
Set the RELATIVE volume for the sound. | |
float | GetSoundVolume () |
Get the RELATIVE volume set by 'SetSoundVolume'. | |
void | SetSoundMaxVolume (float volume) |
Set the sound max volume. | |
float | GetSoundWaveTime () |
Get the time since EffectSound started playing. | |
void | SetSoundFadeIn (float fade_in) |
Set the sound fade in duration. | |
void | SetSoundFadeOut (float fade_out) |
Set the sound fade out duration. | |
void | SetDoppler (bool setDoppler) |
Set if the sound has the doppler effect enabled. | |
void | SoundError (string err_msg) |
Helper for throwing sound errors. | |
Защищенные данные | |
Sound objects and structures | |
Objects and structures for the sound | |
ref SoundParams | m_SoundParams |
ref SoundObjectBuilder | m_SoundObjectBuilder |
ref SoundObject | m_SoundObject |
AbstractWave | m_SoundWaveObject |
Generic data | |
Generic data for the sound | |
WaveKind | m_SoundWaveKind |
string | m_SoundSetName |
bool | m_SoundLoop |
bool | m_SetEnvVariables |
bool | m_SoundAutodestroy |
bool | m_SoundWaveIsPlaying |
float | m_SoundWaveLenght |
float | m_SoundWaveVolume |
float | m_SoundWaveVolumeMax |
float | m_SoundWaveTime |
int | m_SoundDoppler |
Закрытые данные | |
Event invokers | |
ScriptInvonkers for certain events | |
ref ScriptInvoker | Event_OnSoundWaveStarted = new ScriptInvoker() |
ref ScriptInvoker | Event_OnSoundWaveEnded = new ScriptInvoker() |
ref ScriptInvoker | Event_OnSoundFadeInStopped = new ScriptInvoker() |
ref ScriptInvoker | Event_OnSoundFadeOutStarted = new ScriptInvoker() |
Fading data | |
Data for fadein/fadeout for the sound | |
bool | m_SoundWaveStarting |
bool | m_SoundWaveStopping |
bool | m_SoundFadedOut |
float | m_SoundFadeInDuration |
float | m_SoundFadeOutStartTime |
float | m_SoundFadeOutDuration |
float | m_SoundFadeOutInitVolume |
void | EffectSound () |
ctor | |
void | ~EffectSound () |
dtor | |
override void | InitEffect () |
init | |
override string | GetDebugName () |
Override when getting debug information. | |
Wrapper class for managing sound through SEffectManager.
|
inlineprotected |
ctor
Перекрестные ссылки m_SoundAutodestroy, m_SoundDoppler, m_SoundFadedOut, m_SoundWaveKind, m_SoundWaveStopping, m_SoundWaveVolume и m_SoundWaveVolumeMax.
|
inlineprotected |
dtor
Перекрестные ссылки m_SoundFadeOutDuration и m_SoundWaveIsPlaying.
Event called on frame when enabled by SetEnableEventFrame(true)
time_delta | float Time passed since the previous frame |
Перекрестные ссылки Event_OnSoundFadeInStopped, Event_OnSoundFadeOutStarted, GetSoundVolume(), IsSoundPlaying(), m_SoundDoppler, m_SoundFadedOut, m_SoundFadeInDuration, m_SoundFadeOutDuration, m_SoundFadeOutInitVolume, m_SoundWaveObject, m_SoundWaveStarting, m_SoundWaveStopping, m_SoundWaveTime, m_SoundWaveVolumeMax, AbstractWave::SetDoppler(), SetSoundVolume() и AbstractWave::Stop().
Event called from SEffectManager when the Effect is registered.
id | int ID registered in SEffectManager |
Перекрестные ссылки SEffectManager::Event_OnSoundWaveEnded() и Event_OnSoundWaveEnded.
|
inlineprotected |
Event called when sound fade in stops.
Перекрестные ссылки Event_OnSoundFadeInStopped.
|
inlineprotected |
Event called when sound fade out starts.
Перекрестные ссылки Event_OnSoundFadeOutStarted.
|
inlineprotected |
Event called when sound stops playing.
Перекрестные ссылки Event_OnEffectEnded, Event_OnSoundWaveEnded и m_SoundWaveIsPlaying.
|
inlineprotected |
Event called when sound starts playing.
Перекрестные ссылки Event_OnEffectStarted, Event_OnSoundWaveStarted и m_SoundWaveIsPlaying.
Event called from SEffectManager when the Effect is unregistered.
Перекрестные ссылки SEffectManager::Event_OnSoundWaveEnded() и Event_OnSoundWaveEnded.
Get the current local position of the managed sound.
vector
The current local position of the managed sound Перекрестные ссылки GetLocalPosition(), GetParent(), GetPosition, m_SoundObject и vector::Zero.
Используется в SoundPlayEx().
Get parent for the EffectSound.
Object
The parent for the EffectSound Перекрестные ссылки m_SoundObject.
Get the current world position of the managed sound.
vector
The current world position of the managed sound Перекрестные ссылки GetPosition, m_ParentObject и m_SoundObject.
Override when getting debug information.
Перекрестные ссылки m_SoundSetName.
|
inlineprotected |
Get what type of effect the Effect is.
EffectType
What type of effect the Effect is Get parent for the EffectSound.
Object
The parent for the EffectSound Перекрестные ссылки m_SoundObject.
Используется в GetCurrentLocalPosition() и SetCurrentPosition().
|
inlineprotected |
Get soundset for the sound.
string
Name of the soundset Перекрестные ссылки m_SoundSetName.
|
inlineprotected |
Get the RELATIVE volume set by 'SetSoundVolume'.
float
The relative volume for the sound set by 'SetSoundVolume' Перекрестные ссылки m_SoundWaveVolume.
Используется в Event_OnFrameUpdate().
|
inlineprotected |
Get the sound wave length.
float
The sound wave length Перекрестные ссылки GetSoundWaveLength().
|
inlineprotected |
Get the sound wave length.
float
The sound wave length Перекрестные ссылки m_SoundWaveLenght.
Используется в GetSoundWaveLenght() и SoundWaveValidation().
|
inlineprotected |
Get the time since EffectSound started playing.
float
The time since EffectSound started playing Перекрестные ссылки m_SoundWaveTime.
init
Перекрестные ссылки Event_OnEffectEnded, Event_OnEffectStarted, Event_OnStarted и Event_OnStopped.
Get whether Effect automatically cleans up when it stops.
bool
Whether Effect automatically cleans up when it stops Перекрестные ссылки IsSoundAutodestroy().
Returns true when the effect is playing, false otherwise.
Перекрестные ссылки IsSoundPlaying().
Используется в FlashbangEffect::PlaySound().
Check whether the Effect is EffectSound without casting.
bool
Whether the Effect is EffectSound
|
inlineprotected |
Get whether EffectSound automatically cleans up when sound stops.
bool
Whether EffectSound automatically cleans up when sound stops Перекрестные ссылки m_SoundAutodestroy.
Используется в IsAutodestroy().
|
inlineprotected |
Get whether EffectSound is currently playing.
bool
Whether EffectSound is currently playing Перекрестные ссылки m_SoundWaveIsPlaying.
Используется в Event_OnFrameUpdate(), IsPlaying(), InventoryItem::OnRPC(), ActionBuildShelter::PlayActionLoopSound(), PlayEmptyingLoopSound(), PlayPouringLoopSound() и SoundStop().
|
inlineprotected |
Sets whether Effect automatically cleans up when it stops.
auto_destroy | bool Whether Effect automatically cleans up when it stops |
Перекрестные ссылки m_SoundAutodestroy.
Используется в Land_WarheadStorage_Main::OnDoorCloseStart(), Land_WarheadStorage_Main::OnDoorOpenStart(), InventoryItem::PlayDeployFinishSound(), InventoryItem::PlayDeployLoopSoundEx(), InventoryItem::PlayDeploySound(), InventoryItem::PlayPlaceSound(), FlashbangEffect::PlaySound(), PlaySound() и SetSoundAutodestroy().
Set the current local position of the managed sound.
pos | vector The current local position for the managed sound |
updateCached | bool Whether to update the cached variable |
Перекрестные ссылки m_SoundObject.
Используется в SoundPlayEx().
Set the world position of the managed sound.
pos | vector The world position of the managed sound |
updateCached | bool Whether to update the cached variable |
Перекрестные ссылки GetParent() и m_SoundObject.
Set if the sound has the doppler effect enabled.
setDoppler | float If the doppler effect is enabled |
bool is a fancy int, ensure the bool is 0 or 1 and don't allow -1 here since resetting isn't supported
Перекрестные ссылки m_SoundDoppler.
Sets whether AddEnvSoundVariables needs to be called during Loading.
setEnvVariables | bool Whether AddEnvSoundVariables is called |
Перекрестные ссылки m_SetEnvVariables.
Set parent for the sound to follow.
parent_obj | Object The parent for the sound to follow |
Перекрестные ссылки m_SoundObject.
Используется в FlashbangEffect::PlaySound().
Sets whether EffectSound automatically cleans up when sound stops.
auto_destroy | bool Whether EffectSound automatically cleans up when sound stops |
Перекрестные ссылки SetAutodestroy().
Set the sound fade in duration.
fade_in | float The fade in duration |
Перекрестные ссылки m_SoundFadeInDuration.
Используется в FlashbangEffect::PlaySound().
Set the sound fade out duration.
fade_out | float The fade out duration |
Перекрестные ссылки m_SoundFadeOutDuration.
Используется в FlashbangEffect::PlaySound(), ActionBuildShelter::StopActionLoopSound() и InventoryItem::StopDeployLoopSoundEx().
Set if the sound loops.
loop | bool Whether the sound should loop |
Перекрестные ссылки AbstractWave::Loop(), m_SoundLoop и m_SoundWaveObject.
Используется в FlashbangEffect::PlaySound() и ValidateSoundWave().
Set the sound max volume.
volume | float The maximum volume for the sound |
Перекрестные ссылки m_SoundWaveObject, m_SoundWaveVolume, m_SoundWaveVolumeMax и AbstractWave::SetVolumeRelative().
Используется в FlashbangEffect::PlaySound().
Set soundset for the sound.
snd | string Name of the soundset to play |
Перекрестные ссылки m_SoundSetName.
Set the RELATIVE volume for the sound.
volume | float The relative volume for the sound |
Перекрестные ссылки m_SoundWaveObject, m_SoundWaveVolume и AbstractWave::SetVolumeRelative().
Используется в Event_OnFrameUpdate() и ProcessSound().
Set WaveKind for the sound.
wave_kind | WaveKind The WaveKind for the sound |
Перекрестные ссылки m_SoundWaveKind.
Используется в FlashbangEffect::PlaySound().
Helper for throwing sound errors.
Перекрестные ссылки ErrorEx и m_SoundSetName.
Используется в SoundLoadEx(), SoundPlayEx() и SoundWaveValidation().
|
inlineprotected |
Loads in the sound when it is requested for playing.
Перекрестные ссылки SoundLoadEx().
|
inlineprotected |
Loads in the sound when it is requested for playing through 'SoundPlayEx'.
params | SoundParams Possibility of passing in an already existing SoundParams, else one will get created |
Перекрестные ссылки GetPosition, m_ParentObject, m_SetEnvVariables, m_SoundObject, m_SoundObjectBuilder, m_SoundParams, m_SoundSetName, m_SoundWaveKind, SoundError() и SoundObjectBuilder().
Используется в SoundLoad() и SoundPlayEx().
|
inlineprotected |
Plays sound.
bool
Whether the sound will start playing Перекрестные ссылки SoundPlayEx().
Используется в PlayIntense(), PlayLight(), FlashbangEffect::PlaySound() и Start().
|
inlineprotected |
Plays sound.
params | SoundParams Sound Parameters for the sound |
bool
Whether the sound will start playing Перекрестные ссылки GetCurrentLocalPosition(), AbstractWave::GetEvents(), GetGame(), GetPosition, AbstractWave::IsHeaderLoaded(), m_ParentObject, m_SetEnvVariables, m_SoundObject, m_SoundObjectBuilder, m_SoundParams, m_SoundSetName, m_SoundWaveKind, m_SoundWaveObject, SetCurrentLocalPosition(), SoundError(), SoundLoadEx() и ValidateSoundWave().
Используется в SoundPlay().
|
inlineprotected |
Resets EffectSound.
Перекрестные ссылки m_IsPlaying, m_SoundFadedOut, m_SoundFadeOutInitVolume, m_SoundFadeOutStartTime, m_SoundWaveIsPlaying, m_SoundWaveObject, m_SoundWaveStopping, m_SoundWaveTime, m_SoundWaveVolume, m_SoundWaveVolumeMax, AbstractWave::SetVolumeRelative() и AbstractWave::Stop().
Используется в SoundStop().
|
inlineprotected |
Stops sound.
Перекрестные ссылки IsPendingDeletion(), IsSoundPlaying(), m_SoundFadedOut, m_SoundFadeOutDuration, m_SoundFadeOutStartTime, m_SoundWaveObject, m_SoundWaveStarting, m_SoundWaveStopping, m_SoundWaveTime, SoundReset() и AbstractWave::Stop().
Используется в BuildingSuper::EEDelete(), ItemBase::OnIsCharged(), PlayIntense(), PlayLight(), Stop(), ActionBuildShelter::StopActionLoopSound(), StopAllMusic(), ItemBase::StopChargedAlarm(), ItemBase::StopChargingSound(), InventoryItem::StopDeployLoopSoundEx(), StopEmptyingLoopSound(), StopPouringLoopSound(), FlashbangEffect::StopSound(), FlareSimulation::~FlareSimulation() и InventoryItem::~ItemBase().
|
inlineprotected |
Validation of fade settings.
Перекрестные ссылки GetSoundWaveLength(), m_SoundFadeInDuration, m_SoundFadeOutDuration и SoundError().
Используется в ValidateSoundWave().
Stops sound.
Перекрестные ссылки SoundStop().
Используется в Land_Underground_Stairs_Exit::HandleAudioPlayback(), FireworksLauncher::OnFiringStartClient(), FireworksLauncherClientEvent::PlayExplosionSound(), Edible_Base::SoundCookingStop(), GeyserTrigger::StopEffects(), GeyserTrigger::UpdateGeyserState() и ~UndergroundHandlerClient().
|
inlineprotected |
Enables the frame event on the EffectSound.
Перекрестные ссылки m_SoundWaveObject и SetEnableEventFrame().
Используется в ValidateSoundWave().
|
inlineprotected |
Gets called to fill in the necessary data when the header has finished loading.
Перекрестные ссылки Event_OnSoundWaveEnded, Event_OnSoundWaveStarted, AbstractWave::GetEvents(), AbstractWave::GetLength(), m_SoundFadeInDuration, m_SoundFadeOutStartTime, m_SoundLoop, m_SoundWaveLenght, m_SoundWaveObject, m_SoundWaveStarting, Print(), SetSoundLoop(), AbstractWave::SetVolumeRelative(), SoundWaveValidation(), AbstractWave::Stop(), ToString() и UpdateEvents().
Используется в SoundPlayEx().
|
private |
Используется в Event_OnFrameUpdate() и Event_OnSoundFadeInStopped().
|
private |
Используется в Event_OnFrameUpdate() и Event_OnSoundFadeOutStarted().
|
private |
Используется в Event_OnRegistered(), Event_OnSoundWaveEnded(), Event_OnUnregistered() и ValidateSoundWave().
|
private |
Используется в Event_OnSoundWaveStarted() и ValidateSoundWave().
|
protected |
Используется в SetEnviromentVariables(), SoundLoadEx() и SoundPlayEx().
|
protected |
Используется в EffectSound(), IsSoundAutodestroy() и SetAutodestroy().
|
protected |
Используется в EffectSound(), Event_OnFrameUpdate() и SetDoppler().
|
protected |
Используется в EffectSound(), Event_OnFrameUpdate(), SoundReset() и SoundStop().
|
protected |
Используется в Event_OnFrameUpdate(), SetSoundFadeIn(), SoundWaveValidation() и ValidateSoundWave().
|
protected |
Используется в CanDestroy(), Event_OnFrameUpdate(), SetSoundFadeOut(), SoundStop() и SoundWaveValidation().
|
protected |
Используется в Event_OnFrameUpdate() и SoundReset().
|
protected |
Используется в SoundReset(), SoundStop() и ValidateSoundWave().
|
protected |
Используется в SetSoundLoop() и ValidateSoundWave().
|
protected |
|
protected |
Используется в SoundLoadEx() и SoundPlayEx().
|
protected |
Используется в IsSoundValid(), SoundLoadEx() и SoundPlayEx().
|
protected |
Используется в GetDebugName(), GetSoundSet(), SetSoundSet(), SoundError(), SoundLoadEx() и SoundPlayEx().
|
protected |
Используется в CanDestroy(), Event_OnSoundWaveEnded(), Event_OnSoundWaveStarted(), IsSoundPlaying() и SoundReset().
|
protected |
Используется в EffectSound(), SetSoundWaveKind(), SoundLoadEx() и SoundPlayEx().
|
protected |
Используется в GetSoundWaveLength() и ValidateSoundWave().
|
protected |
|
protected |
Используется в Event_OnFrameUpdate(), SoundStop() и ValidateSoundWave().
|
protected |
Используется в EffectSound(), Event_OnFrameUpdate(), SoundReset() и SoundStop().
|
protected |
Используется в Event_OnFrameUpdate(), GetSoundWaveTime(), SoundReset() и SoundStop().
|
protected |
Используется в EffectSound(), GetSoundVolume(), SetSoundMaxVolume(), SetSoundVolume() и SoundReset().
|
protected |
Используется в EffectSound(), Event_OnFrameUpdate(), SetSoundMaxVolume() и SoundReset().