Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ScoreInfo.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
7 {
8  int m_iKills = 0;
9  int m_iTeamKills = 0;
10  int m_iDeaths = 0;
11  int m_iSuicides = 0;
12  int m_iObjectives = 0;
13 
14  //------------------------------------------------------------------------------------------------
15  /*
16  Serialize current state into buffer via provided writer.
17  */
18  bool RplSave(ScriptBitWriter writer)
19  {
20  writer.WriteInt(m_iKills);
21  writer.WriteInt(m_iTeamKills);
22  writer.WriteInt(m_iDeaths);
23  writer.WriteInt(m_iSuicides);
24  writer.WriteInt(m_iObjectives);
25  return true;
26  }
27 
28  //------------------------------------------------------------------------------------------------
29  /*
30  Deserialize state of scoring into buffer via provided reader.
31  */
32  bool RplLoad(ScriptBitReader reader)
33  {
34  reader.ReadInt(m_iKills);
35  reader.ReadInt(m_iTeamKills);
36  reader.ReadInt(m_iDeaths);
37  reader.ReadInt(m_iSuicides);
38  reader.ReadInt(m_iObjectives);
39  return true;
40  }
41 
42  //------------------------------------------------------------------------------------------------
46  void Clear()
47  {
48  m_iKills = 0;
49  m_iTeamKills = 0;
50  m_iDeaths = 0;
51  m_iSuicides = 0;
52  m_iObjectives = 0;
53  }
54 };
SCR_ScoreInfo
Definition: SCR_ScoreInfo.c:6