@overlayed/app 0.10.2 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +782 -641
- package/dist/index.js +6843 -1206
- package/dist/preload.d.ts +1 -1
- package/dist/siege.d.ts +2852 -2072
- package/dist/siege.js +449 -125
- package/package.json +2 -1
package/dist/siege.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { type as
|
|
2
|
-
|
|
1
|
+
import { type as d, scope as b } from "arktype";
|
|
2
|
+
function k(o) {
|
|
3
|
+
return o;
|
|
4
|
+
}
|
|
5
|
+
function t(o) {
|
|
6
|
+
return k;
|
|
7
|
+
}
|
|
8
|
+
const s = t(), me = t(), ue = t(), ce = t(), e = t(), n = t(), pe = t(), ge = t(), ye = t(), he = t(), be = t(), ke = t(), Se = t(), fe = t(), Ee = t(), ve = t(), Ie = t(), Pe = t(), we = t(), ze = t(), Oe = t(), Te = t(), Ae = t(), Ge = t(), _ = t(), De = "00000000-0000-0000-0000-000000000000", S = ["intro", "planning", "prep", "action", "results", "invalid"], f = d("===", ...S), E = [0, 1], c = d("===", ...E), v = ["attacker", "defender", "both", "invalid"], u = d("===", ...v), I = ["normal", "overhealed", "low_health", "downed", "dead", "respawning"], p = d("===", ...I), P = [
|
|
3
9
|
"bullet",
|
|
4
10
|
"melee",
|
|
5
11
|
"explosive",
|
|
@@ -41,286 +47,604 @@ const p = "00000000-0000-0000-0000-000000000000", o = a(`string.uuid | '${p}'`),
|
|
|
41
47
|
"break-wall",
|
|
42
48
|
"blade-mine",
|
|
43
49
|
"invalid"
|
|
44
|
-
],
|
|
50
|
+
], w = d("===", ...P), z = ["unknown", "enemy", "friendly", "invalid"], O = d("===", ...z), l = Object.freeze({
|
|
51
|
+
ranked: s(205379),
|
|
52
|
+
quickMatch: s(138115),
|
|
53
|
+
customGame: s(62008),
|
|
54
|
+
versusAi: s(397300),
|
|
55
|
+
standard: s(393930),
|
|
56
|
+
arcade: s(320109),
|
|
57
|
+
siegeCup: s(414089),
|
|
58
|
+
dualFront: s(420611),
|
|
59
|
+
showdown: s(305544),
|
|
60
|
+
trainingGrounds: s(-1)
|
|
61
|
+
}), Re = Object.freeze({
|
|
62
|
+
[l.quickMatch]: "Quick Match",
|
|
63
|
+
[l.ranked]: "Ranked",
|
|
64
|
+
[l.customGame]: "Custom Game",
|
|
65
|
+
[l.versusAi]: "Versus AI",
|
|
66
|
+
[l.standard]: "Standard",
|
|
67
|
+
[l.arcade]: "Arcade",
|
|
68
|
+
[l.siegeCup]: "Siege Cup",
|
|
69
|
+
[l.dualFront]: "Dual Front",
|
|
70
|
+
[l.showdown]: "Showdown",
|
|
71
|
+
[l.trainingGrounds]: "Training Grounds"
|
|
72
|
+
}), a = Object.freeze({
|
|
73
|
+
glaz: e(62242),
|
|
74
|
+
blitz: e(62243),
|
|
75
|
+
buck: e(62244),
|
|
76
|
+
sledge: e(62245),
|
|
77
|
+
ash: e(62246),
|
|
78
|
+
thermite: e(62247),
|
|
79
|
+
castle: e(62248),
|
|
80
|
+
rook: e(62249),
|
|
81
|
+
pulse: e(62250),
|
|
82
|
+
doc: e(62251),
|
|
83
|
+
mute: e(62252),
|
|
84
|
+
smoke: e(62253),
|
|
85
|
+
recruit: e(62555),
|
|
86
|
+
thatcher: e(65143),
|
|
87
|
+
twitch: e(65156),
|
|
88
|
+
montagne: e(65159),
|
|
89
|
+
bandit: e(65165),
|
|
90
|
+
fuze: e(65168),
|
|
91
|
+
kapkan: e(65171),
|
|
92
|
+
tachanka: e(65174),
|
|
93
|
+
jager: e(113049),
|
|
94
|
+
iq: e(113052),
|
|
95
|
+
frost: e(186159),
|
|
96
|
+
blackbeard: e(187249),
|
|
97
|
+
valkyrie: e(187252),
|
|
98
|
+
caveira: e(207671),
|
|
99
|
+
capitao: e(207674),
|
|
100
|
+
echo: e(209180),
|
|
101
|
+
hibana: e(209183),
|
|
102
|
+
mira: e(222172),
|
|
103
|
+
jackal: e(222182),
|
|
104
|
+
ying: e(239334),
|
|
105
|
+
lesion: e(239337),
|
|
106
|
+
ela: e(254595),
|
|
107
|
+
zofia: e(254606),
|
|
108
|
+
dokkaebi: e(273652),
|
|
109
|
+
vigil: e(273663),
|
|
110
|
+
finka: e(281457),
|
|
111
|
+
lion: e(281463),
|
|
112
|
+
alibi: e(282399),
|
|
113
|
+
maestro: e(285888),
|
|
114
|
+
maverick: e(288504),
|
|
115
|
+
clash: e(288526),
|
|
116
|
+
nomad: e(293435),
|
|
117
|
+
kaid: e(293436),
|
|
118
|
+
gridlock: e(298589),
|
|
119
|
+
mozzie: e(298616),
|
|
120
|
+
nokk: e(299657),
|
|
121
|
+
warden: e(299668),
|
|
122
|
+
goyo: e(304196),
|
|
123
|
+
amaru: e(308469),
|
|
124
|
+
kali: e(310757),
|
|
125
|
+
wamai: e(310768),
|
|
126
|
+
oryx: e(317965),
|
|
127
|
+
iana: e(317976),
|
|
128
|
+
melusi: e(320062),
|
|
129
|
+
ace: e(320073),
|
|
130
|
+
zero: e(328927),
|
|
131
|
+
aruni: e(328940),
|
|
132
|
+
flores: e(334086),
|
|
133
|
+
thunderbird: e(336466),
|
|
134
|
+
osa: e(344493),
|
|
135
|
+
thorn: e(349405),
|
|
136
|
+
azami: e(354314),
|
|
137
|
+
sens: e(357386),
|
|
138
|
+
grim: e(365404),
|
|
139
|
+
solis: e(376836),
|
|
140
|
+
brava: e(382419),
|
|
141
|
+
fenrir: e(386388),
|
|
142
|
+
ram: e(392904),
|
|
143
|
+
tubarao: e(395594),
|
|
144
|
+
deimos: e(400504),
|
|
145
|
+
striker: e(404278),
|
|
146
|
+
sentry: e(404290),
|
|
147
|
+
skopos: e(408405),
|
|
148
|
+
rauora: e(421052)
|
|
149
|
+
}), Me = Object.freeze({
|
|
150
|
+
[a.glaz]: "glaz",
|
|
151
|
+
[a.blitz]: "blitz",
|
|
152
|
+
[a.buck]: "buck",
|
|
153
|
+
[a.sledge]: "sledge",
|
|
154
|
+
[a.ash]: "ash",
|
|
155
|
+
[a.thermite]: "thermite",
|
|
156
|
+
[a.castle]: "castle",
|
|
157
|
+
[a.rook]: "rook",
|
|
158
|
+
[a.pulse]: "pulse",
|
|
159
|
+
[a.doc]: "doc",
|
|
160
|
+
[a.mute]: "mute",
|
|
161
|
+
[a.smoke]: "smoke",
|
|
162
|
+
[a.recruit]: "recruit",
|
|
163
|
+
[a.thatcher]: "thatcher",
|
|
164
|
+
[a.twitch]: "twitch",
|
|
165
|
+
[a.montagne]: "montagne",
|
|
166
|
+
[a.bandit]: "bandit",
|
|
167
|
+
[a.fuze]: "fuze",
|
|
168
|
+
[a.kapkan]: "kapkan",
|
|
169
|
+
[a.tachanka]: "tachanka",
|
|
170
|
+
[a.jager]: "jager",
|
|
171
|
+
[a.iq]: "iq",
|
|
172
|
+
[a.frost]: "frost",
|
|
173
|
+
[a.blackbeard]: "blackbeard",
|
|
174
|
+
[a.valkyrie]: "valkyrie",
|
|
175
|
+
[a.caveira]: "caveira",
|
|
176
|
+
[a.capitao]: "capitao",
|
|
177
|
+
[a.echo]: "echo",
|
|
178
|
+
[a.hibana]: "hibana",
|
|
179
|
+
[a.mira]: "mira",
|
|
180
|
+
[a.jackal]: "jackal",
|
|
181
|
+
[a.ying]: "ying",
|
|
182
|
+
[a.lesion]: "lesion",
|
|
183
|
+
[a.ela]: "ela",
|
|
184
|
+
[a.zofia]: "zofia",
|
|
185
|
+
[a.dokkaebi]: "dokkaebi",
|
|
186
|
+
[a.vigil]: "vigil",
|
|
187
|
+
[a.finka]: "finka",
|
|
188
|
+
[a.lion]: "lion",
|
|
189
|
+
[a.alibi]: "alibi",
|
|
190
|
+
[a.maestro]: "maestro",
|
|
191
|
+
[a.maverick]: "maverick",
|
|
192
|
+
[a.clash]: "clash",
|
|
193
|
+
[a.nomad]: "nomad",
|
|
194
|
+
[a.kaid]: "kaid",
|
|
195
|
+
[a.gridlock]: "gridlock",
|
|
196
|
+
[a.mozzie]: "mozzie",
|
|
197
|
+
[a.nokk]: "nokk",
|
|
198
|
+
[a.warden]: "warden",
|
|
199
|
+
[a.goyo]: "goyo",
|
|
200
|
+
[a.amaru]: "amaru",
|
|
201
|
+
[a.kali]: "kali",
|
|
202
|
+
[a.wamai]: "wamai",
|
|
203
|
+
[a.oryx]: "oryx",
|
|
204
|
+
[a.iana]: "iana",
|
|
205
|
+
[a.melusi]: "melusi",
|
|
206
|
+
[a.ace]: "ace",
|
|
207
|
+
[a.zero]: "zero",
|
|
208
|
+
[a.aruni]: "aruni",
|
|
209
|
+
[a.flores]: "flores",
|
|
210
|
+
[a.thunderbird]: "thunderbird",
|
|
211
|
+
[a.osa]: "osa",
|
|
212
|
+
[a.thorn]: "thorn",
|
|
213
|
+
[a.azami]: "azami",
|
|
214
|
+
[a.sens]: "sens",
|
|
215
|
+
[a.grim]: "grim",
|
|
216
|
+
[a.solis]: "solis",
|
|
217
|
+
[a.brava]: "brava",
|
|
218
|
+
[a.fenrir]: "fenrir",
|
|
219
|
+
[a.ram]: "ram",
|
|
220
|
+
[a.tubarao]: "tubarao",
|
|
221
|
+
[a.deimos]: "deimos",
|
|
222
|
+
[a.striker]: "striker",
|
|
223
|
+
[a.sentry]: "sentry",
|
|
224
|
+
[a.skopos]: "skopos",
|
|
225
|
+
[a.rauora]: "rauora"
|
|
226
|
+
}), je = Object.freeze({
|
|
227
|
+
favela: n(202283),
|
|
228
|
+
fortress: n(293334),
|
|
229
|
+
villa: n(286407),
|
|
230
|
+
neighborhood: n(333785),
|
|
231
|
+
article5: n(196214),
|
|
232
|
+
themePark: n(229325),
|
|
233
|
+
stadium: n(338641),
|
|
234
|
+
outback: n(299162),
|
|
235
|
+
yacht: n(62226),
|
|
236
|
+
emeraldPlains: n(358871),
|
|
237
|
+
chalet: n(62230),
|
|
238
|
+
coastline: n(217482),
|
|
239
|
+
bank: n(62228),
|
|
240
|
+
consulate: n(62227),
|
|
241
|
+
tower: n(255669),
|
|
242
|
+
nighthavenLabs: n(375492),
|
|
243
|
+
presidentialPlane: n(62225),
|
|
244
|
+
house: n(62221),
|
|
245
|
+
kafeDostoyevsky: n(62232),
|
|
246
|
+
border: n(201746),
|
|
247
|
+
closeQuarter: n(365400),
|
|
248
|
+
bartlettU: n(62231),
|
|
249
|
+
lair: n(396234),
|
|
250
|
+
herefordBase: n(62223),
|
|
251
|
+
skyscraper: n(208094),
|
|
252
|
+
cqbBasics: n(196157),
|
|
253
|
+
oregon: n(62222),
|
|
254
|
+
fortTruth: n(307723),
|
|
255
|
+
kanal: n(62229),
|
|
256
|
+
stadium2020: n(357300),
|
|
257
|
+
clubhouse: n(62224),
|
|
258
|
+
district: n(1193341205)
|
|
259
|
+
}), Ce = Object.freeze({
|
|
260
|
+
202283: "Favela",
|
|
261
|
+
293334: "Fortress",
|
|
262
|
+
286407: "Villa",
|
|
263
|
+
333785: "Neighborhood",
|
|
264
|
+
196214: "Article 5",
|
|
265
|
+
229325: "Theme Park",
|
|
266
|
+
338641: "Stadium",
|
|
267
|
+
299162: "Outback",
|
|
268
|
+
62226: "Yacht",
|
|
269
|
+
358871: "Emerald Plains",
|
|
270
|
+
62230: "Chalet",
|
|
271
|
+
217482: "Coastline",
|
|
272
|
+
62228: "Bank",
|
|
273
|
+
62227: "Consulate",
|
|
274
|
+
255669: "Tower",
|
|
275
|
+
375492: "Nighthaven Labs",
|
|
276
|
+
62225: "Presidential Plane",
|
|
277
|
+
187984: "Article 5",
|
|
278
|
+
62221: "House",
|
|
279
|
+
62232: "Kafe Dostoyevsky",
|
|
280
|
+
201746: "Border",
|
|
281
|
+
365400: "Close Quarter",
|
|
282
|
+
299161: "Outback",
|
|
283
|
+
62231: "Bartlett U.",
|
|
284
|
+
396234: "Lair",
|
|
285
|
+
62223: "Hereford Base",
|
|
286
|
+
208094: "Skyscraper",
|
|
287
|
+
196157: "CQB Basics",
|
|
288
|
+
62222: "Oregon",
|
|
289
|
+
299534: "Outback",
|
|
290
|
+
318512: "Stadium",
|
|
291
|
+
307723: "Fort Truth",
|
|
292
|
+
195681: "Article 5",
|
|
293
|
+
62229: "Kanal",
|
|
294
|
+
177763: "CQB Basics",
|
|
295
|
+
357300: "Stadium 2020",
|
|
296
|
+
62224: "Clubhouse",
|
|
297
|
+
1193341205: "District"
|
|
298
|
+
// TODO: The ID here is wrong but this is what native gives us
|
|
299
|
+
}), i = Object.freeze({
|
|
300
|
+
notPlayed: _(0),
|
|
301
|
+
inProgress: _(1),
|
|
302
|
+
lost: _(2),
|
|
303
|
+
enemiesEliminated: _(3),
|
|
304
|
+
objectiveComplete: _(4),
|
|
305
|
+
timeRanOut: _(5),
|
|
306
|
+
enemiesSurrendered: _(6),
|
|
307
|
+
unknownReason: _(7),
|
|
308
|
+
matchCancelled: _(8)
|
|
309
|
+
}), xe = Object.freeze({
|
|
310
|
+
[i.notPlayed]: "Not Played",
|
|
311
|
+
[i.inProgress]: "In Progress",
|
|
312
|
+
[i.lost]: "Lost",
|
|
313
|
+
[i.enemiesEliminated]: "Enemies Eliminated",
|
|
314
|
+
[i.objectiveComplete]: "Objective Complete",
|
|
315
|
+
[i.timeRanOut]: "Time ran out",
|
|
316
|
+
[i.enemiesSurrendered]: "Enemies Surrendered",
|
|
317
|
+
[i.unknownReason]: "Unknown Reason",
|
|
318
|
+
// The game calls it this
|
|
319
|
+
[i.matchCancelled]: "Match Cancelled"
|
|
320
|
+
}), T = d({
|
|
45
321
|
game: "string",
|
|
46
322
|
type: "string",
|
|
47
323
|
creation_time: "number"
|
|
48
|
-
}),
|
|
324
|
+
}), A = [
|
|
325
|
+
i.enemiesEliminated,
|
|
326
|
+
i.objectiveComplete,
|
|
327
|
+
i.timeRanOut,
|
|
328
|
+
i.enemiesSurrendered,
|
|
329
|
+
i.unknownReason
|
|
330
|
+
];
|
|
331
|
+
function Be(o) {
|
|
332
|
+
return A.includes(o);
|
|
333
|
+
}
|
|
334
|
+
const G = [
|
|
335
|
+
i.notPlayed,
|
|
336
|
+
i.inProgress
|
|
337
|
+
];
|
|
338
|
+
function Le(o) {
|
|
339
|
+
return !G.includes(o);
|
|
340
|
+
}
|
|
341
|
+
const r = T.and({
|
|
49
342
|
game: "'siege'"
|
|
50
|
-
}),
|
|
343
|
+
}), D = r.and({
|
|
51
344
|
type: "'local_player'",
|
|
52
345
|
content: {
|
|
53
|
-
profile_id:
|
|
346
|
+
profile_id: "string.uuid"
|
|
54
347
|
}
|
|
55
|
-
}),
|
|
348
|
+
}), m = d({
|
|
56
349
|
id: "number",
|
|
57
350
|
value: "string"
|
|
58
|
-
}),
|
|
351
|
+
}), g = d({
|
|
59
352
|
kills: "number",
|
|
60
353
|
deaths: "number",
|
|
61
354
|
assists: "number",
|
|
62
355
|
plants: "number",
|
|
63
356
|
score: "number"
|
|
64
|
-
}),
|
|
357
|
+
}), R = d({
|
|
65
358
|
instigator_player_id: "number",
|
|
66
359
|
receiver_player_id: "number",
|
|
67
360
|
damage_amount: "number",
|
|
68
361
|
remaining_health: "number",
|
|
69
362
|
pre_damage_health: "number",
|
|
70
363
|
max_health: "number",
|
|
71
|
-
damage_type:
|
|
72
|
-
damage_team_type:
|
|
364
|
+
damage_type: w,
|
|
365
|
+
damage_team_type: O,
|
|
73
366
|
damage_item_id: "number | null",
|
|
74
367
|
damage_time: "number"
|
|
75
|
-
}),
|
|
368
|
+
}), y = d({
|
|
76
369
|
index: "number",
|
|
77
370
|
rounds_until_next_segment: "number",
|
|
78
371
|
segment_size: "number",
|
|
79
372
|
segment_index: "number",
|
|
80
373
|
team_0: {
|
|
81
|
-
role:
|
|
374
|
+
role: u,
|
|
82
375
|
state: "number"
|
|
83
376
|
},
|
|
84
377
|
team_1: {
|
|
85
|
-
role:
|
|
378
|
+
role: u,
|
|
86
379
|
state: "number"
|
|
87
380
|
}
|
|
88
|
-
}),
|
|
381
|
+
}), h = d({
|
|
89
382
|
id: "number",
|
|
90
|
-
name:
|
|
91
|
-
time_of_day:
|
|
92
|
-
}),
|
|
383
|
+
name: m,
|
|
384
|
+
time_of_day: m
|
|
385
|
+
}), M = d({
|
|
93
386
|
player_id: "number",
|
|
94
387
|
final_health: "number",
|
|
95
|
-
final_life_state:
|
|
96
|
-
operator_name:
|
|
97
|
-
}),
|
|
98
|
-
round_data:
|
|
99
|
-
damage_events:
|
|
100
|
-
players:
|
|
101
|
-
}),
|
|
388
|
+
final_life_state: p,
|
|
389
|
+
operator_name: m.or(d.null)
|
|
390
|
+
}), j = d({
|
|
391
|
+
round_data: y,
|
|
392
|
+
damage_events: R.array(),
|
|
393
|
+
players: M.array()
|
|
394
|
+
}), C = r.and({
|
|
102
395
|
type: "'match_started'",
|
|
103
396
|
content: {
|
|
104
397
|
game_mode: "string",
|
|
105
|
-
game_type:
|
|
398
|
+
game_type: m,
|
|
106
399
|
match_type: "string",
|
|
107
400
|
match_id: "string",
|
|
108
|
-
map:
|
|
401
|
+
map: h,
|
|
109
402
|
is_round_based: "boolean",
|
|
110
403
|
current_round_index: "number",
|
|
111
|
-
rounds:
|
|
404
|
+
rounds: y.array()
|
|
112
405
|
}
|
|
113
|
-
}),
|
|
406
|
+
}), x = r.and({
|
|
114
407
|
type: "'module_loaded'"
|
|
115
|
-
}),
|
|
408
|
+
}), B = r.and({
|
|
116
409
|
type: "'module_unloaded'"
|
|
117
|
-
}),
|
|
410
|
+
}), L = r.and({
|
|
118
411
|
type: "'started_queuing'",
|
|
119
412
|
content: {
|
|
120
413
|
game_mode: "string",
|
|
121
|
-
game_type:
|
|
414
|
+
game_type: m,
|
|
122
415
|
match_type: "string"
|
|
123
416
|
}
|
|
124
|
-
}),
|
|
417
|
+
}), q = r.and({
|
|
125
418
|
type: "'stopped_queuing'"
|
|
126
|
-
}),
|
|
419
|
+
}), N = r.and({
|
|
127
420
|
type: "'unsupported_game_version'",
|
|
128
421
|
content: {
|
|
129
422
|
hash: "string | null",
|
|
130
423
|
version: "string | null"
|
|
131
424
|
}
|
|
132
|
-
}),
|
|
425
|
+
}), F = r.and({
|
|
133
426
|
type: "'match_ended'"
|
|
134
|
-
}),
|
|
427
|
+
}), Y = r.and({
|
|
135
428
|
type: "'map_changed'",
|
|
136
429
|
content: {
|
|
137
|
-
map:
|
|
430
|
+
map: h
|
|
138
431
|
}
|
|
139
|
-
}),
|
|
432
|
+
}), Q = r.and({
|
|
140
433
|
type: "'operator_banned'",
|
|
141
434
|
content: {
|
|
142
435
|
index: "number",
|
|
143
|
-
team:
|
|
144
|
-
side:
|
|
145
|
-
operator_name:
|
|
436
|
+
team: c,
|
|
437
|
+
side: u,
|
|
438
|
+
operator_name: m.or("null")
|
|
146
439
|
}
|
|
147
|
-
}),
|
|
440
|
+
}), U = r.and({
|
|
148
441
|
type: "'round_ended'",
|
|
149
|
-
content:
|
|
150
|
-
}),
|
|
442
|
+
content: j
|
|
443
|
+
}), H = r.and({
|
|
151
444
|
type: "'phase_changed'",
|
|
152
445
|
content: {
|
|
153
|
-
phase:
|
|
446
|
+
phase: f
|
|
154
447
|
}
|
|
155
|
-
}),
|
|
448
|
+
}), V = r.and({
|
|
156
449
|
type: "'player_joined'",
|
|
157
450
|
content: {
|
|
158
451
|
player_id: "number",
|
|
159
|
-
profile_id:
|
|
452
|
+
profile_id: "string.uuid",
|
|
160
453
|
is_bot: "boolean",
|
|
161
454
|
is_enemy: "boolean",
|
|
162
455
|
is_squad_member: "boolean",
|
|
163
456
|
is_local_player: "boolean",
|
|
164
457
|
username: "string",
|
|
165
|
-
side:
|
|
166
|
-
team:
|
|
458
|
+
side: u,
|
|
459
|
+
team: c,
|
|
167
460
|
is_privacy_username: "boolean",
|
|
168
461
|
has_avatar_hidden: "boolean",
|
|
169
462
|
has_commend_streak: "boolean",
|
|
170
463
|
ping_id: "number",
|
|
171
|
-
match_stats:
|
|
172
|
-
life_state:
|
|
464
|
+
match_stats: g,
|
|
465
|
+
life_state: p,
|
|
173
466
|
ping: "number"
|
|
174
467
|
}
|
|
175
|
-
}).pipe((
|
|
176
|
-
...
|
|
468
|
+
}).pipe((o) => ({
|
|
469
|
+
...o,
|
|
177
470
|
content: {
|
|
178
|
-
...
|
|
179
|
-
starting_side:
|
|
471
|
+
...o.content,
|
|
472
|
+
starting_side: o.content.side
|
|
180
473
|
}
|
|
181
|
-
})),
|
|
474
|
+
})), K = r.and({
|
|
182
475
|
type: "'player_left'",
|
|
183
476
|
content: {
|
|
184
477
|
player_id: "number"
|
|
185
478
|
}
|
|
186
|
-
}),
|
|
479
|
+
}), J = r.and({
|
|
187
480
|
type: "'player_operator_changed'",
|
|
188
481
|
content: {
|
|
189
482
|
player_id: "number",
|
|
190
|
-
operator_name:
|
|
483
|
+
operator_name: m.or(d.null)
|
|
191
484
|
}
|
|
192
|
-
}),
|
|
485
|
+
}), W = r.and({
|
|
193
486
|
type: "'player_location_changed'",
|
|
194
487
|
content: {
|
|
195
488
|
player_id: "number",
|
|
196
489
|
location_name: "string"
|
|
197
490
|
}
|
|
198
|
-
}),
|
|
491
|
+
}), X = r.and({
|
|
199
492
|
type: "'player_side_changed'",
|
|
200
493
|
content: {
|
|
201
494
|
player_id: "number",
|
|
202
|
-
side:
|
|
495
|
+
side: u
|
|
203
496
|
}
|
|
204
|
-
}),
|
|
497
|
+
}), Z = r.and({
|
|
205
498
|
type: "'player_stats_changed'",
|
|
206
499
|
content: {
|
|
207
500
|
player_id: "number",
|
|
208
|
-
match_stats:
|
|
501
|
+
match_stats: g
|
|
209
502
|
}
|
|
210
|
-
}),
|
|
503
|
+
}), $ = r.and({
|
|
211
504
|
type: "'player_ping_updated'",
|
|
212
505
|
content: {
|
|
213
506
|
player_id: "number",
|
|
214
507
|
ping: "number"
|
|
215
508
|
}
|
|
216
|
-
}),
|
|
509
|
+
}), ee = r.and({
|
|
217
510
|
type: "'defuser_planted'",
|
|
218
511
|
content: {
|
|
219
512
|
player_id: "number"
|
|
220
513
|
}
|
|
221
|
-
}),
|
|
514
|
+
}), ae = r.and({
|
|
222
515
|
type: "'defuser_sabotaged'",
|
|
223
516
|
content: {
|
|
224
517
|
player_id: "number"
|
|
225
518
|
}
|
|
226
|
-
}),
|
|
519
|
+
}), ne = r.and({
|
|
227
520
|
type: "'defuser_picked_up'",
|
|
228
521
|
content: {
|
|
229
522
|
player_id: "number",
|
|
230
523
|
initial: "boolean"
|
|
231
524
|
}
|
|
232
|
-
}),
|
|
525
|
+
}), re = r.and({
|
|
233
526
|
type: "'defuser_dropped'",
|
|
234
527
|
content: {
|
|
235
528
|
player_id: "number"
|
|
236
529
|
}
|
|
237
|
-
}),
|
|
530
|
+
}), te = r.and({
|
|
238
531
|
type: "'player_life_state_changed'",
|
|
239
532
|
content: {
|
|
240
533
|
player_id: "number",
|
|
241
|
-
life_state:
|
|
534
|
+
life_state: p
|
|
242
535
|
}
|
|
243
|
-
}),
|
|
536
|
+
}), ie = r.and({
|
|
244
537
|
type: "'player_died'",
|
|
245
538
|
content: {
|
|
246
539
|
player_id: "number",
|
|
247
540
|
instigator_player_id: "number"
|
|
248
541
|
}
|
|
249
|
-
}),
|
|
542
|
+
}), de = r.and({
|
|
250
543
|
type: "'player_downed'",
|
|
251
544
|
content: {
|
|
252
545
|
player_id: "number",
|
|
253
546
|
instigator_player_id: "number"
|
|
254
547
|
}
|
|
255
|
-
}),
|
|
548
|
+
}), oe = r.and({
|
|
256
549
|
type: "'player_ping_id_changed'",
|
|
257
550
|
content: {
|
|
258
551
|
player_id: "number",
|
|
259
552
|
ping_id: "number"
|
|
260
553
|
}
|
|
261
|
-
}),
|
|
554
|
+
}), se = r.and({
|
|
262
555
|
type: "'player_team_changed'",
|
|
263
556
|
content: {
|
|
264
557
|
player_id: "number",
|
|
265
|
-
team:
|
|
558
|
+
team: c
|
|
266
559
|
}
|
|
267
|
-
}),
|
|
560
|
+
}), le = b({
|
|
268
561
|
"#event1": "module_loaded | module_unloaded | unsupported_game_version | local_player | started_queuing | stopped_queuing | match_started | match_ended | map_changed | operator_banned | round_ended | phase_changed | player_joined | player_left | player_operator_changed | player_location_changed | player_side_changed | player_stats_changed",
|
|
269
562
|
"#event2": "player_life_state_changed | player_died | player_downed | player_ping_id_changed | player_team_changed | defuser_planted | defuser_sabotaged | defuser_picked_up | defuser_dropped | player_ping_updated",
|
|
270
563
|
event: "event1 | event2",
|
|
271
|
-
module_loaded:
|
|
272
|
-
module_unloaded:
|
|
273
|
-
unsupported_game_version:
|
|
274
|
-
local_player:
|
|
275
|
-
started_queuing:
|
|
276
|
-
stopped_queuing:
|
|
277
|
-
match_started:
|
|
278
|
-
match_ended:
|
|
279
|
-
map_changed:
|
|
280
|
-
operator_banned:
|
|
281
|
-
round_ended:
|
|
282
|
-
phase_changed:
|
|
283
|
-
player_joined:
|
|
284
|
-
player_left:
|
|
285
|
-
player_operator_changed:
|
|
286
|
-
player_location_changed:
|
|
287
|
-
player_side_changed:
|
|
288
|
-
player_stats_changed:
|
|
289
|
-
defuser_planted:
|
|
290
|
-
defuser_sabotaged:
|
|
291
|
-
defuser_picked_up:
|
|
292
|
-
defuser_dropped:
|
|
293
|
-
player_ping_updated:
|
|
294
|
-
player_life_state_changed:
|
|
295
|
-
player_died:
|
|
296
|
-
player_downed:
|
|
297
|
-
player_ping_id_changed:
|
|
298
|
-
player_team_changed:
|
|
564
|
+
module_loaded: x,
|
|
565
|
+
module_unloaded: B,
|
|
566
|
+
unsupported_game_version: N,
|
|
567
|
+
local_player: D,
|
|
568
|
+
started_queuing: L,
|
|
569
|
+
stopped_queuing: q,
|
|
570
|
+
match_started: C,
|
|
571
|
+
match_ended: F,
|
|
572
|
+
map_changed: Y,
|
|
573
|
+
operator_banned: Q,
|
|
574
|
+
round_ended: U,
|
|
575
|
+
phase_changed: H,
|
|
576
|
+
player_joined: V,
|
|
577
|
+
player_left: K,
|
|
578
|
+
player_operator_changed: J,
|
|
579
|
+
player_location_changed: W,
|
|
580
|
+
player_side_changed: X,
|
|
581
|
+
player_stats_changed: Z,
|
|
582
|
+
defuser_planted: ee,
|
|
583
|
+
defuser_sabotaged: ae,
|
|
584
|
+
defuser_picked_up: ne,
|
|
585
|
+
defuser_dropped: re,
|
|
586
|
+
player_ping_updated: $,
|
|
587
|
+
player_life_state_changed: te,
|
|
588
|
+
player_died: ie,
|
|
589
|
+
player_downed: de,
|
|
590
|
+
player_ping_id_changed: oe,
|
|
591
|
+
player_team_changed: se
|
|
299
592
|
}).export();
|
|
300
|
-
function
|
|
593
|
+
function qe() {
|
|
301
594
|
return {
|
|
302
595
|
key: "siege",
|
|
303
|
-
events:
|
|
596
|
+
events: le
|
|
304
597
|
};
|
|
305
598
|
}
|
|
306
|
-
const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
307
|
-
__proto__: null,
|
|
308
|
-
BOT_ID: p,
|
|
309
|
-
DAMAGE_TEAM_TYPES: g,
|
|
310
|
-
DAMAGE_TYPES: y,
|
|
311
|
-
DamageTeamTypeSchema: b,
|
|
312
|
-
DamageTypeSchema: c,
|
|
313
|
-
GAME_MODE_PHASES: i,
|
|
314
|
-
GameModePhaseSchema: l,
|
|
315
|
-
PLAYER_LIFE_STATES: u,
|
|
316
|
-
PlayerLifeStateSchema: d,
|
|
317
|
-
ProfileId: o,
|
|
318
|
-
SIDES: s,
|
|
319
|
-
SideSchema: t,
|
|
320
|
-
TEAMS: m,
|
|
321
|
-
TeamSchema: r,
|
|
322
|
-
module: ae
|
|
323
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
324
599
|
export {
|
|
325
|
-
|
|
600
|
+
T as BaseEvent,
|
|
601
|
+
De as SIEGE_BOT_ID,
|
|
602
|
+
z as SIEGE_DAMAGE_TEAM_TYPES,
|
|
603
|
+
P as SIEGE_DAMAGE_TYPES,
|
|
604
|
+
S as SIEGE_GAME_MODE_PHASES,
|
|
605
|
+
l as SIEGE_GAME_MODE_TYPES_TO_ID,
|
|
606
|
+
Re as SIEGE_GAME_MODE_TYPE_LABELS,
|
|
607
|
+
Ce as SIEGE_MAP_LABELS,
|
|
608
|
+
je as SIEGE_MAP_TO_ID,
|
|
609
|
+
Me as SIEGE_OPERATOR_LABELS,
|
|
610
|
+
a as SIEGE_OPERATOR_TO_ID,
|
|
611
|
+
I as SIEGE_PLAYER_LIFE_STATES,
|
|
612
|
+
i as SIEGE_ROUND_STATES_TO_ID,
|
|
613
|
+
xe as SIEGE_ROUND_STATE_LABELS,
|
|
614
|
+
v as SIEGE_SIDES,
|
|
615
|
+
E as SIEGE_TEAMS,
|
|
616
|
+
O as SiegeDamageTeamTypeSchema,
|
|
617
|
+
ye as SiegeDamageTypeId,
|
|
618
|
+
w as SiegeDamageTypeSchema,
|
|
619
|
+
me as SiegeGameModeId,
|
|
620
|
+
f as SiegeGameModePhaseSchema,
|
|
621
|
+
s as SiegeGameModeTypeNameId,
|
|
622
|
+
pe as SiegeItemId,
|
|
623
|
+
ge as SiegeItemObjectId,
|
|
624
|
+
ue as SiegeMapId,
|
|
625
|
+
n as SiegeMapNameId,
|
|
626
|
+
Ee as SiegeMatchEndReasonId,
|
|
627
|
+
be as SiegeMatchId,
|
|
628
|
+
ke as SiegeMatchMatchId,
|
|
629
|
+
fe as SiegeMatchPlayerId,
|
|
630
|
+
ce as SiegeOperatorId,
|
|
631
|
+
e as SiegeOperatorNameId,
|
|
632
|
+
Se as SiegePlayerId,
|
|
633
|
+
he as SiegePlayerLifeStateId,
|
|
634
|
+
p as SiegePlayerLifeStateSchema,
|
|
635
|
+
ve as SiegeProfileId,
|
|
636
|
+
Ie as SiegeRoundId,
|
|
637
|
+
we as SiegeRoundPlayerDamageEventId,
|
|
638
|
+
ze as SiegeRoundPlayerDeathEventId,
|
|
639
|
+
Oe as SiegeRoundPlayerDefuserDropEventId,
|
|
640
|
+
Te as SiegeRoundPlayerDefuserEventId,
|
|
641
|
+
Ae as SiegeRoundPlayerDefuserPickupEventId,
|
|
642
|
+
Ge as SiegeRoundPlayerDownEventId,
|
|
643
|
+
Pe as SiegeRoundPlayerId,
|
|
644
|
+
_ as SiegeRoundState,
|
|
645
|
+
u as SiegeSideSchema,
|
|
646
|
+
c as SiegeTeamSchema,
|
|
647
|
+
Le as isSiegeRoundStateCompleted,
|
|
648
|
+
Be as isSiegeRoundStateVictory,
|
|
649
|
+
qe as module
|
|
326
650
|
};
|