Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
openablebehaviour.c
Go to the documentation of this file.
2 {
3  protected bool m_IsOpened;
4 
5  void OpenableBehaviour(bool bState = true)
6  {
7  m_IsOpened = bState;
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  {
27  m_IsOpened = bState;
28  }
29 
30  protected bool GetState()
31  {
32  return m_IsOpened;
33  }
34 }
m_IsOpened
protected bool m_IsOpened
Definition: inventorymenu.c:12
OpenableBehaviour
Definition: openablebehaviour.c:1