overlay-toolkit 0.11.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/file_system.d.ts +40 -0
- package/dist/otk.d.ts +21 -0
- package/dist/overlay-toolkit.js +429 -193
- package/dist/overlay-toolkit.umd.cjs +1 -1
- package/dist/overlay.d.ts +1 -0
- package/package.json +1 -1
package/dist/overlay-toolkit.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (r, s, e) =>
|
|
4
|
-
function
|
|
5
|
-
return new
|
|
1
|
+
var w = Object.defineProperty;
|
|
2
|
+
var y = (r, s, e) => s in r ? w(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
|
|
3
|
+
var t = (r, s, e) => y(r, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
function f(r) {
|
|
5
|
+
return new v(r);
|
|
6
6
|
}
|
|
7
|
-
class
|
|
7
|
+
class v extends EventTarget {
|
|
8
8
|
//#endregion
|
|
9
9
|
constructor(e) {
|
|
10
10
|
super();
|
|
@@ -24,7 +24,7 @@ class y extends EventTarget {
|
|
|
24
24
|
if (this.devices.has(i.instanceId))
|
|
25
25
|
a.push(this.devices.get(i.instanceId));
|
|
26
26
|
else {
|
|
27
|
-
const c = new
|
|
27
|
+
const c = new d(this.api, i);
|
|
28
28
|
this.devices.set(i.instanceId, c), a.push(c);
|
|
29
29
|
}
|
|
30
30
|
}), a;
|
|
@@ -33,22 +33,22 @@ class y extends EventTarget {
|
|
|
33
33
|
return e && console.log("Requesting device with options:", e), this.getDevices();
|
|
34
34
|
}
|
|
35
35
|
async requestGetDevices() {
|
|
36
|
-
return (await
|
|
36
|
+
return (await m(this.api, "getDevices", {})).devices;
|
|
37
37
|
}
|
|
38
38
|
addListener() {
|
|
39
39
|
this.api.addOverlayListener("otk::hid::inputreport", (e) => this.callbackInputReport(e)), this.api.addOverlayListener("otk::hid::devicechanged", (e) => this.callbackDeviceChanged(e));
|
|
40
40
|
}
|
|
41
41
|
callbackInputReport(e) {
|
|
42
|
-
const a = e.instanceId, i =
|
|
43
|
-
c ? c.dispatchEvent(new
|
|
42
|
+
const a = e.instanceId, i = l(e.data), c = this.devices.get(a);
|
|
43
|
+
c ? c.dispatchEvent(new k("inputreport", c, i[0], new DataView(i.buffer, 1))) : console.warn("Device not found:", a);
|
|
44
44
|
}
|
|
45
45
|
callbackDeviceChanged(e) {
|
|
46
46
|
var a = e.add;
|
|
47
|
-
const i = new
|
|
47
|
+
const i = new d(this.api, e.device), c = new x(a ? "connect" : "disconnect", i);
|
|
48
48
|
this.dispatchEvent(c);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
async function
|
|
51
|
+
async function m(r, s, e) {
|
|
52
52
|
const a = {
|
|
53
53
|
call: "otk::hid",
|
|
54
54
|
type: s,
|
|
@@ -56,7 +56,7 @@ async function d(r, s, e) {
|
|
|
56
56
|
}, i = await r.callOverlayHandler(a);
|
|
57
57
|
return i.error && console.log("callOverlayHID error:", s, e, i), i;
|
|
58
58
|
}
|
|
59
|
-
class
|
|
59
|
+
class d extends EventTarget {
|
|
60
60
|
//#endregion
|
|
61
61
|
// Simulate a device with some properties
|
|
62
62
|
constructor(e, a) {
|
|
@@ -103,24 +103,24 @@ class h extends EventTarget {
|
|
|
103
103
|
throw new Error("Device is not opened.");
|
|
104
104
|
const a = await this.request("recvFeature", {
|
|
105
105
|
reportId: e
|
|
106
|
-
}), i =
|
|
106
|
+
}), i = l(a.data);
|
|
107
107
|
return new DataView(i.buffer);
|
|
108
108
|
}
|
|
109
109
|
async request(e, a) {
|
|
110
|
-
return
|
|
110
|
+
return m(this.api, e, {
|
|
111
111
|
instanceId: this.instanceId,
|
|
112
112
|
...a
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
class
|
|
116
|
+
class x extends Event {
|
|
117
117
|
constructor(e, a) {
|
|
118
118
|
super(e);
|
|
119
119
|
t(this, "device");
|
|
120
120
|
this.device = a;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
class
|
|
123
|
+
class k extends Event {
|
|
124
124
|
constructor(e, a, i, c) {
|
|
125
125
|
super(e);
|
|
126
126
|
t(this, "device");
|
|
@@ -133,13 +133,13 @@ function u(r) {
|
|
|
133
133
|
let s = null;
|
|
134
134
|
return r instanceof ArrayBuffer ? s = new Uint8Array(r) : s = new Uint8Array(r.buffer, r.byteOffset, r.byteLength), [...s].map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function l(r) {
|
|
137
137
|
const s = new Uint8Array(Math.ceil(r.length / 2));
|
|
138
138
|
for (let e = 0; e < r.length; )
|
|
139
139
|
s[e / 2] = Number.parseInt(r.slice(e, e += 2), 16);
|
|
140
140
|
return s;
|
|
141
141
|
}
|
|
142
|
-
class
|
|
142
|
+
class D {
|
|
143
143
|
constructor(s = null) {
|
|
144
144
|
t(this, "subscribers", /* @__PURE__ */ new Map());
|
|
145
145
|
t(this, "queue", []);
|
|
@@ -199,8 +199,12 @@ class x {
|
|
|
199
199
|
for (let [e, a] of s)
|
|
200
200
|
this.transport.sendMessage(e).then(a);
|
|
201
201
|
}
|
|
202
|
+
get isConnected() {
|
|
203
|
+
var s;
|
|
204
|
+
return ((s = this.transport) == null ? void 0 : s.connected) ?? !1;
|
|
205
|
+
}
|
|
202
206
|
}
|
|
203
|
-
class
|
|
207
|
+
class P extends EventTarget {
|
|
204
208
|
constructor() {
|
|
205
209
|
super(...arguments);
|
|
206
210
|
t(this, "connected", !1);
|
|
@@ -224,7 +228,7 @@ class D extends EventTarget {
|
|
|
224
228
|
window.__OverlayCallback = this.evtHandlerWrapper, this.connected = !0, this.dispatchEvent(new Event("connected"));
|
|
225
229
|
}
|
|
226
230
|
}
|
|
227
|
-
class
|
|
231
|
+
class b extends EventTarget {
|
|
228
232
|
constructor(e) {
|
|
229
233
|
super();
|
|
230
234
|
t(this, "ws");
|
|
@@ -274,21 +278,217 @@ class P extends EventTarget {
|
|
|
274
278
|
this.evtHandler = e;
|
|
275
279
|
}
|
|
276
280
|
}
|
|
277
|
-
|
|
281
|
+
const N = (r) => ({
|
|
282
|
+
call: "otk::filesystem",
|
|
283
|
+
action: "show_save_file_picker",
|
|
284
|
+
options: r
|
|
285
|
+
}), F = (r) => ({
|
|
286
|
+
call: "otk::filesystem",
|
|
287
|
+
action: "show_open_file_picker",
|
|
288
|
+
options: r
|
|
289
|
+
}), C = (r) => ({
|
|
290
|
+
call: "otk::filesystem",
|
|
291
|
+
action: "file_info",
|
|
292
|
+
handle: r
|
|
293
|
+
}), I = (r, s) => ({
|
|
294
|
+
call: "otk::filesystem",
|
|
295
|
+
action: "read_file",
|
|
296
|
+
handle: r,
|
|
297
|
+
binary: s
|
|
298
|
+
}), E = (r, s) => ({
|
|
299
|
+
call: "otk::filesystem",
|
|
300
|
+
action: "open_write",
|
|
301
|
+
handle: r,
|
|
302
|
+
truncate: s
|
|
303
|
+
}), M = (r, s) => ({
|
|
304
|
+
call: "otk::filesystem",
|
|
305
|
+
action: "write_file",
|
|
306
|
+
handle: r,
|
|
307
|
+
data: typeof s == "string" ? s : btoa(String.fromCharCode(...new Uint8Array(s))),
|
|
308
|
+
binary: typeof s != "string"
|
|
309
|
+
}), o = (r, s, e) => ({
|
|
310
|
+
call: "otk::filesystem",
|
|
311
|
+
action: "file_op",
|
|
312
|
+
handle: r,
|
|
313
|
+
operation: s,
|
|
314
|
+
param: e
|
|
315
|
+
});
|
|
316
|
+
class H {
|
|
317
|
+
constructor(s) {
|
|
318
|
+
t(this, "api");
|
|
319
|
+
this.api = s;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Show the save file picker dialog.
|
|
323
|
+
* @param options SaveFilePickerOptions to configure the file picker
|
|
324
|
+
* @returns A promise that resolves to a FileSystemFileHandle for the selected file
|
|
325
|
+
*/
|
|
326
|
+
async showSaveFilePicker(s) {
|
|
327
|
+
const e = await this.api.callOverlayHandler(N(s));
|
|
328
|
+
if (e.aborted)
|
|
329
|
+
throw DOMException.ABORT_ERR;
|
|
330
|
+
if (e && e.handle && e.name)
|
|
331
|
+
return new p(this.api, e.handle, e.name);
|
|
332
|
+
throw new Error(e.Error ?? "Failed to get file handle");
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Show the open file picker dialog.
|
|
336
|
+
* @param options OpenFilePickerOptions to configure the file picker
|
|
337
|
+
* @returns A promise that resolves to an array of FileSystemFileHandle for the selected files
|
|
338
|
+
*/
|
|
339
|
+
async showOpenFilePicker(s) {
|
|
340
|
+
const e = await this.api.callOverlayHandler(F(s));
|
|
341
|
+
if (e.aborted)
|
|
342
|
+
throw DOMException.ABORT_ERR;
|
|
343
|
+
if (e && e.files && Array.isArray(e.files))
|
|
344
|
+
return e.files.map((a) => new p(this.api, a.handle, a.name));
|
|
345
|
+
throw new Error(e.Error ?? "Failed to get file handles");
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
class p {
|
|
349
|
+
constructor(s, e, a) {
|
|
350
|
+
t(this, "kind", "file");
|
|
351
|
+
t(this, "name");
|
|
352
|
+
t(this, "handle");
|
|
353
|
+
t(this, "api");
|
|
354
|
+
this.api = s, this.handle = e, this.name = a;
|
|
355
|
+
}
|
|
356
|
+
async createWritable(s) {
|
|
357
|
+
const e = await this.api.callOverlayHandler(E(this.handle, s == null ? void 0 : s.keepExistingData));
|
|
358
|
+
if (e && e.handle)
|
|
359
|
+
return new T(this.api, e.handle);
|
|
360
|
+
throw new Error(e.Error ?? "Failed to create writable stream");
|
|
361
|
+
}
|
|
362
|
+
async getFile() {
|
|
363
|
+
const s = await this.api.callOverlayHandler(C(this.handle));
|
|
364
|
+
if (s && s.handle && s.name)
|
|
365
|
+
return new O(this.api, s);
|
|
366
|
+
throw new Error(s.Error ?? "Failed to get file");
|
|
367
|
+
}
|
|
368
|
+
isSameEntry(s) {
|
|
369
|
+
return s instanceof p ? Promise.resolve(this.handle === s.handle) : Promise.resolve(!1);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
class O {
|
|
373
|
+
constructor(s, e) {
|
|
374
|
+
t(this, "handle");
|
|
375
|
+
t(this, "api");
|
|
376
|
+
t(this, "lastModified");
|
|
377
|
+
t(this, "name");
|
|
378
|
+
t(this, "webkitRelativePath");
|
|
379
|
+
t(this, "size");
|
|
380
|
+
t(this, "type");
|
|
381
|
+
this.api = s, this.handle = e.handle, this.name = e.name, this.size = e.size, this.type = e.type, this.lastModified = e.lastModified, this.webkitRelativePath = e.webkitRelativePath || "";
|
|
382
|
+
}
|
|
383
|
+
arrayBuffer() {
|
|
384
|
+
return this.bytes().then((s) => s.buffer);
|
|
385
|
+
}
|
|
386
|
+
async bytes() {
|
|
387
|
+
const s = await this.api.callOverlayHandler(I(this.handle, !0));
|
|
388
|
+
if (s && s.data)
|
|
389
|
+
return Uint8Array.from(atob(s.data), (e) => e.charCodeAt(0));
|
|
390
|
+
throw new Error(s.Error ?? "Failed to read file");
|
|
391
|
+
}
|
|
392
|
+
async text() {
|
|
393
|
+
const s = await this.api.callOverlayHandler(I(this.handle, !1));
|
|
394
|
+
if (s && s.text)
|
|
395
|
+
return s.text;
|
|
396
|
+
throw new Error(s.Error ?? "Failed to read file");
|
|
397
|
+
}
|
|
398
|
+
slice(s, e, a) {
|
|
399
|
+
throw new Error("Method not implemented.");
|
|
400
|
+
}
|
|
401
|
+
stream() {
|
|
402
|
+
throw new Error("Method not implemented.");
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
class T {
|
|
406
|
+
constructor(s, e) {
|
|
407
|
+
t(this, "locked", !1);
|
|
408
|
+
t(this, "handle");
|
|
409
|
+
t(this, "api");
|
|
410
|
+
this.api = s, this.handle = e;
|
|
411
|
+
}
|
|
412
|
+
seek(s) {
|
|
413
|
+
return this.api.callOverlayHandler(o(this.handle, "seek", s));
|
|
414
|
+
}
|
|
415
|
+
truncate(s) {
|
|
416
|
+
return this.api.callOverlayHandler(o(this.handle, "truncate", s));
|
|
417
|
+
}
|
|
418
|
+
writeData(s) {
|
|
419
|
+
return this.api.callOverlayHandler(M(this.handle, s));
|
|
420
|
+
}
|
|
421
|
+
write(s) {
|
|
422
|
+
return typeof s == "string" || s instanceof ArrayBuffer ? this.writeData(s) : s instanceof Uint8Array ? this.writeData(s.buffer) : s instanceof Blob ? s.arrayBuffer().then((e) => this.writeData(e)) : Promise.reject(new Error("Unsupported data type for writing"));
|
|
423
|
+
}
|
|
424
|
+
close() {
|
|
425
|
+
return this.api.callOverlayHandler(o(this.handle, "close"));
|
|
426
|
+
}
|
|
427
|
+
abort(s) {
|
|
428
|
+
throw new Error("Method not implemented.");
|
|
429
|
+
}
|
|
430
|
+
getWriter() {
|
|
431
|
+
throw new Error("Method not implemented.");
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
class S {
|
|
435
|
+
constructor(s) {
|
|
436
|
+
t(this, "headers");
|
|
437
|
+
t(this, "ok");
|
|
438
|
+
t(this, "status");
|
|
439
|
+
t(this, "statusText");
|
|
440
|
+
t(this, "type");
|
|
441
|
+
t(this, "url");
|
|
442
|
+
t(this, "redirected", !1);
|
|
443
|
+
t(this, "body", null);
|
|
444
|
+
t(this, "bodyUsed", !1);
|
|
445
|
+
t(this, "_bodyContent");
|
|
446
|
+
this.headers = new Headers();
|
|
447
|
+
for (const e in s.headers)
|
|
448
|
+
this.headers.append(e, s.headers[e]);
|
|
449
|
+
this.ok = s.ok, this.status = s.status, this.statusText = s.statusText, this.type = s.type, this.url = s.url, this._bodyContent = s.body;
|
|
450
|
+
}
|
|
451
|
+
clone() {
|
|
452
|
+
throw new Error("Method not implemented.");
|
|
453
|
+
}
|
|
454
|
+
text() {
|
|
455
|
+
return Promise.resolve(this._bodyContent);
|
|
456
|
+
}
|
|
457
|
+
json() {
|
|
458
|
+
return Promise.resolve(JSON.parse(this._bodyContent));
|
|
459
|
+
}
|
|
460
|
+
arrayBuffer() {
|
|
461
|
+
return this.bytes().then((s) => s.buffer);
|
|
462
|
+
}
|
|
463
|
+
formData() {
|
|
464
|
+
throw new Error("Method not implemented.");
|
|
465
|
+
}
|
|
466
|
+
blob() {
|
|
467
|
+
throw new Error("Method not implemented.");
|
|
468
|
+
}
|
|
469
|
+
bytes() {
|
|
470
|
+
return Promise.resolve(Uint8Array.from(this._bodyContent, (s) => s.charCodeAt(0)));
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
class A {
|
|
278
474
|
constructor() {
|
|
279
475
|
/**
|
|
280
476
|
* HID interface
|
|
281
477
|
*/
|
|
282
478
|
t(this, "hid");
|
|
283
|
-
t(this, "
|
|
479
|
+
t(this, "fs");
|
|
480
|
+
t(this, "api", new D());
|
|
284
481
|
t(this, "handlerMap", /* @__PURE__ */ new Map());
|
|
285
|
-
this.hid =
|
|
482
|
+
this.hid = f(this.api), this.fs = new H(this.api);
|
|
286
483
|
}
|
|
287
484
|
/**
|
|
288
485
|
* Fetch acts like window.fetch but without CORS restrictions
|
|
486
|
+
*
|
|
487
|
+
* This is old behavior for backward compatibility, new code should use fetch() instead which returns a valid Response object
|
|
289
488
|
* @param url target URL
|
|
290
489
|
* @param options options
|
|
291
490
|
* @returns response
|
|
491
|
+
* @deprecated use fetch() instead which returns a valid Response object
|
|
292
492
|
*/
|
|
293
493
|
Fetch(s, e = {}) {
|
|
294
494
|
const a = {
|
|
@@ -298,6 +498,22 @@ class k {
|
|
|
298
498
|
};
|
|
299
499
|
return this.api.callOverlayHandler(a);
|
|
300
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* fetch acts like window.fetch but without CORS restrictions, returns response body as text.
|
|
503
|
+
* @param url
|
|
504
|
+
* @param options
|
|
505
|
+
* @returns
|
|
506
|
+
*/
|
|
507
|
+
async fetch(s, e = {}) {
|
|
508
|
+
const a = {
|
|
509
|
+
call: "otk::fetch",
|
|
510
|
+
resource: s,
|
|
511
|
+
options: e
|
|
512
|
+
}, i = await this.api.callOverlayHandler(a);
|
|
513
|
+
if (!i)
|
|
514
|
+
throw new Error("method not found");
|
|
515
|
+
return new S(i);
|
|
516
|
+
}
|
|
301
517
|
/**
|
|
302
518
|
* Subscribe to game packets
|
|
303
519
|
* @param name subscription name
|
|
@@ -313,9 +529,11 @@ class k {
|
|
|
313
529
|
evt_name: "otk::packet::" + s,
|
|
314
530
|
filters: e
|
|
315
531
|
}, c = await this.api.callOverlayHandler(i);
|
|
532
|
+
if (!c)
|
|
533
|
+
throw new Error("method not found");
|
|
316
534
|
if (c.error)
|
|
317
535
|
throw new Error(c.error);
|
|
318
|
-
return c.evt_name ? (this.api.setOverlayListener(c.evt_name, (
|
|
536
|
+
return c.evt_name ? (this.api.setOverlayListener(c.evt_name, (h) => this.packetHandler(h, !1)), this.api.startOverlayEvents()) : console.warn("plugin does not support evt_name for packet subscription, may < 0.4.0"), this.handlerMap.set(c.name || s, {
|
|
319
537
|
handler: a,
|
|
320
538
|
evt_name: c.evt_name
|
|
321
539
|
}), c.name || s;
|
|
@@ -330,7 +548,7 @@ class k {
|
|
|
330
548
|
action: "unsubscribe",
|
|
331
549
|
name: s
|
|
332
550
|
}, a = await this.api.callOverlayHandler(e);
|
|
333
|
-
if (a.error)
|
|
551
|
+
if (a != null && a.error)
|
|
334
552
|
throw new Error(a.error);
|
|
335
553
|
if (this.handlerMap.has(s)) {
|
|
336
554
|
const i = this.handlerMap.get(s);
|
|
@@ -339,7 +557,7 @@ class k {
|
|
|
339
557
|
}
|
|
340
558
|
packetHandler(s, e = !1) {
|
|
341
559
|
let a = s, i = s;
|
|
342
|
-
i.data = Uint8Array.from(atob(a.msg), (
|
|
560
|
+
i.data = Uint8Array.from(atob(a.msg), (h) => h.charCodeAt(0));
|
|
343
561
|
let c = this.handlerMap.get(a.name);
|
|
344
562
|
if (c) {
|
|
345
563
|
if (e && c.evt_name)
|
|
@@ -366,6 +584,18 @@ class k {
|
|
|
366
584
|
};
|
|
367
585
|
return (await this.api.callOverlayHandler(s)).version;
|
|
368
586
|
}
|
|
587
|
+
/**
|
|
588
|
+
* Open URL in default browser
|
|
589
|
+
* @param url URL to open
|
|
590
|
+
*/
|
|
591
|
+
async OpenBrowser(s) {
|
|
592
|
+
const e = {
|
|
593
|
+
call: "otk::open_browser",
|
|
594
|
+
url: s
|
|
595
|
+
}, a = await this.api.callOverlayHandler(e);
|
|
596
|
+
if (a != null && a.Error)
|
|
597
|
+
throw new Error(a.Error);
|
|
598
|
+
}
|
|
369
599
|
/**
|
|
370
600
|
* Call start overlay events
|
|
371
601
|
*
|
|
@@ -419,7 +649,7 @@ class k {
|
|
|
419
649
|
setTimeout(() => this.tryConnectToCEF(), 300);
|
|
420
650
|
return;
|
|
421
651
|
}
|
|
422
|
-
const s = new
|
|
652
|
+
const s = new P();
|
|
423
653
|
this.api.setTransport(s), s.waitForApi();
|
|
424
654
|
}
|
|
425
655
|
/**
|
|
@@ -433,10 +663,16 @@ class k {
|
|
|
433
663
|
console.warn("OverlayToolkit: Connect wsUrl ignored in OverlayPlugin CEF environment");
|
|
434
664
|
return;
|
|
435
665
|
}
|
|
436
|
-
const e = new
|
|
666
|
+
const e = new b(s);
|
|
437
667
|
this.api.setTransport(e);
|
|
438
668
|
}
|
|
439
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* Check if connected to OverlayPlugin
|
|
672
|
+
*/
|
|
673
|
+
get isConnected() {
|
|
674
|
+
return this.api.isConnected;
|
|
675
|
+
}
|
|
440
676
|
}
|
|
441
677
|
class n {
|
|
442
678
|
constructor(s, e) {
|
|
@@ -449,7 +685,7 @@ class n {
|
|
|
449
685
|
return new Date(this.time);
|
|
450
686
|
}
|
|
451
687
|
}
|
|
452
|
-
class
|
|
688
|
+
class L extends n {
|
|
453
689
|
constructor(e) {
|
|
454
690
|
super("LogLine", e);
|
|
455
691
|
t(this, "code");
|
|
@@ -458,7 +694,7 @@ class N extends n {
|
|
|
458
694
|
this.code = e[2], this.name = e[3], this.line = e[4];
|
|
459
695
|
}
|
|
460
696
|
}
|
|
461
|
-
class
|
|
697
|
+
class R extends n {
|
|
462
698
|
constructor(e) {
|
|
463
699
|
super("ChangeZone", e);
|
|
464
700
|
/**
|
|
@@ -472,7 +708,7 @@ class l extends n {
|
|
|
472
708
|
this.zoneID = parseInt(e[2], 16), this.zoneName = e[3];
|
|
473
709
|
}
|
|
474
710
|
}
|
|
475
|
-
class
|
|
711
|
+
class z extends n {
|
|
476
712
|
constructor(e) {
|
|
477
713
|
super("ChangePrimaryPlayer", e);
|
|
478
714
|
/**
|
|
@@ -489,7 +725,7 @@ class C extends n {
|
|
|
489
725
|
return this.charID.toString(16).toUpperCase();
|
|
490
726
|
}
|
|
491
727
|
}
|
|
492
|
-
class
|
|
728
|
+
class q extends n {
|
|
493
729
|
constructor(e) {
|
|
494
730
|
super("AddCombatant", e);
|
|
495
731
|
/**
|
|
@@ -518,7 +754,7 @@ class b extends n {
|
|
|
518
754
|
this.id = parseInt(e[2], 16), this.name = e[3], this.job = parseInt(e[4], 16), this.level = parseInt(e[5], 16), this.ownerID = parseInt(e[6], 16), this.worldID = parseInt(e[7], 16), this.worldName = e[8], this.npcNameID = parseInt(e[9]), this.npcBaseID = parseInt(e[10]), this.currentHP = parseInt(e[11]), this.hp = parseInt(e[12]), this.currentMP = parseInt(e[13]), this.mp = parseInt(e[14]), this.x = parseFloat(e[17]), this.y = parseFloat(e[18]), this.z = parseFloat(e[19]), this.heading = parseFloat(e[20]);
|
|
519
755
|
}
|
|
520
756
|
}
|
|
521
|
-
class
|
|
757
|
+
class _ extends n {
|
|
522
758
|
constructor(e) {
|
|
523
759
|
super("RemoveCombatant", e);
|
|
524
760
|
/**
|
|
@@ -543,7 +779,7 @@ class F extends n {
|
|
|
543
779
|
this.id = parseInt(e[2], 16), this.name = e[3], this.job = parseInt(e[4], 16), this.level = parseInt(e[5], 16), this.ownerID = parseInt(e[6], 16), this.world = e[8], this.npcNameID = parseInt(e[9]), this.npcBaseID = parseInt(e[10]), this.currentHP = parseInt(e[11]), this.hp = parseInt(e[12]), this.currentMP = parseInt(e[13]), this.mp = parseInt(e[14]), this.x = parseFloat(e[17]), this.y = parseFloat(e[18]), this.z = parseFloat(e[19]), this.heading = parseFloat(e[20]);
|
|
544
780
|
}
|
|
545
781
|
}
|
|
546
|
-
class
|
|
782
|
+
class B extends n {
|
|
547
783
|
constructor(e) {
|
|
548
784
|
super("PartyChanged", e);
|
|
549
785
|
/**
|
|
@@ -556,7 +792,7 @@ class M extends n {
|
|
|
556
792
|
this.party.push(parseInt(e[3 + i], 16));
|
|
557
793
|
}
|
|
558
794
|
}
|
|
559
|
-
class
|
|
795
|
+
class U extends n {
|
|
560
796
|
constructor(e) {
|
|
561
797
|
super("PlayerStats", e);
|
|
562
798
|
t(this, "job");
|
|
@@ -579,7 +815,7 @@ class E extends n {
|
|
|
579
815
|
this.job = parseInt(e[2], 16), this.strength = parseInt(e[3]), this.dexterity = parseInt(e[4]), this.vitality = parseInt(e[5]), this.intelligence = parseInt(e[6]), this.mind = parseInt(e[7]), this.piety = parseInt(e[8]), this.attackPower = parseInt(e[9]), this.directHit = parseInt(e[10]), this.criticalHit = parseInt(e[11]), this.attakcMagicPotency = parseInt(e[12]), this.healingMagicPotency = parseInt(e[13]), this.determination = parseInt(e[14]), this.skillSpeed = parseInt(e[15]), this.spellSpeed = parseInt(e[16]), this.tenacity = parseInt(e[18]), this.localContentID = parseInt(e[19], 16);
|
|
580
816
|
}
|
|
581
817
|
}
|
|
582
|
-
class
|
|
818
|
+
class W extends n {
|
|
583
819
|
constructor(e) {
|
|
584
820
|
super("NetworkStartsCasting", e);
|
|
585
821
|
t(this, "sourceID");
|
|
@@ -596,7 +832,7 @@ class H extends n {
|
|
|
596
832
|
this.sourceID = parseInt(e[2], 16), this.sourceName = e[3], this.id = parseInt(e[4], 16), this.ability = e[5], this.targetID = parseInt(e[6], 16), this.targetName = e[7], this.castTime = parseFloat(e[8]), this.x = parseFloat(e[9]), this.y = parseFloat(e[10]), this.z = parseFloat(e[11]), this.heading = parseFloat(e[12]);
|
|
597
833
|
}
|
|
598
834
|
}
|
|
599
|
-
class
|
|
835
|
+
class j extends n {
|
|
600
836
|
constructor(e) {
|
|
601
837
|
super(e[0] == "22" ? "NetworkAOEAbility" : "NetworkAbility", e);
|
|
602
838
|
t(this, "sourceID");
|
|
@@ -641,7 +877,7 @@ class T extends n {
|
|
|
641
877
|
this.targetCurrentHP = parseInt(e[24]), this.targetMaxHP = parseInt(e[25]), this.targetCurrentMP = parseInt(e[26]), this.targetMaxMP = parseInt(e[27]), this.targetX = parseFloat(e[30]), this.targetY = parseFloat(e[31]), this.targetZ = parseFloat(e[32]), this.targetHeading = parseFloat(e[33]), this.currentHP = parseInt(e[34]), this.maxHP = parseInt(e[35]), this.currentMP = parseInt(e[36]), this.maxMP = parseInt(e[37]), this.x = parseFloat(e[40]), this.y = parseFloat(e[41]), this.z = parseFloat(e[42]), this.heading = parseFloat(e[43]), this.sequence = parseInt(e[44], 16), this.targetIndex = parseInt(e[45]), this.targetCount = parseInt(e[46]), this.ownerID = parseInt(e[47], 16), this.ownerName = e[48], this.effectDisplayType = parseInt(e[49]), this.actionID = parseInt(e[50], 16), this.actionAnimationID = parseInt(e[51], 16), this.animationLockTime = parseFloat(e[52]), this.rotationHex = parseInt(e[53], 16);
|
|
642
878
|
}
|
|
643
879
|
}
|
|
644
|
-
class
|
|
880
|
+
class G extends n {
|
|
645
881
|
constructor(e) {
|
|
646
882
|
super("NetworkCancelAbility", e);
|
|
647
883
|
t(this, "sourceID");
|
|
@@ -652,7 +888,7 @@ class O extends n {
|
|
|
652
888
|
this.sourceID = parseInt(e[2], 16), this.source = e[3], this.id = parseInt(e[4], 16), this.name = e[5], this.reason = e[6];
|
|
653
889
|
}
|
|
654
890
|
}
|
|
655
|
-
class
|
|
891
|
+
class V extends n {
|
|
656
892
|
constructor(e) {
|
|
657
893
|
super("NetworkDoT", e);
|
|
658
894
|
t(this, "id");
|
|
@@ -686,7 +922,7 @@ class S extends n {
|
|
|
686
922
|
this.id = parseInt(e[2], 16), this.name = e[3], this.which = e[4], this.effectID = parseInt(e[5], 16), this.damage = parseInt(e[6]), this.currentHP = parseInt(e[7]), this.maxHP = parseInt(e[8]), this.currentMP = parseInt(e[9]), this.maxMP = parseInt(e[10]), this.x = parseFloat(e[13]), this.y = parseFloat(e[14]), this.z = parseFloat(e[15]), this.heading = parseFloat(e[16]), this.sourceID = parseInt(e[17], 16), this.sourceName = e[18], this.damageType = parseInt(e[19], 16), this.sourceCurrentHP = parseInt(e[20]), this.sourceMaxHP = parseInt(e[21]), this.sourceCurrentMP = parseInt(e[22]), this.sourceMaxMP = parseInt(e[23]), this.sourceX = parseFloat(e[26]), this.sourceY = parseFloat(e[27]), this.sourceZ = parseFloat(e[28]), this.sourceHeading = parseFloat(e[29]);
|
|
687
923
|
}
|
|
688
924
|
}
|
|
689
|
-
class
|
|
925
|
+
class Y extends n {
|
|
690
926
|
constructor(e) {
|
|
691
927
|
super("NetworkDeath", e);
|
|
692
928
|
t(this, "targetID");
|
|
@@ -696,7 +932,7 @@ class L extends n {
|
|
|
696
932
|
this.targetID = parseInt(e[2], 16), this.targetName = e[3], this.sourceID = parseInt(e[4], 16), this.sourceName = e[5];
|
|
697
933
|
}
|
|
698
934
|
}
|
|
699
|
-
class
|
|
935
|
+
class Z extends n {
|
|
700
936
|
constructor(e) {
|
|
701
937
|
super("NetworkBuff", e);
|
|
702
938
|
t(this, "effectID");
|
|
@@ -712,7 +948,7 @@ class A extends n {
|
|
|
712
948
|
this.effectID = parseInt(e[2], 16), this.effectName = e[3], this.duration = parseFloat(e[4]), this.sourceID = parseInt(e[5], 16), this.sourceName = e[6], this.targetID = parseInt(e[7], 16), this.targetName = e[8], this.count = parseInt(e[9]), this.targetMaxHP = parseInt(e[10] == "" ? "-1" : e[10]), this.sourceMaxHP = parseInt(e[11] == "" ? "-1" : e[11]);
|
|
713
949
|
}
|
|
714
950
|
}
|
|
715
|
-
class
|
|
951
|
+
class J extends n {
|
|
716
952
|
constructor(e) {
|
|
717
953
|
super("NetworkTargetIcon", e);
|
|
718
954
|
t(this, "targetID");
|
|
@@ -722,7 +958,7 @@ class q extends n {
|
|
|
722
958
|
this.targetID = parseInt(e[2], 16), this.targetName = e[3], this.id = parseInt(e[6], 16), this.data0 = parseInt(e[7], 16);
|
|
723
959
|
}
|
|
724
960
|
}
|
|
725
|
-
class
|
|
961
|
+
class X extends n {
|
|
726
962
|
constructor(e) {
|
|
727
963
|
super("NetworkRaidMarker", e);
|
|
728
964
|
t(this, "operation");
|
|
@@ -735,7 +971,7 @@ class z extends n {
|
|
|
735
971
|
this.operation = e[2], this.waymark = parseInt(e[3]), this.id = parseInt(e[4], 16), this.name = e[5], this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]);
|
|
736
972
|
}
|
|
737
973
|
}
|
|
738
|
-
class
|
|
974
|
+
class K extends n {
|
|
739
975
|
constructor(e) {
|
|
740
976
|
super("NetworkTargetMarker", e);
|
|
741
977
|
t(this, "operation");
|
|
@@ -747,7 +983,7 @@ class R extends n {
|
|
|
747
983
|
this.operation = e[2], this.waymark = parseInt(e[3]), this.id = parseInt(e[4], 16), this.name = e[5], this.targetID = parseInt(e[6], 16), this.targetName = e[7];
|
|
748
984
|
}
|
|
749
985
|
}
|
|
750
|
-
class
|
|
986
|
+
class $ extends n {
|
|
751
987
|
constructor(e) {
|
|
752
988
|
super("NetworkBuffRemove", e);
|
|
753
989
|
t(this, "effectID");
|
|
@@ -760,7 +996,7 @@ class B extends n {
|
|
|
760
996
|
this.effectID = parseInt(e[2], 16), this.effectName = e[3], this.sourceID = parseInt(e[5], 16), this.sourceName = e[6], this.targetID = parseInt(e[7], 16), this.targetName = e[8], this.count = parseInt(e[9], 16);
|
|
761
997
|
}
|
|
762
998
|
}
|
|
763
|
-
class
|
|
999
|
+
class Q extends n {
|
|
764
1000
|
constructor(e) {
|
|
765
1001
|
super("NetworkGauge", e);
|
|
766
1002
|
t(this, "id");
|
|
@@ -778,7 +1014,7 @@ class U extends n {
|
|
|
778
1014
|
}
|
|
779
1015
|
}
|
|
780
1016
|
}
|
|
781
|
-
class
|
|
1017
|
+
class g extends n {
|
|
782
1018
|
constructor(e) {
|
|
783
1019
|
super("NetworkActorControl", e);
|
|
784
1020
|
t(this, "instance");
|
|
@@ -789,7 +1025,7 @@ class _ extends n {
|
|
|
789
1025
|
this.data.push(parseInt(e[4 + a], 16));
|
|
790
1026
|
}
|
|
791
1027
|
}
|
|
792
|
-
class
|
|
1028
|
+
class ee extends n {
|
|
793
1029
|
constructor(e) {
|
|
794
1030
|
super("NetworkNameToggle", e);
|
|
795
1031
|
t(this, "id");
|
|
@@ -803,7 +1039,7 @@ class j extends n {
|
|
|
803
1039
|
this.id = parseInt(e[2], 16), this.name = e[3], this.targetID = parseInt(e[4], 16), this.targetName = e[5], this.toggle = parseInt(e[6]) === 1;
|
|
804
1040
|
}
|
|
805
1041
|
}
|
|
806
|
-
class
|
|
1042
|
+
class te extends n {
|
|
807
1043
|
constructor(e) {
|
|
808
1044
|
super("NetworkTether", e);
|
|
809
1045
|
t(this, "sourceID");
|
|
@@ -814,7 +1050,7 @@ class G extends n {
|
|
|
814
1050
|
this.sourceID = parseInt(e[2], 16), this.sourceName = e[3], this.targetID = parseInt(e[4], 16), this.targetName = e[5], this.id = parseInt(e[8], 16);
|
|
815
1051
|
}
|
|
816
1052
|
}
|
|
817
|
-
class
|
|
1053
|
+
class se extends n {
|
|
818
1054
|
constructor(e) {
|
|
819
1055
|
super("LimitBreak", e);
|
|
820
1056
|
/**
|
|
@@ -825,7 +1061,7 @@ class V extends n {
|
|
|
825
1061
|
this.value = parseInt(e[2], 16), this.bars = parseInt(e[3]);
|
|
826
1062
|
}
|
|
827
1063
|
}
|
|
828
|
-
class
|
|
1064
|
+
class re extends n {
|
|
829
1065
|
constructor(e) {
|
|
830
1066
|
super("NetworkActionSync", e);
|
|
831
1067
|
t(this, "id");
|
|
@@ -843,7 +1079,7 @@ class W extends n {
|
|
|
843
1079
|
this.id = parseInt(e[2], 16), this.name = e[3], this.sequenceID = parseInt(e[4], 16), this.currentHP = e[5] ? parseInt(e[5]) : -1, this.maxHP = e[6] ? parseInt(e[6]) : -1, this.currentMP = e[7] ? parseInt(e[7]) : -1, this.maxMP = e[8] ? parseInt(e[8]) : -1, this.currentShield = e[9] ? parseInt(e[9]) : -1, this.x = parseFloat(e[11]), this.y = parseFloat(e[12]), this.z = parseFloat(e[13]), this.heading = parseFloat(e[14]);
|
|
844
1080
|
}
|
|
845
1081
|
}
|
|
846
|
-
class
|
|
1082
|
+
class ae extends n {
|
|
847
1083
|
constructor(e) {
|
|
848
1084
|
super("NetworkStatusEffects", e);
|
|
849
1085
|
t(this, "targetID");
|
|
@@ -865,7 +1101,7 @@ class Y extends n {
|
|
|
865
1101
|
this.data.push(parseInt(e[15 + a], 16));
|
|
866
1102
|
}
|
|
867
1103
|
}
|
|
868
|
-
class
|
|
1104
|
+
class ne extends n {
|
|
869
1105
|
constructor(e) {
|
|
870
1106
|
super("NetworkUpdateHP", e);
|
|
871
1107
|
t(this, "id");
|
|
@@ -883,7 +1119,7 @@ class Z extends n {
|
|
|
883
1119
|
this.id = parseInt(e[2], 16), this.name = e[3], this.currentHP = parseInt(e[4]), this.maxHP = parseInt(e[5]), this.currentMP = parseInt(e[6]), this.maxMP = parseInt(e[7]), this.x = parseFloat(e[10]), this.y = parseFloat(e[11]), this.z = parseFloat(e[12]), this.heading = parseFloat(e[13]);
|
|
884
1120
|
}
|
|
885
1121
|
}
|
|
886
|
-
class
|
|
1122
|
+
class ie extends n {
|
|
887
1123
|
constructor(e) {
|
|
888
1124
|
super("Map", e);
|
|
889
1125
|
t(this, "id");
|
|
@@ -893,7 +1129,7 @@ class J extends n {
|
|
|
893
1129
|
this.id = parseInt(e[2], 16), this.regionName = e[3], this.placeName = e[4], this.placeNameSub = e[5];
|
|
894
1130
|
}
|
|
895
1131
|
}
|
|
896
|
-
class
|
|
1132
|
+
class ce extends n {
|
|
897
1133
|
constructor(e) {
|
|
898
1134
|
super("SystemLogMessage", e);
|
|
899
1135
|
t(this, "instance");
|
|
@@ -904,7 +1140,7 @@ class X extends n {
|
|
|
904
1140
|
this.params.push(parseInt(e[4 + a], 16));
|
|
905
1141
|
}
|
|
906
1142
|
}
|
|
907
|
-
class
|
|
1143
|
+
class he extends n {
|
|
908
1144
|
constructor(e) {
|
|
909
1145
|
super("StatusList3", e);
|
|
910
1146
|
t(this, "id");
|
|
@@ -915,14 +1151,14 @@ class K extends n {
|
|
|
915
1151
|
this.statusList.push(parseInt(e[4 + a], 16));
|
|
916
1152
|
}
|
|
917
1153
|
}
|
|
918
|
-
class
|
|
1154
|
+
class pe extends n {
|
|
919
1155
|
constructor(e) {
|
|
920
1156
|
super("Debug", e);
|
|
921
1157
|
t(this, "message");
|
|
922
1158
|
this.message = e[2];
|
|
923
1159
|
}
|
|
924
1160
|
}
|
|
925
|
-
class
|
|
1161
|
+
class oe extends n {
|
|
926
1162
|
constructor(e) {
|
|
927
1163
|
super("PacketDump", e);
|
|
928
1164
|
t(this, "len");
|
|
@@ -933,26 +1169,26 @@ class Q extends n {
|
|
|
933
1169
|
this.len = parseInt(e[2], 16), this.src = parseInt(e[3], 16), this.dst = parseInt(e[4], 16), this.packetType = parseInt(e[5], 16) & 65535, this.data = new Uint8Array(this.len - 16);
|
|
934
1170
|
for (let a = 6, i = 0; a < e.length - 2; a++, i++) {
|
|
935
1171
|
const c = parseInt(e[a], 16);
|
|
936
|
-
for (let
|
|
937
|
-
this.data[i * 4 +
|
|
1172
|
+
for (let h = 0; h < 4; h++)
|
|
1173
|
+
this.data[i * 4 + h] = c >> h * 8 & 255;
|
|
938
1174
|
}
|
|
939
1175
|
}
|
|
940
1176
|
}
|
|
941
|
-
class
|
|
1177
|
+
class de extends n {
|
|
942
1178
|
constructor(e) {
|
|
943
1179
|
super("Version", e);
|
|
944
1180
|
t(this, "message");
|
|
945
1181
|
this.message = e[2];
|
|
946
1182
|
}
|
|
947
1183
|
}
|
|
948
|
-
let
|
|
1184
|
+
let ue = class extends n {
|
|
949
1185
|
constructor(e) {
|
|
950
1186
|
super("Error", e);
|
|
951
1187
|
t(this, "message");
|
|
952
1188
|
this.message = e[2];
|
|
953
1189
|
}
|
|
954
1190
|
};
|
|
955
|
-
class
|
|
1191
|
+
class Ie extends n {
|
|
956
1192
|
constructor(e) {
|
|
957
1193
|
super("LineRegistration", e);
|
|
958
1194
|
t(this, "id");
|
|
@@ -962,7 +1198,7 @@ class te extends n {
|
|
|
962
1198
|
this.id = parseInt(e[2]), this.source = e[3], this.name = e[4], this.version = e[5];
|
|
963
1199
|
}
|
|
964
1200
|
}
|
|
965
|
-
class
|
|
1201
|
+
class me extends n {
|
|
966
1202
|
constructor(e) {
|
|
967
1203
|
super("MapEffect", e);
|
|
968
1204
|
t(this, "instance");
|
|
@@ -973,7 +1209,7 @@ class se extends n {
|
|
|
973
1209
|
this.instance = parseInt(e[2], 16), this.flags = parseInt(e[3], 16), this.location = parseInt(e[4], 16), this.data0 = parseInt(e[5], 16), this.data1 = parseInt(e[6], 16);
|
|
974
1210
|
}
|
|
975
1211
|
}
|
|
976
|
-
class
|
|
1212
|
+
class le extends n {
|
|
977
1213
|
constructor(e) {
|
|
978
1214
|
super("FateDirector", e);
|
|
979
1215
|
t(this, "category");
|
|
@@ -983,7 +1219,7 @@ class re extends n {
|
|
|
983
1219
|
this.category = e[2], this.unknown = parseInt(e[3], 16), this.id = parseInt(e[4], 16), this.progress = parseInt(e[5], 16);
|
|
984
1220
|
}
|
|
985
1221
|
}
|
|
986
|
-
class
|
|
1222
|
+
class we extends n {
|
|
987
1223
|
constructor(e) {
|
|
988
1224
|
super("CEDirector", e);
|
|
989
1225
|
t(this, "popTime");
|
|
@@ -998,7 +1234,7 @@ class ae extends n {
|
|
|
998
1234
|
this.popTime = parseInt(e[2], 16), this.timeRemaining = parseInt(e[3], 16), this.unknown = parseInt(e[4], 16), this.ceKey = parseInt(e[5], 16), this.numPlayers = parseInt(e[6], 16), this.status = parseInt(e[7], 16), this.unknown2 = parseInt(e[8], 16), this.progress = parseInt(e[9], 16);
|
|
999
1235
|
}
|
|
1000
1236
|
}
|
|
1001
|
-
class
|
|
1237
|
+
class ye extends n {
|
|
1002
1238
|
constructor(e) {
|
|
1003
1239
|
super("InCombat", e);
|
|
1004
1240
|
t(this, "inACTCombat");
|
|
@@ -1008,7 +1244,7 @@ class ne extends n {
|
|
|
1008
1244
|
this.inACTCombat = parseInt(e[2]) === 1, this.inGameCombat = parseInt(e[3]) === 1, this.isACTChanged = parseInt(e[4]) === 1, this.isGameChanged = parseInt(e[5]) === 1;
|
|
1009
1245
|
}
|
|
1010
1246
|
}
|
|
1011
|
-
class
|
|
1247
|
+
class fe extends n {
|
|
1012
1248
|
constructor(e) {
|
|
1013
1249
|
super("CombatantMemory", e);
|
|
1014
1250
|
t(this, "change");
|
|
@@ -1019,7 +1255,7 @@ class ie extends n {
|
|
|
1019
1255
|
this.data.set(e[a], e[a + 1]);
|
|
1020
1256
|
}
|
|
1021
1257
|
}
|
|
1022
|
-
class
|
|
1258
|
+
class ve extends n {
|
|
1023
1259
|
constructor(e) {
|
|
1024
1260
|
super("RSVData", e);
|
|
1025
1261
|
t(this, "locale");
|
|
@@ -1029,7 +1265,7 @@ class ce extends n {
|
|
|
1029
1265
|
this.locale = e[2], this.unknown = parseInt(e[3], 16), this.key = e[4], this.value = e[5];
|
|
1030
1266
|
}
|
|
1031
1267
|
}
|
|
1032
|
-
class
|
|
1268
|
+
class xe extends n {
|
|
1033
1269
|
constructor(e) {
|
|
1034
1270
|
super("StartsUsingExtra", e);
|
|
1035
1271
|
t(this, "sourceID");
|
|
@@ -1041,7 +1277,7 @@ class pe extends n {
|
|
|
1041
1277
|
this.sourceID = parseInt(e[2], 16), this.id = parseInt(e[3], 16), this.x = parseFloat(e[4]), this.y = parseFloat(e[5]), this.z = parseFloat(e[6]), this.heading = parseFloat(e[7]);
|
|
1042
1278
|
}
|
|
1043
1279
|
}
|
|
1044
|
-
class
|
|
1280
|
+
class ke extends n {
|
|
1045
1281
|
constructor(e) {
|
|
1046
1282
|
super("AbilityExtra", e);
|
|
1047
1283
|
t(this, "sourceID");
|
|
@@ -1056,7 +1292,7 @@ class he extends n {
|
|
|
1056
1292
|
this.sourceID = parseInt(e[2], 16), this.id = parseInt(e[3], 16), this.globalEffectCounter = parseInt(e[4], 16), this.dataFlag = parseInt(e[5], 16), this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]), this.heading = parseFloat(e[9]), this.animationTargetId = parseInt(e[10], 16);
|
|
1057
1293
|
}
|
|
1058
1294
|
}
|
|
1059
|
-
class
|
|
1295
|
+
class De extends n {
|
|
1060
1296
|
constructor(e) {
|
|
1061
1297
|
super("ContentFinderSettings", e);
|
|
1062
1298
|
t(this, "zoneID");
|
|
@@ -1070,7 +1306,7 @@ class ue extends n {
|
|
|
1070
1306
|
this.zoneID = parseInt(e[2], 16), this.zoneName = e[3], this.inContentFinderContent = parseInt(e[4]) === 1, this.unrestrictedParty = parseInt(e[5]) === 1, this.minimalItemLevel = parseInt(e[6]) === 1, this.silenceEcho = parseInt(e[7]) === 1, this.explorerMode = parseInt(e[8]) === 1, this.levelSync = parseInt(e[9]) === 1;
|
|
1071
1307
|
}
|
|
1072
1308
|
}
|
|
1073
|
-
class
|
|
1309
|
+
class Pe extends n {
|
|
1074
1310
|
constructor(e) {
|
|
1075
1311
|
super("NpcYell", e);
|
|
1076
1312
|
t(this, "npcId");
|
|
@@ -1079,7 +1315,7 @@ class de extends n {
|
|
|
1079
1315
|
this.npcId = parseInt(e[2], 16), this.npcNameId = parseInt(e[3], 16), this.npcYellId = parseInt(e[4], 16);
|
|
1080
1316
|
}
|
|
1081
1317
|
}
|
|
1082
|
-
class
|
|
1318
|
+
class be extends n {
|
|
1083
1319
|
constructor(e) {
|
|
1084
1320
|
super("BattleTalk2", e);
|
|
1085
1321
|
t(this, "npcId");
|
|
@@ -1090,7 +1326,7 @@ class oe extends n {
|
|
|
1090
1326
|
this.npcId = parseInt(e[2], 16), this.instance = parseInt(e[3], 16), this.npcNameId = parseInt(e[4], 16), this.instanceContentTextId = parseInt(e[5], 16), this.displayMs = parseInt(e[6]);
|
|
1091
1327
|
}
|
|
1092
1328
|
}
|
|
1093
|
-
class
|
|
1329
|
+
class Ne extends n {
|
|
1094
1330
|
constructor(e) {
|
|
1095
1331
|
super("Countdown", e);
|
|
1096
1332
|
t(this, "id");
|
|
@@ -1101,7 +1337,7 @@ class Ie extends n {
|
|
|
1101
1337
|
this.id = parseInt(e[2], 16), this.worldID = parseInt(e[3], 16), this.countdownTime = parseInt(e[4]), this.result = parseInt(e[5], 16), this.name = e[6];
|
|
1102
1338
|
}
|
|
1103
1339
|
}
|
|
1104
|
-
class
|
|
1340
|
+
class Fe extends n {
|
|
1105
1341
|
constructor(e) {
|
|
1106
1342
|
super("CountdownCancel", e);
|
|
1107
1343
|
t(this, "id");
|
|
@@ -1110,7 +1346,7 @@ class me extends n {
|
|
|
1110
1346
|
this.id = parseInt(e[2], 16), this.worldID = parseInt(e[3], 16), this.name = e[4];
|
|
1111
1347
|
}
|
|
1112
1348
|
}
|
|
1113
|
-
class
|
|
1349
|
+
class Ce extends n {
|
|
1114
1350
|
constructor(e) {
|
|
1115
1351
|
super("ActorMove", e);
|
|
1116
1352
|
t(this, "id");
|
|
@@ -1123,7 +1359,7 @@ class we extends n {
|
|
|
1123
1359
|
this.id = parseInt(e[2], 16), this.heading = parseFloat(e[3]), this.unk1 = parseInt(e[4], 16), this.unk2 = parseInt(e[5], 16), this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]);
|
|
1124
1360
|
}
|
|
1125
1361
|
}
|
|
1126
|
-
class
|
|
1362
|
+
class Ee extends n {
|
|
1127
1363
|
constructor(e) {
|
|
1128
1364
|
super("ActorSetPos", e);
|
|
1129
1365
|
t(this, "id");
|
|
@@ -1136,7 +1372,7 @@ class ye extends n {
|
|
|
1136
1372
|
this.id = parseInt(e[2], 16), this.heading = parseFloat(e[3]), this.unk1 = parseInt(e[4], 16), this.unk2 = parseInt(e[5], 16), this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]);
|
|
1137
1373
|
}
|
|
1138
1374
|
}
|
|
1139
|
-
class
|
|
1375
|
+
class Me extends n {
|
|
1140
1376
|
constructor(e) {
|
|
1141
1377
|
super("SpawnNpcExtra", e);
|
|
1142
1378
|
t(this, "id");
|
|
@@ -1146,7 +1382,7 @@ class ve extends n {
|
|
|
1146
1382
|
this.id = parseInt(e[2], 16), this.parentID = parseInt(e[3], 16), this.tetherID = parseInt(e[4], 16), this.animationState = parseInt(e[5], 16);
|
|
1147
1383
|
}
|
|
1148
1384
|
}
|
|
1149
|
-
class
|
|
1385
|
+
class He extends n {
|
|
1150
1386
|
constructor(e) {
|
|
1151
1387
|
super("ActorControlExtra", e);
|
|
1152
1388
|
t(this, "id");
|
|
@@ -1158,7 +1394,7 @@ class fe extends n {
|
|
|
1158
1394
|
this.id = parseInt(e[2], 16), this.category = parseInt(e[3], 16), this.param1 = parseInt(e[4], 16), this.param2 = parseInt(e[5], 16), this.param3 = parseInt(e[6], 16), this.param4 = parseInt(e[7], 16);
|
|
1159
1395
|
}
|
|
1160
1396
|
}
|
|
1161
|
-
class
|
|
1397
|
+
class Oe extends n {
|
|
1162
1398
|
constructor(e) {
|
|
1163
1399
|
super("ActorControlSelfExtra", e);
|
|
1164
1400
|
t(this, "id");
|
|
@@ -1172,181 +1408,181 @@ class xe extends n {
|
|
|
1172
1408
|
this.id = parseInt(e[2], 16), this.category = parseInt(e[3], 16), this.param1 = parseInt(e[4], 16), this.param2 = parseInt(e[5], 16), this.param3 = parseInt(e[6], 16), this.param4 = parseInt(e[7], 16), this.param5 = parseInt(e[8], 16), this.param6 = parseInt(e[9], 16);
|
|
1173
1409
|
}
|
|
1174
1410
|
}
|
|
1175
|
-
class
|
|
1411
|
+
class Te extends n {
|
|
1176
1412
|
constructor(e) {
|
|
1177
1413
|
super("Unknown", e);
|
|
1178
1414
|
t(this, "rawLines");
|
|
1179
1415
|
this.rawLines = e;
|
|
1180
1416
|
}
|
|
1181
1417
|
}
|
|
1182
|
-
function
|
|
1418
|
+
function Re(r) {
|
|
1183
1419
|
switch (parseInt(r[0])) {
|
|
1184
1420
|
case 0:
|
|
1185
|
-
return new
|
|
1421
|
+
return new L(r);
|
|
1186
1422
|
case 1:
|
|
1187
|
-
return new
|
|
1423
|
+
return new R(r);
|
|
1188
1424
|
case 2:
|
|
1189
|
-
return new
|
|
1425
|
+
return new z(r);
|
|
1190
1426
|
case 3:
|
|
1191
|
-
return new
|
|
1427
|
+
return new q(r);
|
|
1192
1428
|
case 4:
|
|
1193
|
-
return new
|
|
1429
|
+
return new _(r);
|
|
1194
1430
|
case 11:
|
|
1195
|
-
return new
|
|
1431
|
+
return new B(r);
|
|
1196
1432
|
case 12:
|
|
1197
|
-
return new
|
|
1433
|
+
return new U(r);
|
|
1198
1434
|
case 20:
|
|
1199
|
-
return new
|
|
1435
|
+
return new W(r);
|
|
1200
1436
|
case 21:
|
|
1201
1437
|
case 22:
|
|
1202
|
-
return new
|
|
1438
|
+
return new j(r);
|
|
1203
1439
|
case 23:
|
|
1204
|
-
return new
|
|
1440
|
+
return new G(r);
|
|
1205
1441
|
case 24:
|
|
1206
|
-
return new
|
|
1442
|
+
return new V(r);
|
|
1207
1443
|
case 25:
|
|
1208
|
-
return new
|
|
1444
|
+
return new Y(r);
|
|
1209
1445
|
case 26:
|
|
1210
|
-
return new
|
|
1446
|
+
return new Z(r);
|
|
1211
1447
|
case 27:
|
|
1212
|
-
return new
|
|
1448
|
+
return new J(r);
|
|
1213
1449
|
case 28:
|
|
1214
|
-
return new
|
|
1450
|
+
return new X(r);
|
|
1215
1451
|
case 29:
|
|
1216
|
-
return new
|
|
1452
|
+
return new K(r);
|
|
1217
1453
|
case 30:
|
|
1218
|
-
return new
|
|
1454
|
+
return new $(r);
|
|
1219
1455
|
case 31:
|
|
1220
|
-
return new
|
|
1456
|
+
return new Q(r);
|
|
1221
1457
|
case 33:
|
|
1222
|
-
return new
|
|
1458
|
+
return new g(r);
|
|
1223
1459
|
case 34:
|
|
1224
|
-
return new
|
|
1460
|
+
return new ee(r);
|
|
1225
1461
|
case 35:
|
|
1226
|
-
return new
|
|
1462
|
+
return new te(r);
|
|
1227
1463
|
case 36:
|
|
1228
|
-
return new
|
|
1464
|
+
return new se(r);
|
|
1229
1465
|
case 37:
|
|
1230
|
-
return new
|
|
1466
|
+
return new re(r);
|
|
1231
1467
|
case 38:
|
|
1232
|
-
return new
|
|
1468
|
+
return new ae(r);
|
|
1233
1469
|
case 39:
|
|
1234
|
-
return new
|
|
1470
|
+
return new ne(r);
|
|
1235
1471
|
case 40:
|
|
1236
|
-
return new
|
|
1472
|
+
return new ie(r);
|
|
1237
1473
|
case 41:
|
|
1238
|
-
return new
|
|
1474
|
+
return new ce(r);
|
|
1239
1475
|
case 42:
|
|
1240
|
-
return new
|
|
1476
|
+
return new he(r);
|
|
1241
1477
|
case 251:
|
|
1242
|
-
return new
|
|
1478
|
+
return new pe(r);
|
|
1243
1479
|
case 252:
|
|
1244
|
-
return new
|
|
1480
|
+
return new oe(r);
|
|
1245
1481
|
case 253:
|
|
1246
|
-
return new
|
|
1482
|
+
return new de(r);
|
|
1247
1483
|
case 254:
|
|
1248
|
-
return new
|
|
1484
|
+
return new ue(r);
|
|
1249
1485
|
case 256:
|
|
1250
|
-
return new
|
|
1486
|
+
return new Ie(r);
|
|
1251
1487
|
case 257:
|
|
1252
|
-
return new
|
|
1488
|
+
return new me(r);
|
|
1253
1489
|
case 258:
|
|
1254
|
-
return new
|
|
1490
|
+
return new le(r);
|
|
1255
1491
|
case 259:
|
|
1256
|
-
return new
|
|
1492
|
+
return new we(r);
|
|
1257
1493
|
case 260:
|
|
1258
|
-
return new
|
|
1494
|
+
return new ye(r);
|
|
1259
1495
|
case 261:
|
|
1260
|
-
return new
|
|
1496
|
+
return new fe(r);
|
|
1261
1497
|
case 262:
|
|
1262
|
-
return new
|
|
1498
|
+
return new ve(r);
|
|
1263
1499
|
case 263:
|
|
1264
|
-
return new
|
|
1500
|
+
return new xe(r);
|
|
1265
1501
|
case 264:
|
|
1266
|
-
return new
|
|
1502
|
+
return new ke(r);
|
|
1267
1503
|
case 265:
|
|
1268
|
-
return new
|
|
1504
|
+
return new De(r);
|
|
1269
1505
|
case 266:
|
|
1270
|
-
return new
|
|
1506
|
+
return new Pe(r);
|
|
1271
1507
|
case 267:
|
|
1272
|
-
return new
|
|
1508
|
+
return new be(r);
|
|
1273
1509
|
case 268:
|
|
1274
|
-
return new
|
|
1510
|
+
return new Ne(r);
|
|
1275
1511
|
case 269:
|
|
1276
|
-
return new
|
|
1512
|
+
return new Fe(r);
|
|
1277
1513
|
case 270:
|
|
1278
|
-
return new
|
|
1514
|
+
return new Ce(r);
|
|
1279
1515
|
case 271:
|
|
1280
|
-
return new
|
|
1516
|
+
return new Ee(r);
|
|
1281
1517
|
case 272:
|
|
1282
|
-
return new
|
|
1518
|
+
return new Me(r);
|
|
1283
1519
|
case 273:
|
|
1284
|
-
return new
|
|
1520
|
+
return new He(r);
|
|
1285
1521
|
case 274:
|
|
1286
|
-
return new
|
|
1522
|
+
return new Oe(r);
|
|
1287
1523
|
default:
|
|
1288
|
-
return new
|
|
1524
|
+
return new Te(r);
|
|
1289
1525
|
}
|
|
1290
1526
|
}
|
|
1291
|
-
let
|
|
1527
|
+
let Se = new A();
|
|
1292
1528
|
(function() {
|
|
1293
|
-
|
|
1529
|
+
Se.Connect();
|
|
1294
1530
|
})();
|
|
1295
1531
|
export {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1532
|
+
ke as AbilityExtra,
|
|
1533
|
+
He as ActorControlExtra,
|
|
1534
|
+
Oe as ActorControlSelfExtra,
|
|
1535
|
+
Ce as ActorMove,
|
|
1536
|
+
Ee as ActorSetPos,
|
|
1537
|
+
q as AddCombatant,
|
|
1538
|
+
be as BattleTalk2,
|
|
1539
|
+
we as CEDirector,
|
|
1540
|
+
z as ChangePrimaryPlayer,
|
|
1541
|
+
R as ChangeZone,
|
|
1542
|
+
fe as CombatantMemory,
|
|
1543
|
+
De as ContentFinderSettings,
|
|
1544
|
+
Ne as Countdown,
|
|
1545
|
+
Fe as CountdownCancel,
|
|
1546
|
+
pe as Debug,
|
|
1547
|
+
ue as Error,
|
|
1548
|
+
le as FateDirector,
|
|
1549
|
+
L as GameLogLine,
|
|
1550
|
+
ye as InCombat,
|
|
1551
|
+
se as LimitBreak,
|
|
1552
|
+
Ie as LineRegistration,
|
|
1317
1553
|
n as LogLineBase,
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1554
|
+
me as MapEffect,
|
|
1555
|
+
ie as MapLog,
|
|
1556
|
+
W as NetowrkStartsCasting,
|
|
1557
|
+
j as NetworkAbility,
|
|
1558
|
+
re as NetworkActionSync,
|
|
1559
|
+
g as NetworkActorControl,
|
|
1560
|
+
Z as NetworkBuff,
|
|
1561
|
+
$ as NetworkBuffRemove,
|
|
1562
|
+
G as NetworkCancelAbility,
|
|
1563
|
+
Y as NetworkDeath,
|
|
1564
|
+
V as NetworkDoT,
|
|
1565
|
+
Q as NetworkGauge,
|
|
1566
|
+
ee as NetworkNameToggle,
|
|
1567
|
+
X as NetworkRaidMarker,
|
|
1568
|
+
ae as NetworkStatusEffects,
|
|
1569
|
+
J as NetworkTargetIcon,
|
|
1570
|
+
K as NetworkTargetMarker,
|
|
1571
|
+
te as NetworkTether,
|
|
1572
|
+
ne as NetworkUpdateHP,
|
|
1573
|
+
Pe as NpcYell,
|
|
1574
|
+
A as OverlayToolkit,
|
|
1575
|
+
oe as PacketDump,
|
|
1576
|
+
Re as ParseLogLine,
|
|
1577
|
+
B as PartyList,
|
|
1578
|
+
U as PlayerStats,
|
|
1579
|
+
ve as RSVData,
|
|
1580
|
+
_ as RemoveCombatant,
|
|
1581
|
+
Me as SpawnNpcExtra,
|
|
1582
|
+
xe as StartsUsingExtra,
|
|
1583
|
+
he as StatusList3,
|
|
1584
|
+
ce as SystemLogMessage,
|
|
1585
|
+
Te as UnknownLogLine,
|
|
1586
|
+
de as Version,
|
|
1587
|
+
Se as default
|
|
1352
1588
|
};
|