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