DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ScriptAnalytics.c
См. документацию.
1// class binded to engine
34
35// class binded to engine
40 string m_Cause;
41 string m_WeaponName;
42 float m_Distance;
44
46};
47
48// class binded to engine
57
58// class binded to engine
64
65// class binded to engine
74
75// class binded to engine
77{
78 void StatsEventData(string eventName)
79 {
80 m_eventName = eventName;
86 }
87
88 void AddBool(string key, bool value)
89 {
90 m_valuesBool.Insert(key, (int)value);
91 }
92
93 void AddInt(string key, int value)
94 {
95 m_valuesInt.Insert(key, value);
96 }
97
98 void AddFloat(string key, float value)
99 {
100 m_valuesFloat.Insert(key, value);
101 }
102
103 void AddString(string key, string value)
104 {
105 m_valuesString.Insert(key, value);
106 }
107
108 void AddVector(string key, vector value)
109 {
110 m_valuesVector.Insert(key, value);
111 }
112
113 private string m_eventName;
114 private autoptr map<string, int> m_valuesBool;//TODO: use bool instead of int (problem with engine type binding)
119}
120
121
122class ScriptAnalytics
123{
125 static proto native void SendPlayerDeath(StatsEventDeathData data);
126
128 static proto native void SendPlayerScoredKill(StatsEventScoredKillData data);
129
132
134 static proto native void SendPlayerMeasures(StatsEventMeasuresData data);
135
137 static proto native void SendPlayerSpawned(StatsEventSpawnedData data);
138
140 static proto native void SendEvent(StatsEventData data);
141};
142
143
144
146{
147 // send stats data with log
149 {
150 ScriptAnalytics.SendPlayerDeath(data);
151 }
152
153 // send stats data with log
155 {
156 ScriptAnalytics.SendPlayerScoredKill(data);
157 }
158
159 // send stats data with log
161 {
162 ScriptAnalytics.SendPlayerDisconnected(data);
163 }
164
165 // send stats data with log
167 {
168 ScriptAnalytics.SendPlayerMeasures(data);
169 }
170
171 // send stats data with log
173 {
174 ScriptAnalytics.SendPlayerSpawned(data);
175 }
176}
map
Определения ControlsXboxNew.c:4
static proto native void SendEvent(StatsEventData data)
universal analytics event
static proto native void SendPlayerScoredKill(StatsEventScoredKillData data)
send event about kill to statistic DB
static proto native void SendPlayerMeasures(StatsEventMeasuresData data)
send event about player status to statistic DB
class StatsEventData SendPlayerDeath(StatsEventDeathData data)
send event about death to statistic DB
static proto native void SendPlayerDisconnected(StatsEventDisconnectedData data)
send event to statistic DB
static proto native void SendPlayerSpawned(StatsEventSpawnedData data)
send event about spawning to statistic DB
static void PlayerDisconnected(StatsEventDisconnectedData data)
Определения ScriptAnalytics.c:160
static void PlayerMeasures(StatsEventMeasuresData data)
Определения ScriptAnalytics.c:166
static void PlayerSpawned(StatsEventSpawnedData data)
Определения ScriptAnalytics.c:172
static void PlayerDeath(StatsEventDeathData data)
Определения ScriptAnalytics.c:148
static void PlayerScoredKill(StatsEventScoredKillData data)
Определения ScriptAnalytics.c:154
Определения ScriptAnalytics.c:146
autoptr map< string, int > m_valuesBool
Определения ScriptAnalytics.c:114
autoptr map< string, int > m_valuesInt
Определения ScriptAnalytics.c:115
autoptr map< string, vector > m_valuesVector
Определения ScriptAnalytics.c:118
void AddBool(string key, bool value)
Определения ScriptAnalytics.c:88
void StatsEventData(string eventName)
Определения ScriptAnalytics.c:78
void AddInt(string key, int value)
Определения ScriptAnalytics.c:93
autoptr map< string, float > m_valuesFloat
Определения ScriptAnalytics.c:116
void AddFloat(string key, float value)
Определения ScriptAnalytics.c:98
autoptr map< string, string > m_valuesString
Определения ScriptAnalytics.c:117
string m_eventName
Определения ScriptAnalytics.c:113
void AddVector(string key, vector value)
Определения ScriptAnalytics.c:108
void AddString(string key, string value)
Определения ScriptAnalytics.c:103
Определения ScriptAnalytics.c:77
vector m_Position
position of player when died
Определения ScriptAnalytics.c:43
string m_Cause
cause of death (hunger, sickness, player-killed, zombie-killed...)
Определения ScriptAnalytics.c:40
string m_WeaponName
name of weapon which caused death
Определения ScriptAnalytics.c:41
float m_Distance
distance in meters (rounded) from spawn position to death position
Определения ScriptAnalytics.c:42
int m_ListDamages[5]
list of damages (5 values) during last n sec. For example: {20, 80, 0, 0, 0}
Определения ScriptAnalytics.c:45
int m_CharacterLifetime
lifetime of character in seconds
Определения ScriptAnalytics.c:39
string m_CharacterId
character ID
Определения ScriptAnalytics.c:38
string m_CharacterId
character ID
Определения ScriptAnalytics.c:61
string m_Reason
reason of disconnect (quit, kick, ban, sign-out...)
Определения ScriptAnalytics.c:62
int m_TemperatureStatus
state of temperature (current state)
Определения ScriptAnalytics.c:30
int m_CntFiredAmmo
firearm rounds fired during interval
Определения ScriptAnalytics.c:23
int m_FoodStatus
state of food (hunger) (current state)
Определения ScriptAnalytics.c:31
int m_CntConsumedFood
count of consumed food during interval
Определения ScriptAnalytics.c:20
int m_CntKillInfected
count of infected kills during interval
Определения ScriptAnalytics.c:19
vector m_PositionStart
player world position at the start of interval
Определения ScriptAnalytics.c:7
int m_BloodStatus
state of blood (current state)
Определения ScriptAnalytics.c:28
float m_DistanceVehicle
traveled distance (meters) in vehicle during interval
Определения ScriptAnalytics.c:11
int m_CntLootAny
count of any loot collected during interval
Определения ScriptAnalytics.c:14
int m_CntLootCloth
count of cloth collected during interval
Определения ScriptAnalytics.c:16
int m_TimeInterval
amount of real time in seconds covered by this event
Определения ScriptAnalytics.c:5
int m_CntCraftedItem
number of items crafted during interval
Определения ScriptAnalytics.c:24
int m_CntLootAmmo
count of ammo collected during interval
Определения ScriptAnalytics.c:18
int m_CntConsumedWater
count of consumed water during interval
Определения ScriptAnalytics.c:21
float m_TimeVONIn
amount of time in seconds with inbound VON during interval
Определения ScriptAnalytics.c:12
float m_TimeVONOut
amount of time in seconds with outbound VON during interval
Определения ScriptAnalytics.c:13
int m_DaytimeHour
current daytime in gameplay (hour in 24h format)
Определения ScriptAnalytics.c:6
int m_HealthRestored
number of health point restored during interval
Определения ScriptAnalytics.c:22
int m_SicknessStatus
state of sickness (current state)
Определения ScriptAnalytics.c:29
int m_CntLootFirearm
count of firearms collected during interval
Определения ScriptAnalytics.c:17
vector m_PositionEnd
player world position at the end of interval
Определения ScriptAnalytics.c:8
string m_CharacterId
character ID
Определения ScriptAnalytics.c:4
int m_HydrationStatus
state of hydration (thirst) (current state)
Определения ScriptAnalytics.c:32
int m_CntLootFood
count of any food or consumables collected during interval
Определения ScriptAnalytics.c:15
float m_DistanceOnFoot
traveled distance on foot (meters) during interval
Определения ScriptAnalytics.c:9
int m_HealthStatus
state of health (current state)
Определения ScriptAnalytics.c:27
vector m_PositionKiller
position of killer
Определения ScriptAnalytics.c:54
string m_CharacterId
character ID
Определения ScriptAnalytics.c:51
int m_KillDistance
distance in meters (rounded) between killer and victim
Определения ScriptAnalytics.c:53
vector m_PositionVictim
position of victim
Определения ScriptAnalytics.c:55
string m_WeaponName
name of weapon which killed player (victim)
Определения ScriptAnalytics.c:52
int m_Lifetime
lifetime of character in seconds
Определения ScriptAnalytics.c:69
int m_DaytimeHour
current time in hour (hour in 24h)
Определения ScriptAnalytics.c:72
int m_Population
population of current gameplay (server)
Определения ScriptAnalytics.c:71
vector m_Position
position of spawn
Определения ScriptAnalytics.c:70
string m_CharacterId
character ID
Определения ScriptAnalytics.c:68
Определения EnConvert.c:106