Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BoolEditorAttributeVar.c
Go to the documentation of this file.
1 /*
2 class SCR_BoolEditorAttributeVar: SCR_BaseEditorAttributeVar
3 {
4  private bool m_bValue;
5 
6  bool GetValue()
7  {
8  return m_bValue;
9  }
10  void SetValue(bool value)
11  {
12  m_bValue = value;
13  }
14 
15  override bool PropCompareScripted(SSnapSerializerBase snapshot)
16  {
17  return snapshot.Compare(m_bValue, 1);
18  }
19  override bool ExtractScripted(SSnapSerializerBase snapshot)
20  {
21  snapshot.SerializeBytes(m_bValue, 1);
22  return true;
23  }
24  override bool InjectScripted(SSnapSerializerBase snapshot)
25  {
26  snapshot.SerializeBytes(m_bValue, 1);
27  return true;
28  }
29 
30  void SCR_BoolEditorAttributeVar(bool value)
31  {
32  m_bValue = value;
33  }
34 };
35 */