DayZ 1.24
Loading...
Searching...
No Matches
OpenableBehaviour.c
Go to the documentation of this file.
2{
3 protected bool m_IsOpened;
4
5 void OpenableBehaviour(bool bState = true)
6 {
8 }
9
10 void Open()
11 {
12 SetState(true);
13 }
14
15 void Close()
16 {
17 SetState(false);
18 }
19
20 bool IsOpened()
21 {
22 return GetState();
23 }
24
25 protected void SetState(bool bState)
26 {
28 }
29
30 protected bool GetState()
31 {
32 return m_IsOpened;
33 }
34}
void OpenableBehaviour(bool bState=true)
void SetState(bool bState)