DayZ 1.24
Loading...
Searching...
No Matches
AnniversarySpotLight Class Reference
Inheritance diagram for AnniversarySpotLight:
[legend]
Collaboration diagram for AnniversarySpotLight:
[legend]

Protected Member Functions

void AnniversarySpotLight ()
 
override void OnVariablesSynchronized ()
 
override void EEDelete (EntityAI parent)
 
void DeActivate ()
 
void Activate ()
 

Protected Attributes

AnniversaryMainLight m_Light
 
bool m_LightState
 

Detailed Description

Definition at line 1 of file AnniversarySpotLight.c.

Constructor & Destructor Documentation

◆ AnniversarySpotLight()

void AnniversarySpotLight::AnniversarySpotLight ( )
inlineprotected

Definition at line 9 of file AnniversarySpotLight.c.

10 {
11 RegisterNetSyncVariableBool("m_LightState");
12 }

Member Function Documentation

◆ Activate()

void AnniversarySpotLight::Activate ( )
inlineprotected

Definition at line 45 of file AnniversarySpotLight.c.

46 {
47 m_LightState = true;
48 SetSynchDirty();
49 }

References m_LightState.

◆ DeActivate()

void AnniversarySpotLight::DeActivate ( )
inlineprotected

Definition at line 39 of file AnniversarySpotLight.c.

40 {
41 m_LightState = false;
42 SetSynchDirty();
43 }

References m_LightState.

◆ EEDelete()

override void AnniversarySpotLight::EEDelete ( EntityAI parent)
inlineprotected

Definition at line 29 of file AnniversarySpotLight.c.

30 {
31 super.EEDelete(parent);
32
33#ifndef SERVER
34 if (m_Light)
35 m_Light.Destroy();
36#endif
37 }
AnniversaryMainLight m_Light

References m_Light.

◆ OnVariablesSynchronized()

override void AnniversarySpotLight::OnVariablesSynchronized ( )
inlineprotected

Definition at line 14 of file AnniversarySpotLight.c.

15 {
16 super.OnVariablesSynchronized();
17
18#ifndef SERVER
19 if (m_LightState)
21 else
22 {
23 if (m_Light)
24 m_Light.FadeOut(0.5);
25 }
26#endif
27 }
class JsonUndergroundAreaTriggerData GetPosition

References GetPosition, m_Light, and m_LightState.

Member Data Documentation

◆ m_Light

AnniversaryMainLight AnniversarySpotLight::m_Light
protected

Definition at line 4 of file AnniversarySpotLight.c.

Referenced by EEDelete(), and OnVariablesSynchronized().

◆ m_LightState

bool AnniversarySpotLight::m_LightState
protected

Definition at line 7 of file AnniversarySpotLight.c.

Referenced by Activate(), DeActivate(), and OnVariablesSynchronized().


The documentation for this class was generated from the following file: