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

Protected Member Functions

void Compass ()
 
override void Open ()
 
override void Close ()
 
override bool IsOpen ()
 
void UpdateVisualState ()
 
override void OnVariablesSynchronized ()
 
override void SetActions ()
 

Protected Attributes

ref OpenableBehaviour m_Openable
 

Detailed Description

Definition at line 1 of file Compass.c.

Constructor & Destructor Documentation

◆ Compass()

void Compass::Compass ( )
inlineprotected

Definition at line 5 of file Compass.c.

6 {
7 m_Openable = new OpenableBehaviour(false);
8
9 RegisterNetSyncVariableBool("m_Openable.m_IsOpened");
10
12 }
void UpdateVisualState()
Definition Compass.c:35
ref OpenableBehaviour m_Openable
Definition Compass.c:3

References m_Openable, and UpdateVisualState().

Member Function Documentation

◆ Close()

override void Compass::Close ( )
inlineprotected

Definition at line 22 of file Compass.c.

23 {
24 m_Openable.Close();
25 SetSynchDirty();
26
28 }

References m_Openable, and UpdateVisualState().

◆ IsOpen()

override bool Compass::IsOpen ( )
inlineprotected

Definition at line 30 of file Compass.c.

31 {
32 return m_Openable.IsOpened();
33 }

References m_Openable.

Referenced by UpdateVisualState().

◆ OnVariablesSynchronized()

override void Compass::OnVariablesSynchronized ( )
inlineprotected

Definition at line 43 of file Compass.c.

44 {
45 super.OnVariablesSynchronized();
46
48 }

References UpdateVisualState().

◆ Open()

override void Compass::Open ( )
inlineprotected

Definition at line 14 of file Compass.c.

15 {
16 m_Openable.Open();
17 SetSynchDirty();
18
20 }

References m_Openable, and UpdateVisualState().

◆ SetActions()

override void Compass::SetActions ( )
inlineprotected

Definition at line 50 of file Compass.c.

51 {
52 super.SetActions();
53
57 }
void AddAction(typename actionName)

References AddAction().

◆ UpdateVisualState()

void Compass::UpdateVisualState ( )
inlineprotected

Definition at line 35 of file Compass.c.

36 {
37 if (IsOpen())
38 SetAnimationPhase("cover", 1.0);
39 else
40 SetAnimationPhase("cover", 0.0);
41 }
override bool IsOpen()
Definition Compass.c:30

References IsOpen().

Referenced by Close(), Compass(), OnVariablesSynchronized(), and Open().

Member Data Documentation

◆ m_Openable

ref OpenableBehaviour Compass::m_Openable
protected

Definition at line 3 of file Compass.c.

Referenced by Close(), Compass(), IsOpen(), and Open().


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