-
Notifications
You must be signed in to change notification settings - Fork 1
/
scssdk_telemetry_common_gameplay_events.h
199 lines (172 loc) · 4.24 KB
/
scssdk_telemetry_common_gameplay_events.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/**
* @file scssdk_telemetry_common_gameplay_events.h
*
* @brief Telemetry specific gameplay events which might be used by more than one game.
*/
#ifndef SCSSDK_TELEMETRY_COMMON_GAMEPLAY_EVENTS_H
#define SCSSDK_TELEMETRY_COMMON_GAMEPLAY_EVENTS_H
#include "../scssdk.h"
SCSSDK_HEADER
/**
* @brief Event called when job is cancelled.
*
* Attributes:
* @li cancel_penalty
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_job_cancelled "job.cancelled"
/**
* @brief Event called when job is delivered.
*
* Attributes:
* @li revenue
* @li earned_xp
* @li cargo_damage
* @li distance_km
* @li delivery_time
* @li autopark_used
* @li autoload_used
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_job_delivered "job.delivered"
/**
* @brief Event called when player gets fined.
*
* Attributes:
* @li fine_offence
* @li fine_amount
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_player_fined "player.fined"
/**
* @brief Event called when player pays for a tollgate.
*
* Attributes:
* @li pay_amount
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_player_tollgate_paid "player.tollgate.paid"
/**
* @brief Event called when player uses a ferry.
*
* Attributes:
* @li pay_amount
* @li source_name
* @li target_name
* @li source_id
* @li target_id
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_player_use_ferry "player.use.ferry"
/**
* @brief Event called when player uses a train.
*
* Attributes:
* @li pay_amount
* @li source_name
* @li target_name
* @li source_id
* @li target_id
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_player_use_train "player.use.train"
// Attributes
/**
* @brief The penalty for cancelling the job in native game currency. (Can be 0)
*
* Type: s64
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_cancel_penalty "cancel.penalty"
/**
* @brief The job revenue in native game currency.
*
* Type: s64
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_revenue "revenue"
/**
* @brief How much XP player received for the job.
*
* Type: s32
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_earned_xp "earned.xp"
/**
* @brief Total cargo damage. (Range <0.0, 1.0>)
*
* Type: float
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_cargo_damage "cargo.damage"
/**
* @brief The real distance in km on the job.
*
* Type: float
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_distance_km "distance.km"
/**
* @brief Total time spend on the job in game minutes.
*
* Type: u32
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_delivery_time "delivery.time"
/**
* @brief Was auto parking used on this job?
*
* Type: bool
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_auto_park_used "auto.park.used"
/**
* @brief Was auto loading used on this job? (always @c true for non cargo market jobs)
*
* Type: bool
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_auto_load_used "auto.load.used"
/**
* @brief Fine offence type.
*
* Possible values:
* @li crash
* @li avoid_sleeping
* @li wrong_way
* @li speeding_camera
* @li no_lights
* @li red_signal
* @li speeding
* @li avoid_weighing
* @li illegal_trailer
* @li generic
*
* Type: string
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_fine_offence "fine.offence"
/**
* @brief Fine offence amount in native game currency.
*
* Type: s64
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_fine_amount "fine.amount"
/**
* @brief How much player was charged for this action (in native game currency)
*
* Type: s64
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_pay_amount "pay.amount"
/**
* @brief The name of the transportation source.
*
* Type: string
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_source_name "source.name"
/**
* @brief The name of the transportation target.
*
* Type: string
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_target_name "target.name"
/**
* @brief The id of the transportation source.
*
* Type: string
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_source_id "source.id"
/**
* @brief The id of the transportation target.
*
* Type: string
*/
#define SCS_TELEMETRY_GAMEPLAY_EVENT_ATTRIBUTE_target_id "target.id"
SCSSDK_FOOTER
#endif // SCSSDK_TELEMETRY_COMMON_GAMEPLAY_EVENTS_H
/* eof */