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