Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AnalyticsApplicationData.c
Go to the documentation of this file.
1// These are structs which are sent as tables to analytics. The attributes are reflected as columns in
2// said tables. The column name is the same as the attribute name, therefore we need to name our attributes
3// the same as we want them in our analytical tables.
4//
5// SCR_AnalyticsData
6// |- SCR_InventoryData: cnt_inv_interactions_vertical, cnt_inv_interactions_character_storage, ...
7// |- SCR_VotingResultData: flag_vote_success
8// |- SCR_TimeSpentData: amt_time_spent
9// |- SCR_CourseEndData: amt_course_name, amt_course_end_reason
10// |- SCR_SettingsTimeSpentData: array_settings_changed
11// |- SCR_MenuTimeSpentData: cnt_menu_reopen
12// |- SCR_FieldManualTimeSpentData: amt_name_location
13// |- SCR_MenuInteractedData: array_menu_interactions
14class SCR_AnalyticsData : Managed
15{
16 //------------------------------------------------------------------------------------------------
18 string ToPrettyString()
19 {
20 return string.Format("%1{%2}", ClassName(), GetData());
21 }
22
23 //------------------------------------------------------------------------------------------------
25 string GetData();
26}
27
28class SCR_InventoryData : SCR_AnalyticsData
29{
39
40 //------------------------------------------------------------------------------------------------
41 protected override string GetData()
42 {
43 string result = "cnt_inv_interactions_vertical=" + cnt_inv_interactions_vertical.ToString();
44 result += ",cnt_inv_interactions_character_storage=" + cnt_inv_interactions_character_storage.ToString();
45 result += ",cnt_inv_interactions_horizontal=" + cnt_inv_interactions_horizontal.ToString();
46 result += ",cnt_inv_interactions_vicinity=" + cnt_inv_interactions_vicinity.ToString();
47 result += ",cnt_inv_examination=" + cnt_inv_examination.ToString();
48 result += ",cnt_inv_healing=" + cnt_inv_healing.ToString();
49 result += ",array_inv_weight_on_open=" + array_inv_weight_on_open;
50 result += ",array_inv_weight_on_close=" + array_inv_weight_on_close;
51 result += ",amt_inv_time_spent=" + amt_inv_time_spent.ToString();
52 return result;
53 }
54}
55
57{
58 bool flag_vote_success;
59 string vote_author_id;
60 string vote_winner_id;
61 string vote_type;
62
63 //------------------------------------------------------------------------------------------------
64 protected override string GetData()
65 {
66 return string.Format("flag_vote_success=%1", flag_vote_success);
67 }
68}
69
70class SCR_TimeSpentData : SCR_AnalyticsData
71{
73
74 //------------------------------------------------------------------------------------------------
75 protected override string GetData()
76 {
77 return string.Format("amt_time_spend=%1", amt_time_spent);
78 }
79}
80
81class SCR_CourseEndData : SCR_TimeSpentData
82{
83 string amt_course_name;
84 string amt_course_end_reason;
85
86 //------------------------------------------------------------------------------------------------
87 protected override string GetData()
88 {
89 return string.Format("%1, amt_course_name=%2, amt_course_end_reason=%3", super.GetData(), amt_course_name, amt_course_end_reason);
90 }
91}
92
93class SCR_SettingsTimeSpentData : SCR_TimeSpentData
94{
96
97 //------------------------------------------------------------------------------------------------
98 protected override string GetData()
99 {
100 return string.Format("%1, array_settings_changed=%2", super.GetData(), array_settings_changed);
101 }
102}
103
104class SCR_MenuTimeSpentData : SCR_TimeSpentData
105{
106 int cnt_menu_reopen;
107
108 //------------------------------------------------------------------------------------------------
109 protected override string GetData()
110 {
111 return string.Format("%1, cnt_menu_reopen=%2", super.GetData(), cnt_menu_reopen);
112 }
113}
114
115class SCR_FieldManualTimeSpentData : SCR_MenuTimeSpentData
116{
118
119 //------------------------------------------------------------------------------------------------
120 protected override string GetData()
121 {
122 return string.Format("%1, amt_name_location='%2'", super.GetData(), amt_name_location);
123 }
124}
125
127{
128 string array_menu_interactions;
129
130 //------------------------------------------------------------------------------------------------
131 protected override string GetData()
132 {
133 return string.Format("%1, array_menu_interactions=%2", super.GetData(), array_menu_interactions);
134 }
135}
136
137class SCR_MOBSelectedData : SCR_AnalyticsData
138{
139 string MOB_names;
141 string MOB_xs;
142 string MOB_ys;
143 string MOB_zs;
144
145 //------------------------------------------------------------------------------------------------
146 protected override string GetData()
147 {
148 return string.Format("%1, MOB_names=%2, MOB_factions=%3, MOB_xs=%4, MOB_ys=%5, MOB_zs=%6", super.GetData(), MOB_names, MOB_factions, MOB_xs, MOB_ys, MOB_zs);
149 }
150}
SCR_MenuTimeSpentData amt_name_location
SCR_VotingResultData amt_time_spent
SCR_AnalyticsData cnt_inv_interactions_vertical
string array_inv_weight_on_close
int cnt_inv_interactions_vicinity
override string GetData()
SCR_MenuInteractedData MOB_names
SCR_CourseEndData array_settings_changed
string array_inv_weight_on_open
int cnt_inv_interactions_horizontal
int cnt_inv_interactions_character_storage
proto native owned external string ClassName()