Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignClientData.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
4 {
5  protected string m_sID;
6  protected int m_iXP;
7  protected int m_iFaction = -1;
8  protected float m_fLastSuicideTimestamp;
9  protected float m_fRespawnPenalty;
10  protected float m_fLastPenaltyDeductionTimestamp;
11  protected WorldTimestamp m_fNextTravelAvailableAt;
12 
13  //------------------------------------------------------------------------------------------------
15  void SetID(string ID)
16  {
17  m_sID = ID;
18  }
19 
20  //------------------------------------------------------------------------------------------------
22  string GetID()
23  {
24  return m_sID;
25  }
26 
27  //------------------------------------------------------------------------------------------------
29  void SetXP(int XP)
30  {
31  m_iXP = XP;
32  }
33 
34  //------------------------------------------------------------------------------------------------
36  int GetXP()
37  {
38  return m_iXP;
39  }
40 
41  //------------------------------------------------------------------------------------------------
43  void SetFactionIndex(int faction)
44  {
45  m_iFaction = faction;
46  }
47 
48  //------------------------------------------------------------------------------------------------
50  int GetFactionIndex()
51  {
52  return m_iFaction;
53  }
54 
55  //------------------------------------------------------------------------------------------------
56  void SetRespawnPenalty(float penalty)
57  {
58  m_fRespawnPenalty = Math.Max(0, penalty);
59  }
60 
61  //------------------------------------------------------------------------------------------------
62  float GetRespawnPenalty()
63  {
64  return m_fRespawnPenalty;
65  }
66 
67  //------------------------------------------------------------------------------------------------
68  void SetLastSuicideTimestamp(float timestamp)
69  {
70  m_fLastSuicideTimestamp = timestamp;
71  }
72 
73  //------------------------------------------------------------------------------------------------
74  float GetLastSuicideTimestamp()
75  {
76  return m_fLastSuicideTimestamp;
77  }
78 
79  //------------------------------------------------------------------------------------------------
80  void SetLastPenaltyDeductionTimestamp(float timestamp)
81  {
82  m_fLastPenaltyDeductionTimestamp = timestamp;
83  }
84 
85  //------------------------------------------------------------------------------------------------
86  float GetLastPenaltyDeductionTimestamp()
87  {
88  return m_fLastPenaltyDeductionTimestamp;
89  }
90 
91  //------------------------------------------------------------------------------------------------
92  void SetNextFastTravelTimestamp(WorldTimestamp timestamp)
93  {
94  m_fNextTravelAvailableAt = timestamp;
95  }
96 
97  //------------------------------------------------------------------------------------------------
98  WorldTimestamp GetNextFastTravelTimestamp()
99  {
101  }
102 };
m_iFaction
protected int m_iFaction
Definition: SCR_CampaignMobileAssemblyStandaloneComponent.c:30
m_fNextTravelAvailableAt
protected WorldTimestamp m_fNextTravelAvailableAt
Definition: SCR_FastTravelComponent.c:29
SCR_CampaignClientData
Used for storing client data to be reapplied for reconnecting clients.
Definition: SCR_CampaignClientData.c:3