DayZ 1.24
Loading...
Searching...
No Matches
AnniversaryMusicSource.c File Reference

Go to the source code of this file.

Enumerations

enum  EAnniversaryMusicStates { INVALID , LIGHT , INTENSE }
 

Functions

void AnniversaryMusicSource ()
 
override void EEDelete (EntityAI parent)
 
override void OnVariablesSynchronized ()
 
void UpdateMusic ()
 
void SetIntenseServer ()
 
void SetLightServer ()
 
void SetInvalidServer ()
 
void PlayIntense ()
 
void PlayLight ()
 
void StopAllMusic ()
 

Variables

enum EAnniversaryMusicStates SOUND_INTENSE = "AnniversaryMusic_Intense_SoundSet"
 
const string SOUND_LIGHT = "AnniversaryMusic_Light_SoundSet"
 
EffectSound m_LightAmbientSound
 
EffectSound m_IntenseAmbientSound
 
int m_MusicState
 
int m_MusicStateLocal
 

Enumeration Type Documentation

◆ EAnniversaryMusicStates

Enumerator
INVALID 
LIGHT 
INTENSE 

Definition at line 1 of file AnniversaryMusicSource.c.

2{
4 LIGHT,
6}

Function Documentation

◆ AnniversaryMusicSource()

void AnniversaryMusicSource ( )
protected

Definition at line 21 of file AnniversaryMusicSource.c.

22 {
25
26 RegisterNetSyncVariableInt("m_MusicState", 0, EnumTools.GetEnumSize(EAnniversaryMusicStates));
27 }
int m_MusicState
int m_MusicStateLocal
EAnniversaryMusicStates
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition EnConvert.c:620

References EnumTools::GetEnumSize(), m_MusicState, and m_MusicStateLocal.

◆ EEDelete()

override void EEDelete ( EntityAI parent)
protected

Definition at line 29 of file AnniversaryMusicSource.c.

30 {
31 super.EEDelete(parent);
32
33#ifndef SERVER
36
39#endif
40 }
EffectSound m_IntenseAmbientSound
EffectSound m_LightAmbientSound
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.

References SEffectManager::DestroyEffect(), m_IntenseAmbientSound, and m_LightAmbientSound.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 42 of file AnniversaryMusicSource.c.

43 {
44 super.OnVariablesSynchronized();
45
47 {
49#ifndef SERVER
51#endif
52 }
53 }
void UpdateMusic()

References m_MusicState, m_MusicStateLocal, and UpdateMusic().

◆ PlayIntense()

void PlayIntense ( )
protected

Definition at line 102 of file AnniversaryMusicSource.c.

103 {
104#ifndef SERVER
107#endif
108 }
bool SoundPlay()
Plays sound.
void SoundStop()
Stops sound.

References m_IntenseAmbientSound, m_LightAmbientSound, EffectSound::SoundPlay(), and EffectSound::SoundStop().

Referenced by UpdateMusic().

◆ PlayLight()

void PlayLight ( )
protected

Definition at line 110 of file AnniversaryMusicSource.c.

111 {
112#ifndef SERVER
115#endif
116 }

References m_IntenseAmbientSound, m_LightAmbientSound, EffectSound::SoundPlay(), and EffectSound::SoundStop().

Referenced by UpdateMusic().

◆ SetIntenseServer()

void SetIntenseServer ( )
protected

Definition at line 82 of file AnniversaryMusicSource.c.

83 {
85 SetSynchDirty();
86 }

References m_MusicState.

◆ SetInvalidServer()

void SetInvalidServer ( )
protected

Definition at line 96 of file AnniversaryMusicSource.c.

97 {
99 SetSynchDirty();
100 }

References m_MusicState.

◆ SetLightServer()

void SetLightServer ( )
protected

Definition at line 89 of file AnniversaryMusicSource.c.

90 {
92 SetSynchDirty();
93 }

References m_MusicState.

◆ StopAllMusic()

void StopAllMusic ( )
protected

Definition at line 118 of file AnniversaryMusicSource.c.

119 {
120#ifndef SERVER
123#endif
124 }

References m_IntenseAmbientSound, m_LightAmbientSound, and EffectSound::SoundStop().

Referenced by UpdateMusic().

◆ UpdateMusic()

void UpdateMusic ( )
protected

Definition at line 55 of file AnniversaryMusicSource.c.

56 {
57#ifndef SERVER
60
63#endif
64
65 switch (m_MusicState)
66 {
67 case EAnniversaryMusicStates.LIGHT:
68 PlayLight();
69 break;
70
71 case EAnniversaryMusicStates.INTENSE:
73 break;
74
75 default:
77 break;
78 }
79 }
void PlayIntense()
void StopAllMusic()
enum EAnniversaryMusicStates SOUND_INTENSE
const string SOUND_LIGHT
void PlayLight()
class JsonUndergroundAreaTriggerData GetPosition
static EffectSound CreateSound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false, bool enviroment=false)
Create an EffectSound.

References SEffectManager::CreateSound(), GetPosition, m_IntenseAmbientSound, m_LightAmbientSound, m_MusicState, PlayIntense(), PlayLight(), SOUND_INTENSE, SOUND_LIGHT, and StopAllMusic().

Referenced by OnVariablesSynchronized(), and ScriptedWidgetEventHandler::OptionsMenuSounds().

Variable Documentation

◆ m_IntenseAmbientSound

EffectSound m_IntenseAmbientSound
protected

Definition at line 15 of file AnniversaryMusicSource.c.

Referenced by EEDelete(), PlayIntense(), PlayLight(), StopAllMusic(), and UpdateMusic().

◆ m_LightAmbientSound

EffectSound m_LightAmbientSound
protected

Definition at line 14 of file AnniversaryMusicSource.c.

Referenced by EEDelete(), PlayIntense(), PlayLight(), StopAllMusic(), and UpdateMusic().

◆ m_MusicState

◆ m_MusicStateLocal

int m_MusicStateLocal
protected

Definition at line 19 of file AnniversaryMusicSource.c.

Referenced by AnniversaryMusicSource(), and OnVariablesSynchronized().

◆ SOUND_INTENSE

enum EAnniversaryMusicStates SOUND_INTENSE = "AnniversaryMusic_Intense_SoundSet"

Referenced by UpdateMusic().

◆ SOUND_LIGHT

const string SOUND_LIGHT = "AnniversaryMusic_Light_SoundSet"
private

Definition at line 11 of file AnniversaryMusicSource.c.

Referenced by UpdateMusic().