@r2o3/rgskin-nodejs 0.0.2 → 0.0.4

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/rgskin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
 
5
- const { createDirAll, isDirectory, joinPath, readDir, readFileBytes, readFileString, writeFile } = require(String.raw`./snippets/rgskin-65f1492efda13f32/inline0.js`);
5
+ const { createDirAll, isDirectory, joinPath, readDir, readFileBytes, readFileString, writeFile } = require(String.raw`./snippets/rgskin-1ac328c7fce651f2/inline0.js`);
6
6
 
7
7
  function addToExternrefTable0(obj) {
8
8
  const idx = wasm.__externref_table_alloc();
@@ -288,6 +288,14 @@ const KeymodeFinalization = (typeof FinalizationRegistry === 'undefined')
288
288
  ? { register: () => {}, unregister: () => {} }
289
289
  : new FinalizationRegistry(ptr => wasm.__wbg_keymode_free(ptr >>> 0, 1));
290
290
 
291
+ const MainMenuFinalization = (typeof FinalizationRegistry === 'undefined')
292
+ ? { register: () => {}, unregister: () => {} }
293
+ : new FinalizationRegistry(ptr => wasm.__wbg_mainmenu_free(ptr >>> 0, 1));
294
+
295
+ const MenuBorderFinalization = (typeof FinalizationRegistry === 'undefined')
296
+ ? { register: () => {}, unregister: () => {} }
297
+ : new FinalizationRegistry(ptr => wasm.__wbg_menuborder_free(ptr >>> 0, 1));
298
+
291
299
  const OsuKeymodeFinalization = (typeof FinalizationRegistry === 'undefined')
292
300
  ? { register: () => {}, unregister: () => {} }
293
301
  : new FinalizationRegistry(ptr => wasm.__wbg_osukeymode_free(ptr >>> 0, 1));
@@ -300,14 +308,38 @@ const OsuSkinIniFinalization = (typeof FinalizationRegistry === 'undefined')
300
308
  ? { register: () => {}, unregister: () => {} }
301
309
  : new FinalizationRegistry(ptr => wasm.__wbg_osuskinini_free(ptr >>> 0, 1));
302
310
 
311
+ const QuaGeneralFinalization = (typeof FinalizationRegistry === 'undefined')
312
+ ? { register: () => {}, unregister: () => {} }
313
+ : new FinalizationRegistry(ptr => wasm.__wbg_quageneral_free(ptr >>> 0, 1));
314
+
315
+ const QuaKeymodeFinalization = (typeof FinalizationRegistry === 'undefined')
316
+ ? { register: () => {}, unregister: () => {} }
317
+ : new FinalizationRegistry(ptr => wasm.__wbg_quakeymode_free(ptr >>> 0, 1));
318
+
319
+ const QuaSkinFinalization = (typeof FinalizationRegistry === 'undefined')
320
+ ? { register: () => {}, unregister: () => {} }
321
+ : new FinalizationRegistry(ptr => wasm.__wbg_quaskin_free(ptr >>> 0, 1));
322
+
323
+ const QuaSkinIniFinalization = (typeof FinalizationRegistry === 'undefined')
324
+ ? { register: () => {}, unregister: () => {} }
325
+ : new FinalizationRegistry(ptr => wasm.__wbg_quaskinini_free(ptr >>> 0, 1));
326
+
303
327
  const RawBytesFinalization = (typeof FinalizationRegistry === 'undefined')
304
328
  ? { register: () => {}, unregister: () => {} }
305
329
  : new FinalizationRegistry(ptr => wasm.__wbg_rawbytes_free(ptr >>> 0, 1));
306
330
 
331
+ const ResultsFinalization = (typeof FinalizationRegistry === 'undefined')
332
+ ? { register: () => {}, unregister: () => {} }
333
+ : new FinalizationRegistry(ptr => wasm.__wbg_results_free(ptr >>> 0, 1));
334
+
307
335
  const SkinJsonFinalization = (typeof FinalizationRegistry === 'undefined')
308
336
  ? { register: () => {}, unregister: () => {} }
309
337
  : new FinalizationRegistry(ptr => wasm.__wbg_skinjson_free(ptr >>> 0, 1));
310
338
 
339
+ const SongSelectFinalization = (typeof FinalizationRegistry === 'undefined')
340
+ ? { register: () => {}, unregister: () => {} }
341
+ : new FinalizationRegistry(ptr => wasm.__wbg_songselect_free(ptr >>> 0, 1));
342
+
311
343
  const TextureFinalization = (typeof FinalizationRegistry === 'undefined')
312
344
  ? { register: () => {}, unregister: () => {} }
313
345
  : new FinalizationRegistry(ptr => wasm.__wbg_texture_free(ptr >>> 0, 1));
@@ -334,19 +366,22 @@ class BinaryStore {
334
366
  const ptr = this.__destroy_into_raw();
335
367
  wasm.__wbg_binarystore_free(ptr, 0);
336
368
  }
337
- constructor() {
338
- const ret = wasm.binarystore_new();
339
- this.__wbg_ptr = ret >>> 0;
340
- BinaryStoreFinalization.register(this, this.__wbg_ptr, this);
341
- return this;
369
+ /**
370
+ * @returns {boolean}
371
+ */
372
+ allLoaded() {
373
+ const ret = wasm.binarystore_allLoaded(this.__wbg_ptr);
374
+ return ret !== 0;
342
375
  }
343
376
  /**
344
- * @param {RawBytes} binary
377
+ * @param {string} path
378
+ * @returns {boolean}
345
379
  */
346
- insertBinary(binary) {
347
- _assertClass(binary, RawBytes);
348
- var ptr0 = binary.__destroy_into_raw();
349
- wasm.binarystore_insertBinary(this.__wbg_ptr, ptr0);
380
+ hasBinary(path) {
381
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
382
+ const len0 = WASM_VECTOR_LEN;
383
+ const ret = wasm.binarystore_contains(this.__wbg_ptr, ptr0, len0);
384
+ return ret !== 0;
350
385
  }
351
386
  /**
352
387
  * @param {string} new_path
@@ -369,37 +404,6 @@ class BinaryStore {
369
404
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
370
405
  }
371
406
  }
372
- /**
373
- * @param {string} path
374
- * @param {ArrayBuffer} buffer
375
- */
376
- loadFromArrayBuffer(path, buffer) {
377
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
378
- const len0 = WASM_VECTOR_LEN;
379
- const ret = wasm.binarystore_loadFromArrayBuffer(this.__wbg_ptr, ptr0, len0, buffer);
380
- if (ret[1]) {
381
- throw takeFromExternrefTable0(ret[0]);
382
- }
383
- }
384
- /**
385
- * @param {string} path
386
- * @param {Uint8Array} array
387
- */
388
- loadFromUint8Array(path, array) {
389
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
390
- const len0 = WASM_VECTOR_LEN;
391
- const ret = wasm.binarystore_loadFromUint8Array(this.__wbg_ptr, ptr0, len0, array);
392
- if (ret[1]) {
393
- throw takeFromExternrefTable0(ret[0]);
394
- }
395
- }
396
- /**
397
- * @returns {boolean}
398
- */
399
- allLoaded() {
400
- const ret = wasm.binarystore_allLoaded(this.__wbg_ptr);
401
- return ret !== 0;
402
- }
403
407
  /**
404
408
  * @returns {number}
405
409
  */
@@ -407,6 +411,14 @@ class BinaryStore {
407
411
  const ret = wasm.binarystore_loadedCount(this.__wbg_ptr);
408
412
  return ret >>> 0;
409
413
  }
414
+ /**
415
+ * @param {RawBytes} binary
416
+ */
417
+ insertBinary(binary) {
418
+ _assertClass(binary, RawBytes);
419
+ var ptr0 = binary.__destroy_into_raw();
420
+ wasm.binarystore_insertBinary(this.__wbg_ptr, ptr0);
421
+ }
410
422
  /**
411
423
  * @returns {Array<any>}
412
424
  */
@@ -418,12 +430,22 @@ class BinaryStore {
418
430
  * @param {string} path
419
431
  * @returns {boolean}
420
432
  */
421
- hasBinary(path) {
433
+ binaryHasData(path) {
422
434
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
423
435
  const len0 = WASM_VECTOR_LEN;
424
- const ret = wasm.binarystore_contains(this.__wbg_ptr, ptr0, len0);
436
+ const ret = wasm.binarystore_binaryHasData(this.__wbg_ptr, ptr0, len0);
425
437
  return ret !== 0;
426
438
  }
439
+ /**
440
+ * @param {string} path
441
+ * @returns {Uint8Array | undefined}
442
+ */
443
+ getBinaryData(path) {
444
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
445
+ const len0 = WASM_VECTOR_LEN;
446
+ const ret = wasm.binarystore_getBinaryData(this.__wbg_ptr, ptr0, len0);
447
+ return ret;
448
+ }
427
449
  /**
428
450
  * @param {string} path
429
451
  * @returns {string | undefined}
@@ -441,33 +463,50 @@ class BinaryStore {
441
463
  }
442
464
  /**
443
465
  * @param {string} path
444
- * @returns {boolean}
466
+ * @param {Uint8Array} array
445
467
  */
446
- binaryHasData(path) {
468
+ loadFromUint8Array(path, array) {
447
469
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
448
470
  const len0 = WASM_VECTOR_LEN;
449
- const ret = wasm.binarystore_binaryHasData(this.__wbg_ptr, ptr0, len0);
450
- return ret !== 0;
471
+ const ret = wasm.binarystore_loadFromUint8Array(this.__wbg_ptr, ptr0, len0, array);
472
+ if (ret[1]) {
473
+ throw takeFromExternrefTable0(ret[0]);
474
+ }
451
475
  }
452
476
  /**
453
477
  * @param {string} path
454
- * @returns {Uint8Array | undefined}
478
+ * @param {ArrayBuffer} buffer
455
479
  */
456
- getBinaryData(path) {
480
+ loadFromArrayBuffer(path, buffer) {
457
481
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
458
482
  const len0 = WASM_VECTOR_LEN;
459
- const ret = wasm.binarystore_getBinaryData(this.__wbg_ptr, ptr0, len0);
460
- return ret;
483
+ const ret = wasm.binarystore_loadFromArrayBuffer(this.__wbg_ptr, ptr0, len0, buffer);
484
+ if (ret[1]) {
485
+ throw takeFromExternrefTable0(ret[0]);
486
+ }
487
+ }
488
+ constructor() {
489
+ const ret = wasm.binarystore_new_wasm();
490
+ this.__wbg_ptr = ret >>> 0;
491
+ BinaryStoreFinalization.register(this, this.__wbg_ptr, this);
492
+ return this;
493
+ }
494
+ clear() {
495
+ wasm.binarystore_clear(this.__wbg_ptr);
461
496
  }
462
497
  /**
463
- * @param {string} path
464
- * @returns {boolean}
498
+ * @returns {number}
465
499
  */
466
- contains(path) {
467
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
468
- const len0 = WASM_VECTOR_LEN;
469
- const ret = wasm.binarystore_contains(this.__wbg_ptr, ptr0, len0);
470
- return ret !== 0;
500
+ getLength() {
501
+ const ret = wasm.binarystore_getLength(this.__wbg_ptr);
502
+ return ret >>> 0;
503
+ }
504
+ /**
505
+ * @param {BinaryStore} other
506
+ */
507
+ extend(other) {
508
+ _assertClass(other, BinaryStore);
509
+ wasm.binarystore_extend(this.__wbg_ptr, other.__wbg_ptr);
471
510
  }
472
511
  /**
473
512
  * @param {string} path
@@ -480,11 +519,14 @@ class BinaryStore {
480
519
  return ret !== 0;
481
520
  }
482
521
  /**
483
- * @returns {number}
522
+ * @param {string} path
523
+ * @returns {boolean}
484
524
  */
485
- getLength() {
486
- const ret = wasm.binarystore_getLength(this.__wbg_ptr);
487
- return ret >>> 0;
525
+ contains(path) {
526
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
527
+ const len0 = WASM_VECTOR_LEN;
528
+ const ret = wasm.binarystore_contains(this.__wbg_ptr, ptr0, len0);
529
+ return ret !== 0;
488
530
  }
489
531
  /**
490
532
  * @returns {boolean}
@@ -500,20 +542,17 @@ class BinaryStore {
500
542
  const ret = wasm.binarystore_getPaths(this.__wbg_ptr);
501
543
  return ret;
502
544
  }
503
- clear() {
504
- wasm.binarystore_clear(this.__wbg_ptr);
505
- }
506
545
  /**
507
546
  * @param {string} original_path
508
- * @param {string} new_path
547
+ * @param {string} new_base_path
509
548
  * @returns {string | undefined}
510
549
  */
511
- copy(original_path, new_path) {
550
+ makeUniqueCopy(original_path, new_base_path) {
512
551
  const ptr0 = passStringToWasm0(original_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
513
552
  const len0 = WASM_VECTOR_LEN;
514
- const ptr1 = passStringToWasm0(new_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
553
+ const ptr1 = passStringToWasm0(new_base_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
515
554
  const len1 = WASM_VECTOR_LEN;
516
- const ret = wasm.binarystore_copy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
555
+ const ret = wasm.binarystore_makeUniqueCopy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
517
556
  let v3;
518
557
  if (ret[0] !== 0) {
519
558
  v3 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -523,15 +562,15 @@ class BinaryStore {
523
562
  }
524
563
  /**
525
564
  * @param {string} original_path
526
- * @param {string} new_base_path
565
+ * @param {string} new_path
527
566
  * @returns {string | undefined}
528
567
  */
529
- makeUniqueCopy(original_path, new_base_path) {
568
+ copy(original_path, new_path) {
530
569
  const ptr0 = passStringToWasm0(original_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
531
570
  const len0 = WASM_VECTOR_LEN;
532
- const ptr1 = passStringToWasm0(new_base_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
571
+ const ptr1 = passStringToWasm0(new_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
533
572
  const len1 = WASM_VECTOR_LEN;
534
- const ret = wasm.binarystore_makeUniqueCopy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
573
+ const ret = wasm.binarystore_copy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
535
574
  let v3;
536
575
  if (ret[0] !== 0) {
537
576
  v3 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -539,17 +578,20 @@ class BinaryStore {
539
578
  }
540
579
  return v3;
541
580
  }
542
- /**
543
- * @param {BinaryStore} other
544
- */
545
- extend(other) {
546
- _assertClass(other, BinaryStore);
547
- wasm.binarystore_extend(this.__wbg_ptr, other.__wbg_ptr);
548
- }
549
581
  }
550
582
  if (Symbol.dispose) BinaryStore.prototype[Symbol.dispose] = BinaryStore.prototype.free;
551
583
  exports.BinaryStore = BinaryStore;
552
584
 
585
+ /**
586
+ * @enum {0 | 1 | 2}
587
+ */
588
+ const DefaultSkin = Object.freeze({
589
+ Arrow: 0, "0": "Arrow",
590
+ Bar: 1, "1": "Bar",
591
+ Circle: 2, "2": "Circle",
592
+ });
593
+ exports.DefaultSkin = DefaultSkin;
594
+
553
595
  class FluXisKeymode {
554
596
  static __wrap(ptr) {
555
597
  ptr = ptr >>> 0;
@@ -854,22 +896,18 @@ class FluXisSkin {
854
896
  return this;
855
897
  }
856
898
  /**
857
- * @returns {GenericManiaSkin}
899
+ * @param {number} keymode
900
+ * @returns {FluXisKeymode | undefined}
858
901
  */
859
- toGenericMania() {
860
- const ret = wasm.fluxisskin_toGenericMania(this.__wbg_ptr);
861
- if (ret[2]) {
862
- throw takeFromExternrefTable0(ret[1]);
863
- }
864
- return GenericManiaSkin.__wrap(ret[0]);
902
+ getKeymode(keymode) {
903
+ const ret = wasm.fluxisskin_getKeymode(this.__wbg_ptr, keymode);
904
+ return ret === 0 ? undefined : FluXisKeymode.__wrap(ret);
865
905
  }
866
906
  /**
867
- * @param {FluXisLayout} layout
868
907
  * @returns {GenericManiaSkin}
869
908
  */
870
- toGenericManiaWithLayout(layout) {
871
- _assertClass(layout, FluXisLayout);
872
- const ret = wasm.fluxisskin_toGenericManiaWithLayout(this.__wbg_ptr, layout.__wbg_ptr);
909
+ toGenericMania() {
910
+ const ret = wasm.fluxisskin_toGenericMania(this.__wbg_ptr);
873
911
  if (ret[2]) {
874
912
  throw takeFromExternrefTable0(ret[1]);
875
913
  }
@@ -888,12 +926,13 @@ class FluXisSkin {
888
926
  return FluXisSkinWithLayout.__wrap(ret[0]);
889
927
  }
890
928
  /**
891
- * @param {number} keymode
892
- * @returns {FluXisKeymode | undefined}
929
+ * @returns {string[]}
893
930
  */
894
- getKeymode(keymode) {
895
- const ret = wasm.fluxisskin_getKeymode(this.__wbg_ptr, keymode);
896
- return ret === 0 ? undefined : FluXisKeymode.__wrap(ret);
931
+ getRequiredSamplePaths() {
932
+ const ret = wasm.fluxisskin_getRequiredSamplePaths(this.__wbg_ptr);
933
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
934
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
935
+ return v1;
897
936
  }
898
937
  /**
899
938
  * @returns {string[]}
@@ -905,13 +944,16 @@ class FluXisSkin {
905
944
  return v1;
906
945
  }
907
946
  /**
908
- * @returns {string[]}
947
+ * @param {FluXisLayout} layout
948
+ * @returns {GenericManiaSkin}
909
949
  */
910
- getRequiredSamplePaths() {
911
- const ret = wasm.fluxisskin_getRequiredSamplePaths(this.__wbg_ptr);
912
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
913
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
914
- return v1;
950
+ toGenericManiaWithLayout(layout) {
951
+ _assertClass(layout, FluXisLayout);
952
+ const ret = wasm.fluxisskin_toGenericManiaWithLayout(this.__wbg_ptr, layout.__wbg_ptr);
953
+ if (ret[2]) {
954
+ throw takeFromExternrefTable0(ret[1]);
955
+ }
956
+ return GenericManiaSkin.__wrap(ret[0]);
915
957
  }
916
958
  }
917
959
  if (Symbol.dispose) FluXisSkin.prototype[Symbol.dispose] = FluXisSkin.prototype.free;
@@ -1322,6 +1364,14 @@ class GenericManiaSkin {
1322
1364
  var ptr0 = arg0.__destroy_into_raw();
1323
1365
  wasm.__wbg_set_genericmaniaskin_samples(this.__wbg_ptr, ptr0);
1324
1366
  }
1367
+ /**
1368
+ * @param {number} keymode
1369
+ * @returns {Keymode | undefined}
1370
+ */
1371
+ getKeymode(keymode) {
1372
+ const ret = wasm.genericmaniaskin_getKeymode(this.__wbg_ptr, keymode);
1373
+ return ret === 0 ? undefined : Keymode.__wrap(ret);
1374
+ }
1325
1375
  /**
1326
1376
  * @returns {GenericManiaSkin}
1327
1377
  */
@@ -1344,19 +1394,11 @@ class GenericManiaSkin {
1344
1394
  }
1345
1395
  return GenericManiaSkin.__wrap(ret[0]);
1346
1396
  }
1347
- /**
1348
- * @param {number} keymode
1349
- * @returns {Keymode | undefined}
1350
- */
1351
- getKeymode(keymode) {
1352
- const ret = wasm.genericmaniaskin_getKeymode(this.__wbg_ptr, keymode);
1353
- return ret === 0 ? undefined : Keymode.__wrap(ret);
1354
- }
1355
1397
  /**
1356
1398
  * @returns {string[]}
1357
1399
  */
1358
- getRequiredTexturePaths() {
1359
- const ret = wasm.genericmaniaskin_getRequiredTexturePaths(this.__wbg_ptr);
1400
+ getRequiredSamplePaths() {
1401
+ const ret = wasm.genericmaniaskin_getRequiredSamplePaths(this.__wbg_ptr);
1360
1402
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
1361
1403
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1362
1404
  return v1;
@@ -1364,8 +1406,8 @@ class GenericManiaSkin {
1364
1406
  /**
1365
1407
  * @returns {string[]}
1366
1408
  */
1367
- getRequiredSamplePaths() {
1368
- const ret = wasm.genericmaniaskin_getRequiredSamplePaths(this.__wbg_ptr);
1409
+ getRequiredTexturePaths() {
1410
+ const ret = wasm.genericmaniaskin_getRequiredTexturePaths(this.__wbg_ptr);
1369
1411
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
1370
1412
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1371
1413
  return v1;
@@ -1374,17 +1416,57 @@ class GenericManiaSkin {
1374
1416
  if (Symbol.dispose) GenericManiaSkin.prototype[Symbol.dispose] = GenericManiaSkin.prototype.free;
1375
1417
  exports.GenericManiaSkin = GenericManiaSkin;
1376
1418
 
1377
- class Info {
1378
- static __wrap(ptr) {
1379
- ptr = ptr >>> 0;
1380
- const obj = Object.create(Info.prototype);
1381
- obj.__wbg_ptr = ptr;
1382
- InfoFinalization.register(obj, obj.__wbg_ptr, obj);
1383
- return obj;
1384
- }
1385
- __destroy_into_raw() {
1386
- const ptr = this.__wbg_ptr;
1387
- this.__wbg_ptr = 0;
1419
+ /**
1420
+ * @enum {0 | 1 | 2}
1421
+ */
1422
+ const HealthBarKeysAlignment = Object.freeze({
1423
+ LeftStage: 0, "0": "LeftStage",
1424
+ RightStage: 1, "1": "RightStage",
1425
+ TopLeft: 2, "2": "TopLeft",
1426
+ });
1427
+ exports.HealthBarKeysAlignment = HealthBarKeysAlignment;
1428
+
1429
+ /**
1430
+ * @enum {0 | 1}
1431
+ */
1432
+ const HealthBarType = Object.freeze({
1433
+ Horizontal: 0, "0": "Horizontal",
1434
+ Vertical: 1, "1": "Vertical",
1435
+ });
1436
+ exports.HealthBarType = HealthBarType;
1437
+
1438
+ /**
1439
+ * @enum {0 | 1 | 2}
1440
+ */
1441
+ const HitBubblesAlignment = Object.freeze({
1442
+ LeftStage: 0, "0": "LeftStage",
1443
+ RightStage: 1, "1": "RightStage",
1444
+ BelowStage: 2, "2": "BelowStage",
1445
+ });
1446
+ exports.HitBubblesAlignment = HitBubblesAlignment;
1447
+
1448
+ /**
1449
+ * @enum {0 | 1 | 2 | 3}
1450
+ */
1451
+ const HitBubblesType = Object.freeze({
1452
+ FallDown: 0, "0": "FallDown",
1453
+ FallUp: 1, "1": "FallUp",
1454
+ FallLeft: 2, "2": "FallLeft",
1455
+ FallRight: 3, "3": "FallRight",
1456
+ });
1457
+ exports.HitBubblesType = HitBubblesType;
1458
+
1459
+ class Info {
1460
+ static __wrap(ptr) {
1461
+ ptr = ptr >>> 0;
1462
+ const obj = Object.create(Info.prototype);
1463
+ obj.__wbg_ptr = ptr;
1464
+ InfoFinalization.register(obj, obj.__wbg_ptr, obj);
1465
+ return obj;
1466
+ }
1467
+ __destroy_into_raw() {
1468
+ const ptr = this.__wbg_ptr;
1469
+ this.__wbg_ptr = 0;
1388
1470
  InfoFinalization.unregister(this);
1389
1471
  return ptr;
1390
1472
  }
@@ -1484,17 +1566,17 @@ class Keymode {
1484
1566
  wasm.__wbg_keymode_free(ptr, 0);
1485
1567
  }
1486
1568
  /**
1487
- * @param {string} content
1488
- * @returns {OsuKeymode}
1569
+ * @returns {number}
1489
1570
  */
1490
- static fromStr(content) {
1491
- const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1492
- const len0 = WASM_VECTOR_LEN;
1493
- const ret = wasm.keymode_fromStr(ptr0, len0);
1494
- if (ret[2]) {
1495
- throw takeFromExternrefTable0(ret[1]);
1496
- }
1497
- return OsuKeymode.__wrap(ret[0]);
1571
+ get keymode() {
1572
+ const ret = wasm.__wbg_get_keymode_keymode(this.__wbg_ptr);
1573
+ return ret;
1574
+ }
1575
+ /**
1576
+ * @param {number} arg0
1577
+ */
1578
+ set keymode(arg0) {
1579
+ wasm.__wbg_set_keymode_keymode(this.__wbg_ptr, arg0);
1498
1580
  }
1499
1581
  /**
1500
1582
  * @returns {string}
@@ -1511,6 +1593,19 @@ class Keymode {
1511
1593
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1512
1594
  }
1513
1595
  }
1596
+ /**
1597
+ * @param {string} content
1598
+ * @returns {OsuKeymode}
1599
+ */
1600
+ static fromStr(content) {
1601
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1602
+ const len0 = WASM_VECTOR_LEN;
1603
+ const ret = wasm.keymode_fromStr(ptr0, len0);
1604
+ if (ret[2]) {
1605
+ throw takeFromExternrefTable0(ret[1]);
1606
+ }
1607
+ return OsuKeymode.__wrap(ret[0]);
1608
+ }
1514
1609
  /**
1515
1610
  * @returns {string[]}
1516
1611
  */
@@ -1520,22 +1615,148 @@ class Keymode {
1520
1615
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1521
1616
  return v1;
1522
1617
  }
1618
+ }
1619
+ if (Symbol.dispose) Keymode.prototype[Symbol.dispose] = Keymode.prototype.free;
1620
+ exports.Keymode = Keymode;
1621
+
1622
+ class MainMenu {
1623
+ static __wrap(ptr) {
1624
+ ptr = ptr >>> 0;
1625
+ const obj = Object.create(MainMenu.prototype);
1626
+ obj.__wbg_ptr = ptr;
1627
+ MainMenuFinalization.register(obj, obj.__wbg_ptr, obj);
1628
+ return obj;
1629
+ }
1630
+ __destroy_into_raw() {
1631
+ const ptr = this.__wbg_ptr;
1632
+ this.__wbg_ptr = 0;
1633
+ MainMenuFinalization.unregister(this);
1634
+ return ptr;
1635
+ }
1636
+ free() {
1637
+ const ptr = this.__destroy_into_raw();
1638
+ wasm.__wbg_mainmenu_free(ptr, 0);
1639
+ }
1523
1640
  /**
1524
1641
  * @returns {number}
1525
1642
  */
1526
- get keymode() {
1527
- const ret = wasm.__wbg_get_keymode_keymode(this.__wbg_ptr);
1643
+ get navigation_button_hovered_alpha() {
1644
+ const ret = wasm.__wbg_get_mainmenu_navigation_button_hovered_alpha(this.__wbg_ptr);
1528
1645
  return ret;
1529
1646
  }
1530
1647
  /**
1531
1648
  * @param {number} arg0
1532
1649
  */
1533
- set keymode(arg0) {
1534
- wasm.__wbg_set_keymode_keymode(this.__wbg_ptr, arg0);
1650
+ set navigation_button_hovered_alpha(arg0) {
1651
+ wasm.__wbg_set_mainmenu_navigation_button_hovered_alpha(this.__wbg_ptr, arg0);
1652
+ }
1653
+ /**
1654
+ * @returns {number}
1655
+ */
1656
+ get audio_visualizer_opacity() {
1657
+ const ret = wasm.__wbg_get_mainmenu_audio_visualizer_opacity(this.__wbg_ptr);
1658
+ return ret;
1659
+ }
1660
+ /**
1661
+ * @param {number} arg0
1662
+ */
1663
+ set audio_visualizer_opacity(arg0) {
1664
+ wasm.__wbg_set_mainmenu_audio_visualizer_opacity(this.__wbg_ptr, arg0);
1665
+ }
1666
+ /**
1667
+ * @returns {number}
1668
+ */
1669
+ get note_visualizer_opacity() {
1670
+ const ret = wasm.__wbg_get_mainmenu_note_visualizer_opacity(this.__wbg_ptr);
1671
+ return ret;
1672
+ }
1673
+ /**
1674
+ * @param {number} arg0
1675
+ */
1676
+ set note_visualizer_opacity(arg0) {
1677
+ wasm.__wbg_set_mainmenu_note_visualizer_opacity(this.__wbg_ptr, arg0);
1678
+ }
1679
+ /**
1680
+ * @param {string} content
1681
+ * @returns {MainMenu}
1682
+ */
1683
+ static fromStr(content) {
1684
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1685
+ const len0 = WASM_VECTOR_LEN;
1686
+ const ret = wasm.mainmenu_fromStr(ptr0, len0);
1687
+ if (ret[2]) {
1688
+ throw takeFromExternrefTable0(ret[1]);
1689
+ }
1690
+ return MainMenu.__wrap(ret[0]);
1691
+ }
1692
+ /**
1693
+ * @returns {string}
1694
+ */
1695
+ toString() {
1696
+ let deferred1_0;
1697
+ let deferred1_1;
1698
+ try {
1699
+ const ret = wasm.mainmenu_toString(this.__wbg_ptr);
1700
+ deferred1_0 = ret[0];
1701
+ deferred1_1 = ret[1];
1702
+ return getStringFromWasm0(ret[0], ret[1]);
1703
+ } finally {
1704
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1705
+ }
1535
1706
  }
1536
1707
  }
1537
- if (Symbol.dispose) Keymode.prototype[Symbol.dispose] = Keymode.prototype.free;
1538
- exports.Keymode = Keymode;
1708
+ if (Symbol.dispose) MainMenu.prototype[Symbol.dispose] = MainMenu.prototype.free;
1709
+ exports.MainMenu = MainMenu;
1710
+
1711
+ class MenuBorder {
1712
+ static __wrap(ptr) {
1713
+ ptr = ptr >>> 0;
1714
+ const obj = Object.create(MenuBorder.prototype);
1715
+ obj.__wbg_ptr = ptr;
1716
+ MenuBorderFinalization.register(obj, obj.__wbg_ptr, obj);
1717
+ return obj;
1718
+ }
1719
+ __destroy_into_raw() {
1720
+ const ptr = this.__wbg_ptr;
1721
+ this.__wbg_ptr = 0;
1722
+ MenuBorderFinalization.unregister(this);
1723
+ return ptr;
1724
+ }
1725
+ free() {
1726
+ const ptr = this.__destroy_into_raw();
1727
+ wasm.__wbg_menuborder_free(ptr, 0);
1728
+ }
1729
+ /**
1730
+ * @param {string} content
1731
+ * @returns {MenuBorder}
1732
+ */
1733
+ static fromStr(content) {
1734
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1735
+ const len0 = WASM_VECTOR_LEN;
1736
+ const ret = wasm.menuborder_fromStr(ptr0, len0);
1737
+ if (ret[2]) {
1738
+ throw takeFromExternrefTable0(ret[1]);
1739
+ }
1740
+ return MenuBorder.__wrap(ret[0]);
1741
+ }
1742
+ /**
1743
+ * @returns {string}
1744
+ */
1745
+ toString() {
1746
+ let deferred1_0;
1747
+ let deferred1_1;
1748
+ try {
1749
+ const ret = wasm.menuborder_toString(this.__wbg_ptr);
1750
+ deferred1_0 = ret[0];
1751
+ deferred1_1 = ret[1];
1752
+ return getStringFromWasm0(ret[0], ret[1]);
1753
+ } finally {
1754
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1755
+ }
1756
+ }
1757
+ }
1758
+ if (Symbol.dispose) MenuBorder.prototype[Symbol.dispose] = MenuBorder.prototype.free;
1759
+ exports.MenuBorder = MenuBorder;
1539
1760
 
1540
1761
  class OsuKeymode {
1541
1762
  static __wrap(ptr) {
@@ -2437,6 +2658,14 @@ class OsuSkin {
2437
2658
  OsuSkinFinalization.register(this, this.__wbg_ptr, this);
2438
2659
  return this;
2439
2660
  }
2661
+ /**
2662
+ * @param {number} keymode
2663
+ * @returns {OsuKeymode | undefined}
2664
+ */
2665
+ getKeymode(keymode) {
2666
+ const ret = wasm.osuskin_getKeymode(this.__wbg_ptr, keymode);
2667
+ return ret === 0 ? undefined : OsuKeymode.__wrap(ret);
2668
+ }
2440
2669
  /**
2441
2670
  * @returns {GenericManiaSkin}
2442
2671
  */
@@ -2459,19 +2688,11 @@ class OsuSkin {
2459
2688
  }
2460
2689
  return OsuSkin.__wrap(ret[0]);
2461
2690
  }
2462
- /**
2463
- * @param {number} keymode
2464
- * @returns {OsuKeymode | undefined}
2465
- */
2466
- getKeymode(keymode) {
2467
- const ret = wasm.osuskin_getKeymode(this.__wbg_ptr, keymode);
2468
- return ret === 0 ? undefined : OsuKeymode.__wrap(ret);
2469
- }
2470
2691
  /**
2471
2692
  * @returns {string[]}
2472
2693
  */
2473
- getRequiredTexturePaths() {
2474
- const ret = wasm.osuskin_getRequiredTexturePaths(this.__wbg_ptr);
2694
+ getRequiredSamplePaths() {
2695
+ const ret = wasm.osuskin_getRequiredSamplePaths(this.__wbg_ptr);
2475
2696
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2476
2697
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2477
2698
  return v1;
@@ -2479,8 +2700,8 @@ class OsuSkin {
2479
2700
  /**
2480
2701
  * @returns {string[]}
2481
2702
  */
2482
- getRequiredSamplePaths() {
2483
- const ret = wasm.osuskin_getRequiredSamplePaths(this.__wbg_ptr);
2703
+ getRequiredTexturePaths() {
2704
+ const ret = wasm.osuskin_getRequiredTexturePaths(this.__wbg_ptr);
2484
2705
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2485
2706
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2486
2707
  return v1;
@@ -2539,12 +2760,6 @@ class OsuSkinIni {
2539
2760
  const len0 = WASM_VECTOR_LEN;
2540
2761
  wasm.__wbg_set_osuskinini_keymodes(this.__wbg_ptr, ptr0, len0);
2541
2762
  }
2542
- constructor() {
2543
- const ret = wasm.osuskinini_new();
2544
- this.__wbg_ptr = ret >>> 0;
2545
- OsuSkinIniFinalization.register(this, this.__wbg_ptr, this);
2546
- return this;
2547
- }
2548
2763
  /**
2549
2764
  * @param {string} json_str
2550
2765
  * @returns {OsuSkinIni}
@@ -2574,13 +2789,12 @@ class OsuSkinIni {
2574
2789
  }
2575
2790
  }
2576
2791
  /**
2577
- * @returns {string[]}
2792
+ * @param {number} keymode
2793
+ * @returns {OsuKeymode | undefined}
2578
2794
  */
2579
- getRequiredTexturePaths() {
2580
- const ret = wasm.osuskinini_getRequiredTexturePaths(this.__wbg_ptr);
2581
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2582
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2583
- return v1;
2795
+ getKeymode(keymode) {
2796
+ const ret = wasm.osuskinini_getKeymode(this.__wbg_ptr, keymode);
2797
+ return ret === 0 ? undefined : OsuKeymode.__wrap(ret);
2584
2798
  }
2585
2799
  /**
2586
2800
  * @returns {string[]}
@@ -2592,43 +2806,50 @@ class OsuSkinIni {
2592
2806
  return v1;
2593
2807
  }
2594
2808
  /**
2595
- * @param {number} keymode
2596
- * @returns {OsuKeymode | undefined}
2809
+ * @returns {string[]}
2597
2810
  */
2598
- getKeymode(keymode) {
2599
- const ret = wasm.osuskinini_getKeymode(this.__wbg_ptr, keymode);
2600
- return ret === 0 ? undefined : OsuKeymode.__wrap(ret);
2811
+ getRequiredTexturePaths() {
2812
+ const ret = wasm.osuskinini_getRequiredTexturePaths(this.__wbg_ptr);
2813
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2814
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2815
+ return v1;
2816
+ }
2817
+ constructor() {
2818
+ const ret = wasm.osuskinini_new();
2819
+ this.__wbg_ptr = ret >>> 0;
2820
+ OsuSkinIniFinalization.register(this, this.__wbg_ptr, this);
2821
+ return this;
2601
2822
  }
2602
2823
  }
2603
2824
  if (Symbol.dispose) OsuSkinIni.prototype[Symbol.dispose] = OsuSkinIni.prototype.free;
2604
2825
  exports.OsuSkinIni = OsuSkinIni;
2605
2826
 
2606
- class RawBytes {
2827
+ class QuaGeneral {
2607
2828
  static __wrap(ptr) {
2608
2829
  ptr = ptr >>> 0;
2609
- const obj = Object.create(RawBytes.prototype);
2830
+ const obj = Object.create(QuaGeneral.prototype);
2610
2831
  obj.__wbg_ptr = ptr;
2611
- RawBytesFinalization.register(obj, obj.__wbg_ptr, obj);
2832
+ QuaGeneralFinalization.register(obj, obj.__wbg_ptr, obj);
2612
2833
  return obj;
2613
2834
  }
2614
2835
  __destroy_into_raw() {
2615
2836
  const ptr = this.__wbg_ptr;
2616
2837
  this.__wbg_ptr = 0;
2617
- RawBytesFinalization.unregister(this);
2838
+ QuaGeneralFinalization.unregister(this);
2618
2839
  return ptr;
2619
2840
  }
2620
2841
  free() {
2621
2842
  const ptr = this.__destroy_into_raw();
2622
- wasm.__wbg_rawbytes_free(ptr, 0);
2843
+ wasm.__wbg_quageneral_free(ptr, 0);
2623
2844
  }
2624
2845
  /**
2625
2846
  * @returns {string}
2626
2847
  */
2627
- get path() {
2848
+ get name() {
2628
2849
  let deferred1_0;
2629
2850
  let deferred1_1;
2630
2851
  try {
2631
- const ret = wasm.__wbg_get_rawbytes_path(this.__wbg_ptr);
2852
+ const ret = wasm.__wbg_get_quageneral_name(this.__wbg_ptr);
2632
2853
  deferred1_0 = ret[0];
2633
2854
  deferred1_1 = ret[1];
2634
2855
  return getStringFromWasm0(ret[0], ret[1]);
@@ -2639,34 +2860,1693 @@ class RawBytes {
2639
2860
  /**
2640
2861
  * @param {string} arg0
2641
2862
  */
2642
- set path(arg0) {
2863
+ set name(arg0) {
2643
2864
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2644
2865
  const len0 = WASM_VECTOR_LEN;
2645
- wasm.__wbg_set_rawbytes_path(this.__wbg_ptr, ptr0, len0);
2866
+ wasm.__wbg_set_general_name(this.__wbg_ptr, ptr0, len0);
2646
2867
  }
2647
2868
  /**
2648
- * @param {string} path
2869
+ * @returns {string}
2649
2870
  */
2650
- constructor(path) {
2651
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2652
- const len0 = WASM_VECTOR_LEN;
2653
- const ret = wasm.rawbytes_new(ptr0, len0);
2654
- this.__wbg_ptr = ret >>> 0;
2655
- RawBytesFinalization.register(this, this.__wbg_ptr, this);
2656
- return this;
2871
+ get author() {
2872
+ let deferred1_0;
2873
+ let deferred1_1;
2874
+ try {
2875
+ const ret = wasm.__wbg_get_quageneral_author(this.__wbg_ptr);
2876
+ deferred1_0 = ret[0];
2877
+ deferred1_1 = ret[1];
2878
+ return getStringFromWasm0(ret[0], ret[1]);
2879
+ } finally {
2880
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2881
+ }
2657
2882
  }
2658
2883
  /**
2659
- * @param {string} path
2660
- * @param {Uint8Array} bytes
2661
- * @returns {RawBytes}
2884
+ * @param {string} arg0
2662
2885
  */
2663
- static fromBytes(path, bytes) {
2664
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2886
+ set author(arg0) {
2887
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2665
2888
  const len0 = WASM_VECTOR_LEN;
2666
- const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
2667
- const len1 = WASM_VECTOR_LEN;
2668
- const ret = wasm.rawbytes_fromBytes(ptr0, len0, ptr1, len1);
2669
- return RawBytes.__wrap(ret);
2889
+ wasm.__wbg_set_general_author(this.__wbg_ptr, ptr0, len0);
2890
+ }
2891
+ /**
2892
+ * @returns {string}
2893
+ */
2894
+ get version() {
2895
+ let deferred1_0;
2896
+ let deferred1_1;
2897
+ try {
2898
+ const ret = wasm.__wbg_get_quageneral_version(this.__wbg_ptr);
2899
+ deferred1_0 = ret[0];
2900
+ deferred1_1 = ret[1];
2901
+ return getStringFromWasm0(ret[0], ret[1]);
2902
+ } finally {
2903
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2904
+ }
2905
+ }
2906
+ /**
2907
+ * @param {string} arg0
2908
+ */
2909
+ set version(arg0) {
2910
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2911
+ const len0 = WASM_VECTOR_LEN;
2912
+ wasm.__wbg_set_general_version(this.__wbg_ptr, ptr0, len0);
2913
+ }
2914
+ /**
2915
+ * @returns {boolean}
2916
+ */
2917
+ get center_cursor() {
2918
+ const ret = wasm.__wbg_get_quageneral_center_cursor(this.__wbg_ptr);
2919
+ return ret !== 0;
2920
+ }
2921
+ /**
2922
+ * @param {boolean} arg0
2923
+ */
2924
+ set center_cursor(arg0) {
2925
+ wasm.__wbg_set_quageneral_center_cursor(this.__wbg_ptr, arg0);
2926
+ }
2927
+ /**
2928
+ * @returns {boolean}
2929
+ */
2930
+ get use_skin_backgrounds() {
2931
+ const ret = wasm.__wbg_get_quageneral_use_skin_backgrounds(this.__wbg_ptr);
2932
+ return ret !== 0;
2933
+ }
2934
+ /**
2935
+ * @param {boolean} arg0
2936
+ */
2937
+ set use_skin_backgrounds(arg0) {
2938
+ wasm.__wbg_set_quageneral_use_skin_backgrounds(this.__wbg_ptr, arg0);
2939
+ }
2940
+ /**
2941
+ * @param {string} content
2942
+ * @returns {QuaGeneral}
2943
+ */
2944
+ static fromStr(content) {
2945
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2946
+ const len0 = WASM_VECTOR_LEN;
2947
+ const ret = wasm.quageneral_fromStr(ptr0, len0);
2948
+ if (ret[2]) {
2949
+ throw takeFromExternrefTable0(ret[1]);
2950
+ }
2951
+ return QuaGeneral.__wrap(ret[0]);
2952
+ }
2953
+ /**
2954
+ * @returns {string}
2955
+ */
2956
+ toString() {
2957
+ let deferred1_0;
2958
+ let deferred1_1;
2959
+ try {
2960
+ const ret = wasm.quageneral_toString(this.__wbg_ptr);
2961
+ deferred1_0 = ret[0];
2962
+ deferred1_1 = ret[1];
2963
+ return getStringFromWasm0(ret[0], ret[1]);
2964
+ } finally {
2965
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2966
+ }
2967
+ }
2968
+ }
2969
+ if (Symbol.dispose) QuaGeneral.prototype[Symbol.dispose] = QuaGeneral.prototype.free;
2970
+ exports.QuaGeneral = QuaGeneral;
2971
+
2972
+ class QuaKeymode {
2973
+ static __wrap(ptr) {
2974
+ ptr = ptr >>> 0;
2975
+ const obj = Object.create(QuaKeymode.prototype);
2976
+ obj.__wbg_ptr = ptr;
2977
+ QuaKeymodeFinalization.register(obj, obj.__wbg_ptr, obj);
2978
+ return obj;
2979
+ }
2980
+ static __unwrap(jsValue) {
2981
+ if (!(jsValue instanceof QuaKeymode)) {
2982
+ return 0;
2983
+ }
2984
+ return jsValue.__destroy_into_raw();
2985
+ }
2986
+ __destroy_into_raw() {
2987
+ const ptr = this.__wbg_ptr;
2988
+ this.__wbg_ptr = 0;
2989
+ QuaKeymodeFinalization.unregister(this);
2990
+ return ptr;
2991
+ }
2992
+ free() {
2993
+ const ptr = this.__destroy_into_raw();
2994
+ wasm.__wbg_quakeymode_free(ptr, 0);
2995
+ }
2996
+ /**
2997
+ * @returns {number}
2998
+ */
2999
+ get keymode() {
3000
+ const ret = wasm.__wbg_get_quakeymode_keymode(this.__wbg_ptr);
3001
+ return ret;
3002
+ }
3003
+ /**
3004
+ * @param {number} arg0
3005
+ */
3006
+ set keymode(arg0) {
3007
+ wasm.__wbg_set_quakeymode_keymode(this.__wbg_ptr, arg0);
3008
+ }
3009
+ /**
3010
+ * @returns {DefaultSkin}
3011
+ */
3012
+ get default_skin() {
3013
+ const ret = wasm.__wbg_get_quakeymode_default_skin(this.__wbg_ptr);
3014
+ return ret;
3015
+ }
3016
+ /**
3017
+ * @param {DefaultSkin} arg0
3018
+ */
3019
+ set default_skin(arg0) {
3020
+ wasm.__wbg_set_quakeymode_default_skin(this.__wbg_ptr, arg0);
3021
+ }
3022
+ /**
3023
+ * @returns {boolean}
3024
+ */
3025
+ get color_objects_by_snap_distance() {
3026
+ const ret = wasm.__wbg_get_quakeymode_color_objects_by_snap_distance(this.__wbg_ptr);
3027
+ return ret !== 0;
3028
+ }
3029
+ /**
3030
+ * @param {boolean} arg0
3031
+ */
3032
+ set color_objects_by_snap_distance(arg0) {
3033
+ wasm.__wbg_set_quakeymode_color_objects_by_snap_distance(this.__wbg_ptr, arg0);
3034
+ }
3035
+ /**
3036
+ * @returns {boolean}
3037
+ */
3038
+ get use_hit_object_sheet() {
3039
+ const ret = wasm.__wbg_get_quakeymode_use_hit_object_sheet(this.__wbg_ptr);
3040
+ return ret !== 0;
3041
+ }
3042
+ /**
3043
+ * @param {boolean} arg0
3044
+ */
3045
+ set use_hit_object_sheet(arg0) {
3046
+ wasm.__wbg_set_quakeymode_use_hit_object_sheet(this.__wbg_ptr, arg0);
3047
+ }
3048
+ /**
3049
+ * @returns {boolean}
3050
+ */
3051
+ get rotate_hit_objects_by_column() {
3052
+ const ret = wasm.__wbg_get_quakeymode_rotate_hit_objects_by_column(this.__wbg_ptr);
3053
+ return ret !== 0;
3054
+ }
3055
+ /**
3056
+ * @param {boolean} arg0
3057
+ */
3058
+ set rotate_hit_objects_by_column(arg0) {
3059
+ wasm.__wbg_set_quakeymode_rotate_hit_objects_by_column(this.__wbg_ptr, arg0);
3060
+ }
3061
+ /**
3062
+ * @returns {boolean}
3063
+ */
3064
+ get flip_note_images_on_upscroll() {
3065
+ const ret = wasm.__wbg_get_quakeymode_flip_note_images_on_upscroll(this.__wbg_ptr);
3066
+ return ret !== 0;
3067
+ }
3068
+ /**
3069
+ * @param {boolean} arg0
3070
+ */
3071
+ set flip_note_images_on_upscroll(arg0) {
3072
+ wasm.__wbg_set_quakeymode_flip_note_images_on_upscroll(this.__wbg_ptr, arg0);
3073
+ }
3074
+ /**
3075
+ * @returns {boolean}
3076
+ */
3077
+ get flip_note_end_images_on_upscroll() {
3078
+ const ret = wasm.__wbg_get_quakeymode_flip_note_end_images_on_upscroll(this.__wbg_ptr);
3079
+ return ret !== 0;
3080
+ }
3081
+ /**
3082
+ * @param {boolean} arg0
3083
+ */
3084
+ set flip_note_end_images_on_upscroll(arg0) {
3085
+ wasm.__wbg_set_quakeymode_flip_note_end_images_on_upscroll(this.__wbg_ptr, arg0);
3086
+ }
3087
+ /**
3088
+ * @returns {boolean}
3089
+ */
3090
+ get draw_long_note_end() {
3091
+ const ret = wasm.__wbg_get_quakeymode_draw_long_note_end(this.__wbg_ptr);
3092
+ return ret !== 0;
3093
+ }
3094
+ /**
3095
+ * @param {boolean} arg0
3096
+ */
3097
+ set draw_long_note_end(arg0) {
3098
+ wasm.__wbg_set_quakeymode_draw_long_note_end(this.__wbg_ptr, arg0);
3099
+ }
3100
+ /**
3101
+ * @returns {number}
3102
+ */
3103
+ get note_padding() {
3104
+ const ret = wasm.__wbg_get_quakeymode_note_padding(this.__wbg_ptr);
3105
+ return ret;
3106
+ }
3107
+ /**
3108
+ * @param {number} arg0
3109
+ */
3110
+ set note_padding(arg0) {
3111
+ wasm.__wbg_set_quakeymode_note_padding(this.__wbg_ptr, arg0);
3112
+ }
3113
+ /**
3114
+ * @returns {number}
3115
+ */
3116
+ get width_for_note_height_scale() {
3117
+ const ret = wasm.__wbg_get_quakeymode_width_for_note_height_scale(this.__wbg_ptr);
3118
+ return ret;
3119
+ }
3120
+ /**
3121
+ * @param {number} arg0
3122
+ */
3123
+ set width_for_note_height_scale(arg0) {
3124
+ wasm.__wbg_set_quakeymode_width_for_note_height_scale(this.__wbg_ptr, arg0);
3125
+ }
3126
+ /**
3127
+ * @returns {number}
3128
+ */
3129
+ get bg_mask_alpha() {
3130
+ const ret = wasm.__wbg_get_quakeymode_bg_mask_alpha(this.__wbg_ptr);
3131
+ return ret;
3132
+ }
3133
+ /**
3134
+ * @param {number} arg0
3135
+ */
3136
+ set bg_mask_alpha(arg0) {
3137
+ wasm.__wbg_set_quakeymode_bg_mask_alpha(this.__wbg_ptr, arg0);
3138
+ }
3139
+ /**
3140
+ * @returns {number}
3141
+ */
3142
+ get bg_mask_padding() {
3143
+ const ret = wasm.__wbg_get_quakeymode_bg_mask_padding(this.__wbg_ptr);
3144
+ return ret;
3145
+ }
3146
+ /**
3147
+ * @param {number} arg0
3148
+ */
3149
+ set bg_mask_padding(arg0) {
3150
+ wasm.__wbg_set_quakeymode_bg_mask_padding(this.__wbg_ptr, arg0);
3151
+ }
3152
+ /**
3153
+ * @returns {number}
3154
+ */
3155
+ get column_alignment() {
3156
+ const ret = wasm.__wbg_get_quakeymode_column_alignment(this.__wbg_ptr);
3157
+ return ret;
3158
+ }
3159
+ /**
3160
+ * @param {number} arg0
3161
+ */
3162
+ set column_alignment(arg0) {
3163
+ wasm.__wbg_set_quakeymode_column_alignment(this.__wbg_ptr, arg0);
3164
+ }
3165
+ /**
3166
+ * @returns {number}
3167
+ */
3168
+ get column_size() {
3169
+ const ret = wasm.__wbg_get_quakeymode_column_size(this.__wbg_ptr);
3170
+ return ret;
3171
+ }
3172
+ /**
3173
+ * @param {number} arg0
3174
+ */
3175
+ set column_size(arg0) {
3176
+ wasm.__wbg_set_quakeymode_column_size(this.__wbg_ptr, arg0);
3177
+ }
3178
+ /**
3179
+ * @returns {number}
3180
+ */
3181
+ get column_lighting_offset_y() {
3182
+ const ret = wasm.__wbg_get_quakeymode_column_lighting_offset_y(this.__wbg_ptr);
3183
+ return ret;
3184
+ }
3185
+ /**
3186
+ * @param {number} arg0
3187
+ */
3188
+ set column_lighting_offset_y(arg0) {
3189
+ wasm.__wbg_set_quakeymode_column_lighting_offset_y(this.__wbg_ptr, arg0);
3190
+ }
3191
+ /**
3192
+ * @returns {number}
3193
+ */
3194
+ get column_lighting_scale() {
3195
+ const ret = wasm.__wbg_get_quakeymode_column_lighting_scale(this.__wbg_ptr);
3196
+ return ret;
3197
+ }
3198
+ /**
3199
+ * @param {number} arg0
3200
+ */
3201
+ set column_lighting_scale(arg0) {
3202
+ wasm.__wbg_set_quakeymode_column_lighting_scale(this.__wbg_ptr, arg0);
3203
+ }
3204
+ /**
3205
+ * @returns {number}
3206
+ */
3207
+ get hit_pos_offset_y() {
3208
+ const ret = wasm.__wbg_get_quakeymode_hit_pos_offset_y(this.__wbg_ptr);
3209
+ return ret;
3210
+ }
3211
+ /**
3212
+ * @param {number} arg0
3213
+ */
3214
+ set hit_pos_offset_y(arg0) {
3215
+ wasm.__wbg_set_quakeymode_hit_pos_offset_y(this.__wbg_ptr, arg0);
3216
+ }
3217
+ /**
3218
+ * @returns {number}
3219
+ */
3220
+ get receptor_pos_offset_y() {
3221
+ const ret = wasm.__wbg_get_quakeymode_receptor_pos_offset_y(this.__wbg_ptr);
3222
+ return ret;
3223
+ }
3224
+ /**
3225
+ * @param {number} arg0
3226
+ */
3227
+ set receptor_pos_offset_y(arg0) {
3228
+ wasm.__wbg_set_quakeymode_receptor_pos_offset_y(this.__wbg_ptr, arg0);
3229
+ }
3230
+ /**
3231
+ * @returns {boolean}
3232
+ */
3233
+ get receptors_over_hit_objects() {
3234
+ const ret = wasm.__wbg_get_quakeymode_receptors_over_hit_objects(this.__wbg_ptr);
3235
+ return ret !== 0;
3236
+ }
3237
+ /**
3238
+ * @param {boolean} arg0
3239
+ */
3240
+ set receptors_over_hit_objects(arg0) {
3241
+ wasm.__wbg_set_quakeymode_receptors_over_hit_objects(this.__wbg_ptr, arg0);
3242
+ }
3243
+ /**
3244
+ * @returns {number}
3245
+ */
3246
+ get stage_receptor_padding() {
3247
+ const ret = wasm.__wbg_get_quakeymode_stage_receptor_padding(this.__wbg_ptr);
3248
+ return ret;
3249
+ }
3250
+ /**
3251
+ * @param {number} arg0
3252
+ */
3253
+ set stage_receptor_padding(arg0) {
3254
+ wasm.__wbg_set_quakeymode_stage_receptor_padding(this.__wbg_ptr, arg0);
3255
+ }
3256
+ /**
3257
+ * @returns {number}
3258
+ */
3259
+ get coop_playfield_padding() {
3260
+ const ret = wasm.__wbg_get_quakeymode_coop_playfield_padding(this.__wbg_ptr);
3261
+ return ret;
3262
+ }
3263
+ /**
3264
+ * @param {number} arg0
3265
+ */
3266
+ set coop_playfield_padding(arg0) {
3267
+ wasm.__wbg_set_quakeymode_coop_playfield_padding(this.__wbg_ptr, arg0);
3268
+ }
3269
+ /**
3270
+ * @returns {number}
3271
+ */
3272
+ get hit_error_chevron_size() {
3273
+ const ret = wasm.__wbg_get_quakeymode_hit_error_chevron_size(this.__wbg_ptr);
3274
+ return ret;
3275
+ }
3276
+ /**
3277
+ * @param {number} arg0
3278
+ */
3279
+ set hit_error_chevron_size(arg0) {
3280
+ wasm.__wbg_set_quakeymode_hit_error_chevron_size(this.__wbg_ptr, arg0);
3281
+ }
3282
+ /**
3283
+ * @returns {number}
3284
+ */
3285
+ get hit_error_height() {
3286
+ const ret = wasm.__wbg_get_quakeymode_hit_error_height(this.__wbg_ptr);
3287
+ return ret;
3288
+ }
3289
+ /**
3290
+ * @param {number} arg0
3291
+ */
3292
+ set hit_error_height(arg0) {
3293
+ wasm.__wbg_set_quakeymode_hit_error_height(this.__wbg_ptr, arg0);
3294
+ }
3295
+ /**
3296
+ * @returns {number}
3297
+ */
3298
+ get hit_error_pos_x() {
3299
+ const ret = wasm.__wbg_get_quakeymode_hit_error_pos_x(this.__wbg_ptr);
3300
+ return ret;
3301
+ }
3302
+ /**
3303
+ * @param {number} arg0
3304
+ */
3305
+ set hit_error_pos_x(arg0) {
3306
+ wasm.__wbg_set_quakeymode_hit_error_pos_x(this.__wbg_ptr, arg0);
3307
+ }
3308
+ /**
3309
+ * @returns {number}
3310
+ */
3311
+ get hit_error_pos_y() {
3312
+ const ret = wasm.__wbg_get_quakeymode_hit_error_pos_y(this.__wbg_ptr);
3313
+ return ret;
3314
+ }
3315
+ /**
3316
+ * @param {number} arg0
3317
+ */
3318
+ set hit_error_pos_y(arg0) {
3319
+ wasm.__wbg_set_quakeymode_hit_error_pos_y(this.__wbg_ptr, arg0);
3320
+ }
3321
+ /**
3322
+ * @returns {number}
3323
+ */
3324
+ get hit_error_alpha() {
3325
+ const ret = wasm.__wbg_get_quakeymode_hit_error_alpha(this.__wbg_ptr);
3326
+ return ret;
3327
+ }
3328
+ /**
3329
+ * @param {number} arg0
3330
+ */
3331
+ set hit_error_alpha(arg0) {
3332
+ wasm.__wbg_set_quakeymode_hit_error_alpha(this.__wbg_ptr, arg0);
3333
+ }
3334
+ /**
3335
+ * @returns {number}
3336
+ */
3337
+ get judgement_hit_burst_fps() {
3338
+ const ret = wasm.__wbg_get_quakeymode_judgement_hit_burst_fps(this.__wbg_ptr);
3339
+ return ret;
3340
+ }
3341
+ /**
3342
+ * @param {number} arg0
3343
+ */
3344
+ set judgement_hit_burst_fps(arg0) {
3345
+ wasm.__wbg_set_quakeymode_judgement_hit_burst_fps(this.__wbg_ptr, arg0);
3346
+ }
3347
+ /**
3348
+ * @returns {number}
3349
+ */
3350
+ get judgement_burst_pos_y() {
3351
+ const ret = wasm.__wbg_get_quakeymode_judgement_burst_pos_y(this.__wbg_ptr);
3352
+ return ret;
3353
+ }
3354
+ /**
3355
+ * @param {number} arg0
3356
+ */
3357
+ set judgement_burst_pos_y(arg0) {
3358
+ wasm.__wbg_set_quakeymode_judgement_burst_pos_y(this.__wbg_ptr, arg0);
3359
+ }
3360
+ /**
3361
+ * @returns {number}
3362
+ */
3363
+ get judgement_hit_burst_bump_y() {
3364
+ const ret = wasm.__wbg_get_quakeymode_judgement_hit_burst_bump_y(this.__wbg_ptr);
3365
+ return ret;
3366
+ }
3367
+ /**
3368
+ * @param {number} arg0
3369
+ */
3370
+ set judgement_hit_burst_bump_y(arg0) {
3371
+ wasm.__wbg_set_quakeymode_judgement_hit_burst_bump_y(this.__wbg_ptr, arg0);
3372
+ }
3373
+ /**
3374
+ * @returns {number}
3375
+ */
3376
+ get judgement_hit_burst_bump_time() {
3377
+ const ret = wasm.__wbg_get_quakeymode_judgement_hit_burst_bump_time(this.__wbg_ptr);
3378
+ return ret;
3379
+ }
3380
+ /**
3381
+ * @param {number} arg0
3382
+ */
3383
+ set judgement_hit_burst_bump_time(arg0) {
3384
+ wasm.__wbg_set_quakeymode_judgement_hit_burst_bump_time(this.__wbg_ptr, arg0);
3385
+ }
3386
+ /**
3387
+ * @returns {number}
3388
+ */
3389
+ get judgement_hit_burst_scale() {
3390
+ const ret = wasm.__wbg_get_quakeymode_judgement_hit_burst_scale(this.__wbg_ptr);
3391
+ return ret;
3392
+ }
3393
+ /**
3394
+ * @param {number} arg0
3395
+ */
3396
+ set judgement_hit_burst_scale(arg0) {
3397
+ wasm.__wbg_set_quakeymode_judgement_hit_burst_scale(this.__wbg_ptr, arg0);
3398
+ }
3399
+ /**
3400
+ * @returns {number}
3401
+ */
3402
+ get hit_lighting_x() {
3403
+ const ret = wasm.__wbg_get_quakeymode_hit_lighting_x(this.__wbg_ptr);
3404
+ return ret;
3405
+ }
3406
+ /**
3407
+ * @param {number} arg0
3408
+ */
3409
+ set hit_lighting_x(arg0) {
3410
+ wasm.__wbg_set_quakeymode_hit_lighting_x(this.__wbg_ptr, arg0);
3411
+ }
3412
+ /**
3413
+ * @returns {number}
3414
+ */
3415
+ get hit_lighting_y() {
3416
+ const ret = wasm.__wbg_get_quakeymode_hit_lighting_y(this.__wbg_ptr);
3417
+ return ret;
3418
+ }
3419
+ /**
3420
+ * @param {number} arg0
3421
+ */
3422
+ set hit_lighting_y(arg0) {
3423
+ wasm.__wbg_set_quakeymode_hit_lighting_y(this.__wbg_ptr, arg0);
3424
+ }
3425
+ /**
3426
+ * @returns {number}
3427
+ */
3428
+ get hit_lighting_fps() {
3429
+ const ret = wasm.__wbg_get_quakeymode_hit_lighting_fps(this.__wbg_ptr);
3430
+ return ret;
3431
+ }
3432
+ /**
3433
+ * @param {number} arg0
3434
+ */
3435
+ set hit_lighting_fps(arg0) {
3436
+ wasm.__wbg_set_quakeymode_hit_lighting_fps(this.__wbg_ptr, arg0);
3437
+ }
3438
+ /**
3439
+ * @returns {number}
3440
+ */
3441
+ get hit_lighting_scale() {
3442
+ const ret = wasm.__wbg_get_quakeymode_hit_lighting_scale(this.__wbg_ptr);
3443
+ return ret;
3444
+ }
3445
+ /**
3446
+ * @param {number} arg0
3447
+ */
3448
+ set hit_lighting_scale(arg0) {
3449
+ wasm.__wbg_set_quakeymode_hit_lighting_scale(this.__wbg_ptr, arg0);
3450
+ }
3451
+ /**
3452
+ * @returns {boolean}
3453
+ */
3454
+ get hit_lighting_column_rotation() {
3455
+ const ret = wasm.__wbg_get_quakeymode_hit_lighting_column_rotation(this.__wbg_ptr);
3456
+ return ret !== 0;
3457
+ }
3458
+ /**
3459
+ * @param {boolean} arg0
3460
+ */
3461
+ set hit_lighting_column_rotation(arg0) {
3462
+ wasm.__wbg_set_quakeymode_hit_lighting_column_rotation(this.__wbg_ptr, arg0);
3463
+ }
3464
+ /**
3465
+ * @returns {number}
3466
+ */
3467
+ get hold_lighting_fps() {
3468
+ const ret = wasm.__wbg_get_quakeymode_hold_lighting_fps(this.__wbg_ptr);
3469
+ return ret;
3470
+ }
3471
+ /**
3472
+ * @param {number} arg0
3473
+ */
3474
+ set hold_lighting_fps(arg0) {
3475
+ wasm.__wbg_set_quakeymode_hold_lighting_fps(this.__wbg_ptr, arg0);
3476
+ }
3477
+ /**
3478
+ * @returns {number}
3479
+ */
3480
+ get hold_lighting_scale() {
3481
+ const ret = wasm.__wbg_get_quakeymode_hold_lighting_scale(this.__wbg_ptr);
3482
+ return ret;
3483
+ }
3484
+ /**
3485
+ * @param {number} arg0
3486
+ */
3487
+ set hold_lighting_scale(arg0) {
3488
+ wasm.__wbg_set_quakeymode_hold_lighting_scale(this.__wbg_ptr, arg0);
3489
+ }
3490
+ /**
3491
+ * @returns {boolean}
3492
+ */
3493
+ get hold_lighting_column_rotation() {
3494
+ const ret = wasm.__wbg_get_quakeymode_hold_lighting_column_rotation(this.__wbg_ptr);
3495
+ return ret !== 0;
3496
+ }
3497
+ /**
3498
+ * @param {boolean} arg0
3499
+ */
3500
+ set hold_lighting_column_rotation(arg0) {
3501
+ wasm.__wbg_set_quakeymode_hold_lighting_column_rotation(this.__wbg_ptr, arg0);
3502
+ }
3503
+ /**
3504
+ * @returns {HealthBarKeysAlignment}
3505
+ */
3506
+ get health_bar_keys_alignment() {
3507
+ const ret = wasm.__wbg_get_quakeymode_health_bar_keys_alignment(this.__wbg_ptr);
3508
+ return ret;
3509
+ }
3510
+ /**
3511
+ * @param {HealthBarKeysAlignment} arg0
3512
+ */
3513
+ set health_bar_keys_alignment(arg0) {
3514
+ wasm.__wbg_set_quakeymode_health_bar_keys_alignment(this.__wbg_ptr, arg0);
3515
+ }
3516
+ /**
3517
+ * @returns {HealthBarType}
3518
+ */
3519
+ get health_bar_type() {
3520
+ const ret = wasm.__wbg_get_quakeymode_health_bar_type(this.__wbg_ptr);
3521
+ return ret;
3522
+ }
3523
+ /**
3524
+ * @param {HealthBarType} arg0
3525
+ */
3526
+ set health_bar_type(arg0) {
3527
+ wasm.__wbg_set_quakeymode_health_bar_type(this.__wbg_ptr, arg0);
3528
+ }
3529
+ /**
3530
+ * @returns {number}
3531
+ */
3532
+ get health_bar_pos_offset_x() {
3533
+ const ret = wasm.__wbg_get_quakeymode_health_bar_pos_offset_x(this.__wbg_ptr);
3534
+ return ret;
3535
+ }
3536
+ /**
3537
+ * @param {number} arg0
3538
+ */
3539
+ set health_bar_pos_offset_x(arg0) {
3540
+ wasm.__wbg_set_quakeymode_health_bar_pos_offset_x(this.__wbg_ptr, arg0);
3541
+ }
3542
+ /**
3543
+ * @returns {number}
3544
+ */
3545
+ get health_bar_pos_offset_y() {
3546
+ const ret = wasm.__wbg_get_quakeymode_health_bar_pos_offset_y(this.__wbg_ptr);
3547
+ return ret;
3548
+ }
3549
+ /**
3550
+ * @param {number} arg0
3551
+ */
3552
+ set health_bar_pos_offset_y(arg0) {
3553
+ wasm.__wbg_set_quakeymode_health_bar_pos_offset_y(this.__wbg_ptr, arg0);
3554
+ }
3555
+ /**
3556
+ * @returns {number}
3557
+ */
3558
+ get health_bar_scale() {
3559
+ const ret = wasm.__wbg_get_quakeymode_health_bar_scale(this.__wbg_ptr);
3560
+ return ret;
3561
+ }
3562
+ /**
3563
+ * @param {number} arg0
3564
+ */
3565
+ set health_bar_scale(arg0) {
3566
+ wasm.__wbg_set_quakeymode_health_bar_scale(this.__wbg_ptr, arg0);
3567
+ }
3568
+ /**
3569
+ * @returns {HitBubblesAlignment}
3570
+ */
3571
+ get hit_bubbles_alignment() {
3572
+ const ret = wasm.__wbg_get_quakeymode_hit_bubbles_alignment(this.__wbg_ptr);
3573
+ return ret;
3574
+ }
3575
+ /**
3576
+ * @param {HitBubblesAlignment} arg0
3577
+ */
3578
+ set hit_bubbles_alignment(arg0) {
3579
+ wasm.__wbg_set_quakeymode_hit_bubbles_alignment(this.__wbg_ptr, arg0);
3580
+ }
3581
+ /**
3582
+ * @returns {HitBubblesType}
3583
+ */
3584
+ get hit_bubbles_type() {
3585
+ const ret = wasm.__wbg_get_quakeymode_hit_bubbles_type(this.__wbg_ptr);
3586
+ return ret;
3587
+ }
3588
+ /**
3589
+ * @param {HitBubblesType} arg0
3590
+ */
3591
+ set hit_bubbles_type(arg0) {
3592
+ wasm.__wbg_set_quakeymode_hit_bubbles_type(this.__wbg_ptr, arg0);
3593
+ }
3594
+ /**
3595
+ * @returns {number}
3596
+ */
3597
+ get hit_bubbles_pos_x() {
3598
+ const ret = wasm.__wbg_get_quakeymode_hit_bubbles_pos_x(this.__wbg_ptr);
3599
+ return ret;
3600
+ }
3601
+ /**
3602
+ * @param {number} arg0
3603
+ */
3604
+ set hit_bubbles_pos_x(arg0) {
3605
+ wasm.__wbg_set_quakeymode_hit_bubbles_pos_x(this.__wbg_ptr, arg0);
3606
+ }
3607
+ /**
3608
+ * @returns {number}
3609
+ */
3610
+ get hit_bubbles_pos_y() {
3611
+ const ret = wasm.__wbg_get_quakeymode_hit_bubbles_pos_y(this.__wbg_ptr);
3612
+ return ret;
3613
+ }
3614
+ /**
3615
+ * @param {number} arg0
3616
+ */
3617
+ set hit_bubbles_pos_y(arg0) {
3618
+ wasm.__wbg_set_quakeymode_hit_bubbles_pos_y(this.__wbg_ptr, arg0);
3619
+ }
3620
+ /**
3621
+ * @returns {number}
3622
+ */
3623
+ get hit_bubbles_scale() {
3624
+ const ret = wasm.__wbg_get_quakeymode_hit_bubbles_scale(this.__wbg_ptr);
3625
+ return ret;
3626
+ }
3627
+ /**
3628
+ * @param {number} arg0
3629
+ */
3630
+ set hit_bubbles_scale(arg0) {
3631
+ wasm.__wbg_set_quakeymode_hit_bubbles_scale(this.__wbg_ptr, arg0);
3632
+ }
3633
+ /**
3634
+ * @returns {number}
3635
+ */
3636
+ get hit_bubble_scale() {
3637
+ const ret = wasm.__wbg_get_quakeymode_hit_bubble_scale(this.__wbg_ptr);
3638
+ return ret;
3639
+ }
3640
+ /**
3641
+ * @param {number} arg0
3642
+ */
3643
+ set hit_bubble_scale(arg0) {
3644
+ wasm.__wbg_set_quakeymode_hit_bubble_scale(this.__wbg_ptr, arg0);
3645
+ }
3646
+ /**
3647
+ * @returns {number}
3648
+ */
3649
+ get hit_bubble_border_padding() {
3650
+ const ret = wasm.__wbg_get_quakeymode_hit_bubble_border_padding(this.__wbg_ptr);
3651
+ return ret;
3652
+ }
3653
+ /**
3654
+ * @param {number} arg0
3655
+ */
3656
+ set hit_bubble_border_padding(arg0) {
3657
+ wasm.__wbg_set_quakeymode_hit_bubble_border_padding(this.__wbg_ptr, arg0);
3658
+ }
3659
+ /**
3660
+ * @returns {number}
3661
+ */
3662
+ get hit_bubble_padding() {
3663
+ const ret = wasm.__wbg_get_quakeymode_hit_bubble_padding(this.__wbg_ptr);
3664
+ return ret;
3665
+ }
3666
+ /**
3667
+ * @param {number} arg0
3668
+ */
3669
+ set hit_bubble_padding(arg0) {
3670
+ wasm.__wbg_set_quakeymode_hit_bubble_padding(this.__wbg_ptr, arg0);
3671
+ }
3672
+ /**
3673
+ * @returns {number}
3674
+ */
3675
+ get combo_display_scale() {
3676
+ const ret = wasm.__wbg_get_quakeymode_combo_display_scale(this.__wbg_ptr);
3677
+ return ret;
3678
+ }
3679
+ /**
3680
+ * @param {number} arg0
3681
+ */
3682
+ set combo_display_scale(arg0) {
3683
+ wasm.__wbg_set_quakeymode_combo_display_scale(this.__wbg_ptr, arg0);
3684
+ }
3685
+ /**
3686
+ * @returns {number}
3687
+ */
3688
+ get combo_pos_x() {
3689
+ const ret = wasm.__wbg_get_quakeymode_combo_pos_x(this.__wbg_ptr);
3690
+ return ret;
3691
+ }
3692
+ /**
3693
+ * @param {number} arg0
3694
+ */
3695
+ set combo_pos_x(arg0) {
3696
+ wasm.__wbg_set_quakeymode_combo_pos_x(this.__wbg_ptr, arg0);
3697
+ }
3698
+ /**
3699
+ * @returns {number}
3700
+ */
3701
+ get combo_pos_y() {
3702
+ const ret = wasm.__wbg_get_quakeymode_combo_pos_y(this.__wbg_ptr);
3703
+ return ret;
3704
+ }
3705
+ /**
3706
+ * @param {number} arg0
3707
+ */
3708
+ set combo_pos_y(arg0) {
3709
+ wasm.__wbg_set_quakeymode_combo_pos_y(this.__wbg_ptr, arg0);
3710
+ }
3711
+ /**
3712
+ * @returns {number}
3713
+ */
3714
+ get combo_display_bump_y() {
3715
+ const ret = wasm.__wbg_get_quakeymode_combo_display_bump_y(this.__wbg_ptr);
3716
+ return ret;
3717
+ }
3718
+ /**
3719
+ * @param {number} arg0
3720
+ */
3721
+ set combo_display_bump_y(arg0) {
3722
+ wasm.__wbg_set_quakeymode_combo_display_bump_y(this.__wbg_ptr, arg0);
3723
+ }
3724
+ /**
3725
+ * @returns {number}
3726
+ */
3727
+ get combo_display_bump_time() {
3728
+ const ret = wasm.__wbg_get_quakeymode_combo_display_bump_time(this.__wbg_ptr);
3729
+ return ret;
3730
+ }
3731
+ /**
3732
+ * @param {number} arg0
3733
+ */
3734
+ set combo_display_bump_time(arg0) {
3735
+ wasm.__wbg_set_quakeymode_combo_display_bump_time(this.__wbg_ptr, arg0);
3736
+ }
3737
+ /**
3738
+ * @returns {number}
3739
+ */
3740
+ get rating_display_scale() {
3741
+ const ret = wasm.__wbg_get_quakeymode_rating_display_scale(this.__wbg_ptr);
3742
+ return ret;
3743
+ }
3744
+ /**
3745
+ * @param {number} arg0
3746
+ */
3747
+ set rating_display_scale(arg0) {
3748
+ wasm.__wbg_set_quakeymode_rating_display_scale(this.__wbg_ptr, arg0);
3749
+ }
3750
+ /**
3751
+ * @returns {number}
3752
+ */
3753
+ get rating_display_pos_x() {
3754
+ const ret = wasm.__wbg_get_quakeymode_rating_display_pos_x(this.__wbg_ptr);
3755
+ return ret;
3756
+ }
3757
+ /**
3758
+ * @param {number} arg0
3759
+ */
3760
+ set rating_display_pos_x(arg0) {
3761
+ wasm.__wbg_set_quakeymode_rating_display_pos_x(this.__wbg_ptr, arg0);
3762
+ }
3763
+ /**
3764
+ * @returns {number}
3765
+ */
3766
+ get rating_display_pos_y() {
3767
+ const ret = wasm.__wbg_get_quakeymode_rating_display_pos_y(this.__wbg_ptr);
3768
+ return ret;
3769
+ }
3770
+ /**
3771
+ * @param {number} arg0
3772
+ */
3773
+ set rating_display_pos_y(arg0) {
3774
+ wasm.__wbg_set_quakeymode_rating_display_pos_y(this.__wbg_ptr, arg0);
3775
+ }
3776
+ /**
3777
+ * @returns {number}
3778
+ */
3779
+ get accuracy_display_scale() {
3780
+ const ret = wasm.__wbg_get_quakeymode_accuracy_display_scale(this.__wbg_ptr);
3781
+ return ret;
3782
+ }
3783
+ /**
3784
+ * @param {number} arg0
3785
+ */
3786
+ set accuracy_display_scale(arg0) {
3787
+ wasm.__wbg_set_quakeymode_accuracy_display_scale(this.__wbg_ptr, arg0);
3788
+ }
3789
+ /**
3790
+ * @returns {number}
3791
+ */
3792
+ get accuracy_display_pos_x() {
3793
+ const ret = wasm.__wbg_get_quakeymode_accuracy_display_pos_x(this.__wbg_ptr);
3794
+ return ret;
3795
+ }
3796
+ /**
3797
+ * @param {number} arg0
3798
+ */
3799
+ set accuracy_display_pos_x(arg0) {
3800
+ wasm.__wbg_set_quakeymode_accuracy_display_pos_x(this.__wbg_ptr, arg0);
3801
+ }
3802
+ /**
3803
+ * @returns {number}
3804
+ */
3805
+ get accuracy_display_pos_y() {
3806
+ const ret = wasm.__wbg_get_quakeymode_accuracy_display_pos_y(this.__wbg_ptr);
3807
+ return ret;
3808
+ }
3809
+ /**
3810
+ * @param {number} arg0
3811
+ */
3812
+ set accuracy_display_pos_y(arg0) {
3813
+ wasm.__wbg_set_quakeymode_accuracy_display_pos_y(this.__wbg_ptr, arg0);
3814
+ }
3815
+ /**
3816
+ * @returns {number}
3817
+ */
3818
+ get kps_display_scale() {
3819
+ const ret = wasm.__wbg_get_quakeymode_kps_display_scale(this.__wbg_ptr);
3820
+ return ret;
3821
+ }
3822
+ /**
3823
+ * @param {number} arg0
3824
+ */
3825
+ set kps_display_scale(arg0) {
3826
+ wasm.__wbg_set_quakeymode_kps_display_scale(this.__wbg_ptr, arg0);
3827
+ }
3828
+ /**
3829
+ * @returns {number}
3830
+ */
3831
+ get kps_display_pos_x() {
3832
+ const ret = wasm.__wbg_get_quakeymode_kps_display_pos_x(this.__wbg_ptr);
3833
+ return ret;
3834
+ }
3835
+ /**
3836
+ * @param {number} arg0
3837
+ */
3838
+ set kps_display_pos_x(arg0) {
3839
+ wasm.__wbg_set_quakeymode_kps_display_pos_x(this.__wbg_ptr, arg0);
3840
+ }
3841
+ /**
3842
+ * @returns {number}
3843
+ */
3844
+ get kps_display_pos_y() {
3845
+ const ret = wasm.__wbg_get_quakeymode_kps_display_pos_y(this.__wbg_ptr);
3846
+ return ret;
3847
+ }
3848
+ /**
3849
+ * @param {number} arg0
3850
+ */
3851
+ set kps_display_pos_y(arg0) {
3852
+ wasm.__wbg_set_quakeymode_kps_display_pos_y(this.__wbg_ptr, arg0);
3853
+ }
3854
+ /**
3855
+ * @returns {number}
3856
+ */
3857
+ get score_display_scale() {
3858
+ const ret = wasm.__wbg_get_quakeymode_score_display_scale(this.__wbg_ptr);
3859
+ return ret;
3860
+ }
3861
+ /**
3862
+ * @param {number} arg0
3863
+ */
3864
+ set score_display_scale(arg0) {
3865
+ wasm.__wbg_set_quakeymode_score_display_scale(this.__wbg_ptr, arg0);
3866
+ }
3867
+ /**
3868
+ * @returns {number}
3869
+ */
3870
+ get score_display_pos_x() {
3871
+ const ret = wasm.__wbg_get_quakeymode_score_display_pos_x(this.__wbg_ptr);
3872
+ return ret;
3873
+ }
3874
+ /**
3875
+ * @param {number} arg0
3876
+ */
3877
+ set score_display_pos_x(arg0) {
3878
+ wasm.__wbg_set_quakeymode_score_display_pos_x(this.__wbg_ptr, arg0);
3879
+ }
3880
+ /**
3881
+ * @returns {number}
3882
+ */
3883
+ get score_display_pos_y() {
3884
+ const ret = wasm.__wbg_get_quakeymode_score_display_pos_y(this.__wbg_ptr);
3885
+ return ret;
3886
+ }
3887
+ /**
3888
+ * @param {number} arg0
3889
+ */
3890
+ set score_display_pos_y(arg0) {
3891
+ wasm.__wbg_set_quakeymode_score_display_pos_y(this.__wbg_ptr, arg0);
3892
+ }
3893
+ /**
3894
+ * @returns {number}
3895
+ */
3896
+ get battle_royale_alert_pos_x() {
3897
+ const ret = wasm.__wbg_get_quakeymode_battle_royale_alert_pos_x(this.__wbg_ptr);
3898
+ return ret;
3899
+ }
3900
+ /**
3901
+ * @param {number} arg0
3902
+ */
3903
+ set battle_royale_alert_pos_x(arg0) {
3904
+ wasm.__wbg_set_quakeymode_battle_royale_alert_pos_x(this.__wbg_ptr, arg0);
3905
+ }
3906
+ /**
3907
+ * @returns {number}
3908
+ */
3909
+ get battle_royale_alert_pos_y() {
3910
+ const ret = wasm.__wbg_get_quakeymode_battle_royale_alert_pos_y(this.__wbg_ptr);
3911
+ return ret;
3912
+ }
3913
+ /**
3914
+ * @param {number} arg0
3915
+ */
3916
+ set battle_royale_alert_pos_y(arg0) {
3917
+ wasm.__wbg_set_quakeymode_battle_royale_alert_pos_y(this.__wbg_ptr, arg0);
3918
+ }
3919
+ /**
3920
+ * @returns {number}
3921
+ */
3922
+ get battle_royale_alert_scale() {
3923
+ const ret = wasm.__wbg_get_quakeymode_battle_royale_alert_scale(this.__wbg_ptr);
3924
+ return ret;
3925
+ }
3926
+ /**
3927
+ * @param {number} arg0
3928
+ */
3929
+ set battle_royale_alert_scale(arg0) {
3930
+ wasm.__wbg_set_quakeymode_battle_royale_alert_scale(this.__wbg_ptr, arg0);
3931
+ }
3932
+ /**
3933
+ * @returns {number}
3934
+ */
3935
+ get battle_royale_eliminated_pos_x() {
3936
+ const ret = wasm.__wbg_get_quakeymode_battle_royale_eliminated_pos_x(this.__wbg_ptr);
3937
+ return ret;
3938
+ }
3939
+ /**
3940
+ * @param {number} arg0
3941
+ */
3942
+ set battle_royale_eliminated_pos_x(arg0) {
3943
+ wasm.__wbg_set_quakeymode_battle_royale_eliminated_pos_x(this.__wbg_ptr, arg0);
3944
+ }
3945
+ /**
3946
+ * @returns {number}
3947
+ */
3948
+ get battle_royale_eliminated_pos_y() {
3949
+ const ret = wasm.__wbg_get_quakeymode_battle_royale_eliminated_pos_y(this.__wbg_ptr);
3950
+ return ret;
3951
+ }
3952
+ /**
3953
+ * @param {number} arg0
3954
+ */
3955
+ set battle_royale_eliminated_pos_y(arg0) {
3956
+ wasm.__wbg_set_quakeymode_battle_royale_eliminated_pos_y(this.__wbg_ptr, arg0);
3957
+ }
3958
+ /**
3959
+ * @returns {number}
3960
+ */
3961
+ get judgement_counter_alpha() {
3962
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_alpha(this.__wbg_ptr);
3963
+ return ret;
3964
+ }
3965
+ /**
3966
+ * @param {number} arg0
3967
+ */
3968
+ set judgement_counter_alpha(arg0) {
3969
+ wasm.__wbg_set_quakeymode_judgement_counter_alpha(this.__wbg_ptr, arg0);
3970
+ }
3971
+ /**
3972
+ * @returns {number}
3973
+ */
3974
+ get judgement_counter_size() {
3975
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_size(this.__wbg_ptr);
3976
+ return ret;
3977
+ }
3978
+ /**
3979
+ * @param {number} arg0
3980
+ */
3981
+ set judgement_counter_size(arg0) {
3982
+ wasm.__wbg_set_quakeymode_judgement_counter_size(this.__wbg_ptr, arg0);
3983
+ }
3984
+ /**
3985
+ * @returns {number}
3986
+ */
3987
+ get judgement_counter_pos_x() {
3988
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_pos_x(this.__wbg_ptr);
3989
+ return ret;
3990
+ }
3991
+ /**
3992
+ * @param {number} arg0
3993
+ */
3994
+ set judgement_counter_pos_x(arg0) {
3995
+ wasm.__wbg_set_quakeymode_judgement_counter_pos_x(this.__wbg_ptr, arg0);
3996
+ }
3997
+ /**
3998
+ * @returns {number}
3999
+ */
4000
+ get judgement_counter_pos_y() {
4001
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_pos_y(this.__wbg_ptr);
4002
+ return ret;
4003
+ }
4004
+ /**
4005
+ * @param {number} arg0
4006
+ */
4007
+ set judgement_counter_pos_y(arg0) {
4008
+ wasm.__wbg_set_quakeymode_judgement_counter_pos_y(this.__wbg_ptr, arg0);
4009
+ }
4010
+ /**
4011
+ * @returns {number}
4012
+ */
4013
+ get judgement_counter_padding() {
4014
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_padding(this.__wbg_ptr);
4015
+ return ret;
4016
+ }
4017
+ /**
4018
+ * @param {number} arg0
4019
+ */
4020
+ set judgement_counter_padding(arg0) {
4021
+ wasm.__wbg_set_quakeymode_judgement_counter_padding(this.__wbg_ptr, arg0);
4022
+ }
4023
+ /**
4024
+ * @returns {boolean}
4025
+ */
4026
+ get judgement_counter_horizontal() {
4027
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_horizontal(this.__wbg_ptr);
4028
+ return ret !== 0;
4029
+ }
4030
+ /**
4031
+ * @param {boolean} arg0
4032
+ */
4033
+ set judgement_counter_horizontal(arg0) {
4034
+ wasm.__wbg_set_quakeymode_judgement_counter_horizontal(this.__wbg_ptr, arg0);
4035
+ }
4036
+ /**
4037
+ * @returns {boolean}
4038
+ */
4039
+ get judgement_counter_fade_to_alpha() {
4040
+ const ret = wasm.__wbg_get_quakeymode_judgement_counter_fade_to_alpha(this.__wbg_ptr);
4041
+ return ret !== 0;
4042
+ }
4043
+ /**
4044
+ * @param {boolean} arg0
4045
+ */
4046
+ set judgement_counter_fade_to_alpha(arg0) {
4047
+ wasm.__wbg_set_quakeymode_judgement_counter_fade_to_alpha(this.__wbg_ptr, arg0);
4048
+ }
4049
+ /**
4050
+ * @returns {boolean}
4051
+ */
4052
+ get use_judgement_color_for_numbers() {
4053
+ const ret = wasm.__wbg_get_quakeymode_use_judgement_color_for_numbers(this.__wbg_ptr);
4054
+ return ret !== 0;
4055
+ }
4056
+ /**
4057
+ * @param {boolean} arg0
4058
+ */
4059
+ set use_judgement_color_for_numbers(arg0) {
4060
+ wasm.__wbg_set_quakeymode_use_judgement_color_for_numbers(this.__wbg_ptr, arg0);
4061
+ }
4062
+ /**
4063
+ * @returns {number}
4064
+ */
4065
+ get song_time_progress_scale() {
4066
+ const ret = wasm.__wbg_get_quakeymode_song_time_progress_scale(this.__wbg_ptr);
4067
+ return ret;
4068
+ }
4069
+ /**
4070
+ * @param {number} arg0
4071
+ */
4072
+ set song_time_progress_scale(arg0) {
4073
+ wasm.__wbg_set_quakeymode_song_time_progress_scale(this.__wbg_ptr, arg0);
4074
+ }
4075
+ /**
4076
+ * @returns {boolean}
4077
+ */
4078
+ get song_time_progress_position_at_top() {
4079
+ const ret = wasm.__wbg_get_quakeymode_song_time_progress_position_at_top(this.__wbg_ptr);
4080
+ return ret !== 0;
4081
+ }
4082
+ /**
4083
+ * @param {boolean} arg0
4084
+ */
4085
+ set song_time_progress_position_at_top(arg0) {
4086
+ wasm.__wbg_set_quakeymode_song_time_progress_position_at_top(this.__wbg_ptr, arg0);
4087
+ }
4088
+ /**
4089
+ * @returns {boolean}
4090
+ */
4091
+ get show_mini_song_bar() {
4092
+ const ret = wasm.__wbg_get_quakeymode_show_mini_song_bar(this.__wbg_ptr);
4093
+ return ret !== 0;
4094
+ }
4095
+ /**
4096
+ * @param {boolean} arg0
4097
+ */
4098
+ set show_mini_song_bar(arg0) {
4099
+ wasm.__wbg_set_quakeymode_show_mini_song_bar(this.__wbg_ptr, arg0);
4100
+ }
4101
+ /**
4102
+ * @returns {number}
4103
+ */
4104
+ get mini_song_bar_display_pos_x() {
4105
+ const ret = wasm.__wbg_get_quakeymode_mini_song_bar_display_pos_x(this.__wbg_ptr);
4106
+ return ret;
4107
+ }
4108
+ /**
4109
+ * @param {number} arg0
4110
+ */
4111
+ set mini_song_bar_display_pos_x(arg0) {
4112
+ wasm.__wbg_set_quakeymode_mini_song_bar_display_pos_x(this.__wbg_ptr, arg0);
4113
+ }
4114
+ /**
4115
+ * @returns {number}
4116
+ */
4117
+ get mini_song_bar_display_pos_y() {
4118
+ const ret = wasm.__wbg_get_quakeymode_mini_song_bar_display_pos_y(this.__wbg_ptr);
4119
+ return ret;
4120
+ }
4121
+ /**
4122
+ * @param {number} arg0
4123
+ */
4124
+ set mini_song_bar_display_pos_y(arg0) {
4125
+ wasm.__wbg_set_quakeymode_mini_song_bar_display_pos_y(this.__wbg_ptr, arg0);
4126
+ }
4127
+ /**
4128
+ * @returns {number}
4129
+ */
4130
+ get mini_song_bar_display_width_factor() {
4131
+ const ret = wasm.__wbg_get_quakeymode_mini_song_bar_display_width_factor(this.__wbg_ptr);
4132
+ return ret;
4133
+ }
4134
+ /**
4135
+ * @param {number} arg0
4136
+ */
4137
+ set mini_song_bar_display_width_factor(arg0) {
4138
+ wasm.__wbg_set_quakeymode_mini_song_bar_display_width_factor(this.__wbg_ptr, arg0);
4139
+ }
4140
+ /**
4141
+ * @returns {number}
4142
+ */
4143
+ get mini_song_bar_display_height() {
4144
+ const ret = wasm.__wbg_get_quakeymode_mini_song_bar_display_height(this.__wbg_ptr);
4145
+ return ret;
4146
+ }
4147
+ /**
4148
+ * @param {number} arg0
4149
+ */
4150
+ set mini_song_bar_display_height(arg0) {
4151
+ wasm.__wbg_set_quakeymode_mini_song_bar_display_height(this.__wbg_ptr, arg0);
4152
+ }
4153
+ /**
4154
+ * @returns {boolean}
4155
+ */
4156
+ get use_fallback() {
4157
+ const ret = wasm.__wbg_get_quakeymode_use_fallback(this.__wbg_ptr);
4158
+ return ret !== 0;
4159
+ }
4160
+ /**
4161
+ * @param {boolean} arg0
4162
+ */
4163
+ set use_fallback(arg0) {
4164
+ wasm.__wbg_set_quakeymode_use_fallback(this.__wbg_ptr, arg0);
4165
+ }
4166
+ /**
4167
+ * @returns {string}
4168
+ */
4169
+ toStr() {
4170
+ let deferred1_0;
4171
+ let deferred1_1;
4172
+ try {
4173
+ const ret = wasm.quakeymode_toStr(this.__wbg_ptr);
4174
+ deferred1_0 = ret[0];
4175
+ deferred1_1 = ret[1];
4176
+ return getStringFromWasm0(ret[0], ret[1]);
4177
+ } finally {
4178
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4179
+ }
4180
+ }
4181
+ /**
4182
+ * @param {string} content
4183
+ * @returns {QuaKeymode}
4184
+ */
4185
+ static fromStr(content) {
4186
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4187
+ const len0 = WASM_VECTOR_LEN;
4188
+ const ret = wasm.quakeymode_fromStr(ptr0, len0);
4189
+ if (ret[2]) {
4190
+ throw takeFromExternrefTable0(ret[1]);
4191
+ }
4192
+ return QuaKeymode.__wrap(ret[0]);
4193
+ }
4194
+ }
4195
+ if (Symbol.dispose) QuaKeymode.prototype[Symbol.dispose] = QuaKeymode.prototype.free;
4196
+ exports.QuaKeymode = QuaKeymode;
4197
+
4198
+ class QuaSkin {
4199
+ static __wrap(ptr) {
4200
+ ptr = ptr >>> 0;
4201
+ const obj = Object.create(QuaSkin.prototype);
4202
+ obj.__wbg_ptr = ptr;
4203
+ QuaSkinFinalization.register(obj, obj.__wbg_ptr, obj);
4204
+ return obj;
4205
+ }
4206
+ __destroy_into_raw() {
4207
+ const ptr = this.__wbg_ptr;
4208
+ this.__wbg_ptr = 0;
4209
+ QuaSkinFinalization.unregister(this);
4210
+ return ptr;
4211
+ }
4212
+ free() {
4213
+ const ptr = this.__destroy_into_raw();
4214
+ wasm.__wbg_quaskin_free(ptr, 0);
4215
+ }
4216
+ /**
4217
+ * @returns {QuaSkinIni}
4218
+ */
4219
+ get skin_ini() {
4220
+ const ret = wasm.__wbg_get_quaskin_skin_ini(this.__wbg_ptr);
4221
+ return QuaSkinIni.__wrap(ret);
4222
+ }
4223
+ /**
4224
+ * @param {QuaSkinIni} arg0
4225
+ */
4226
+ set skin_ini(arg0) {
4227
+ _assertClass(arg0, QuaSkinIni);
4228
+ var ptr0 = arg0.__destroy_into_raw();
4229
+ wasm.__wbg_set_quaskin_skin_ini(this.__wbg_ptr, ptr0);
4230
+ }
4231
+ /**
4232
+ * @returns {TextureStore}
4233
+ */
4234
+ get textures() {
4235
+ const ret = wasm.__wbg_get_genericmaniaskin_textures(this.__wbg_ptr);
4236
+ return TextureStore.__wrap(ret);
4237
+ }
4238
+ /**
4239
+ * @param {TextureStore} arg0
4240
+ */
4241
+ set textures(arg0) {
4242
+ _assertClass(arg0, TextureStore);
4243
+ var ptr0 = arg0.__destroy_into_raw();
4244
+ wasm.__wbg_set_genericmaniaskin_textures(this.__wbg_ptr, ptr0);
4245
+ }
4246
+ /**
4247
+ * @returns {BinaryStore}
4248
+ */
4249
+ get samples() {
4250
+ const ret = wasm.__wbg_get_genericmaniaskin_samples(this.__wbg_ptr);
4251
+ return BinaryStore.__wrap(ret);
4252
+ }
4253
+ /**
4254
+ * @param {BinaryStore} arg0
4255
+ */
4256
+ set samples(arg0) {
4257
+ _assertClass(arg0, BinaryStore);
4258
+ var ptr0 = arg0.__destroy_into_raw();
4259
+ wasm.__wbg_set_genericmaniaskin_samples(this.__wbg_ptr, ptr0);
4260
+ }
4261
+ /**
4262
+ * @param {QuaSkinIni} skin_ini
4263
+ * @param {TextureStore | null} [textures]
4264
+ * @param {BinaryStore | null} [samples]
4265
+ */
4266
+ constructor(skin_ini, textures, samples) {
4267
+ _assertClass(skin_ini, QuaSkinIni);
4268
+ var ptr0 = skin_ini.__destroy_into_raw();
4269
+ let ptr1 = 0;
4270
+ if (!isLikeNone(textures)) {
4271
+ _assertClass(textures, TextureStore);
4272
+ ptr1 = textures.__destroy_into_raw();
4273
+ }
4274
+ let ptr2 = 0;
4275
+ if (!isLikeNone(samples)) {
4276
+ _assertClass(samples, BinaryStore);
4277
+ ptr2 = samples.__destroy_into_raw();
4278
+ }
4279
+ const ret = wasm.quaskin_new(ptr0, ptr1, ptr2);
4280
+ this.__wbg_ptr = ret >>> 0;
4281
+ QuaSkinFinalization.register(this, this.__wbg_ptr, this);
4282
+ return this;
4283
+ }
4284
+ /**
4285
+ * @param {number} keymode
4286
+ * @returns {QuaKeymode | undefined}
4287
+ */
4288
+ getKeymode(keymode) {
4289
+ const ret = wasm.quaskin_getKeymode(this.__wbg_ptr, keymode);
4290
+ return ret === 0 ? undefined : QuaKeymode.__wrap(ret);
4291
+ }
4292
+ /**
4293
+ * @returns {GenericManiaSkin}
4294
+ */
4295
+ toGenericMania() {
4296
+ const ret = wasm.quaskin_toGenericMania(this.__wbg_ptr);
4297
+ if (ret[2]) {
4298
+ throw takeFromExternrefTable0(ret[1]);
4299
+ }
4300
+ return GenericManiaSkin.__wrap(ret[0]);
4301
+ }
4302
+ /**
4303
+ * @param {GenericManiaSkin} skin
4304
+ * @returns {QuaSkin}
4305
+ */
4306
+ static fromGenericMania(skin) {
4307
+ _assertClass(skin, GenericManiaSkin);
4308
+ const ret = wasm.quaskin_fromGenericMania(skin.__wbg_ptr);
4309
+ if (ret[2]) {
4310
+ throw takeFromExternrefTable0(ret[1]);
4311
+ }
4312
+ return QuaSkin.__wrap(ret[0]);
4313
+ }
4314
+ /**
4315
+ * @returns {string[]}
4316
+ */
4317
+ getRequiredSamplePaths() {
4318
+ const ret = wasm.quaskin_getRequiredSamplePaths(this.__wbg_ptr);
4319
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4320
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4321
+ return v1;
4322
+ }
4323
+ /**
4324
+ * @returns {string[]}
4325
+ */
4326
+ getRequiredTexturePaths() {
4327
+ const ret = wasm.quaskin_getRequiredTexturePaths(this.__wbg_ptr);
4328
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4329
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4330
+ return v1;
4331
+ }
4332
+ }
4333
+ if (Symbol.dispose) QuaSkin.prototype[Symbol.dispose] = QuaSkin.prototype.free;
4334
+ exports.QuaSkin = QuaSkin;
4335
+
4336
+ class QuaSkinIni {
4337
+ static __wrap(ptr) {
4338
+ ptr = ptr >>> 0;
4339
+ const obj = Object.create(QuaSkinIni.prototype);
4340
+ obj.__wbg_ptr = ptr;
4341
+ QuaSkinIniFinalization.register(obj, obj.__wbg_ptr, obj);
4342
+ return obj;
4343
+ }
4344
+ __destroy_into_raw() {
4345
+ const ptr = this.__wbg_ptr;
4346
+ this.__wbg_ptr = 0;
4347
+ QuaSkinIniFinalization.unregister(this);
4348
+ return ptr;
4349
+ }
4350
+ free() {
4351
+ const ptr = this.__destroy_into_raw();
4352
+ wasm.__wbg_quaskinini_free(ptr, 0);
4353
+ }
4354
+ /**
4355
+ * @returns {QuaGeneral}
4356
+ */
4357
+ get general() {
4358
+ const ret = wasm.__wbg_get_quaskinini_general(this.__wbg_ptr);
4359
+ return QuaGeneral.__wrap(ret);
4360
+ }
4361
+ /**
4362
+ * @param {QuaGeneral} arg0
4363
+ */
4364
+ set general(arg0) {
4365
+ _assertClass(arg0, QuaGeneral);
4366
+ var ptr0 = arg0.__destroy_into_raw();
4367
+ wasm.__wbg_set_quaskinini_general(this.__wbg_ptr, ptr0);
4368
+ }
4369
+ /**
4370
+ * @returns {MainMenu}
4371
+ */
4372
+ get main_menu() {
4373
+ const ret = wasm.__wbg_get_quaskinini_main_menu(this.__wbg_ptr);
4374
+ return MainMenu.__wrap(ret);
4375
+ }
4376
+ /**
4377
+ * @param {MainMenu} arg0
4378
+ */
4379
+ set main_menu(arg0) {
4380
+ _assertClass(arg0, MainMenu);
4381
+ var ptr0 = arg0.__destroy_into_raw();
4382
+ wasm.__wbg_set_quaskinini_main_menu(this.__wbg_ptr, ptr0);
4383
+ }
4384
+ /**
4385
+ * @returns {MenuBorder}
4386
+ */
4387
+ get menu_border() {
4388
+ const ret = wasm.__wbg_get_quaskinini_menu_border(this.__wbg_ptr);
4389
+ return MenuBorder.__wrap(ret);
4390
+ }
4391
+ /**
4392
+ * @param {MenuBorder} arg0
4393
+ */
4394
+ set menu_border(arg0) {
4395
+ _assertClass(arg0, MenuBorder);
4396
+ var ptr0 = arg0.__destroy_into_raw();
4397
+ wasm.__wbg_set_quaskinini_menu_border(this.__wbg_ptr, ptr0);
4398
+ }
4399
+ /**
4400
+ * @returns {SongSelect}
4401
+ */
4402
+ get song_select() {
4403
+ const ret = wasm.__wbg_get_quaskinini_song_select(this.__wbg_ptr);
4404
+ return SongSelect.__wrap(ret);
4405
+ }
4406
+ /**
4407
+ * @param {SongSelect} arg0
4408
+ */
4409
+ set song_select(arg0) {
4410
+ _assertClass(arg0, SongSelect);
4411
+ var ptr0 = arg0.__destroy_into_raw();
4412
+ wasm.__wbg_set_quaskinini_song_select(this.__wbg_ptr, ptr0);
4413
+ }
4414
+ /**
4415
+ * @returns {Results}
4416
+ */
4417
+ get results() {
4418
+ const ret = wasm.__wbg_get_quaskinini_results(this.__wbg_ptr);
4419
+ return Results.__wrap(ret);
4420
+ }
4421
+ /**
4422
+ * @param {Results} arg0
4423
+ */
4424
+ set results(arg0) {
4425
+ _assertClass(arg0, Results);
4426
+ var ptr0 = arg0.__destroy_into_raw();
4427
+ wasm.__wbg_set_quaskinini_results(this.__wbg_ptr, ptr0);
4428
+ }
4429
+ /**
4430
+ * @returns {QuaKeymode[]}
4431
+ */
4432
+ get keymodes() {
4433
+ const ret = wasm.__wbg_get_quaskinini_keymodes(this.__wbg_ptr);
4434
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4435
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4436
+ return v1;
4437
+ }
4438
+ /**
4439
+ * @param {QuaKeymode[]} arg0
4440
+ */
4441
+ set keymodes(arg0) {
4442
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4443
+ const len0 = WASM_VECTOR_LEN;
4444
+ wasm.__wbg_set_quaskinini_keymodes(this.__wbg_ptr, ptr0, len0);
4445
+ }
4446
+ /**
4447
+ * @returns {QuaKeymode | undefined}
4448
+ */
4449
+ get shared_keymode() {
4450
+ const ret = wasm.__wbg_get_quaskinini_shared_keymode(this.__wbg_ptr);
4451
+ return ret === 0 ? undefined : QuaKeymode.__wrap(ret);
4452
+ }
4453
+ /**
4454
+ * @param {QuaKeymode | null} [arg0]
4455
+ */
4456
+ set shared_keymode(arg0) {
4457
+ let ptr0 = 0;
4458
+ if (!isLikeNone(arg0)) {
4459
+ _assertClass(arg0, QuaKeymode);
4460
+ ptr0 = arg0.__destroy_into_raw();
4461
+ }
4462
+ wasm.__wbg_set_quaskinini_shared_keymode(this.__wbg_ptr, ptr0);
4463
+ }
4464
+ /**
4465
+ * @param {string} ini_str
4466
+ * @returns {QuaSkinIni}
4467
+ */
4468
+ static fromStr(ini_str) {
4469
+ const ptr0 = passStringToWasm0(ini_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4470
+ const len0 = WASM_VECTOR_LEN;
4471
+ const ret = wasm.quaskinini_fromStr(ptr0, len0);
4472
+ if (ret[2]) {
4473
+ throw takeFromExternrefTable0(ret[1]);
4474
+ }
4475
+ return QuaSkinIni.__wrap(ret[0]);
4476
+ }
4477
+ /**
4478
+ * @returns {string}
4479
+ */
4480
+ toString() {
4481
+ let deferred1_0;
4482
+ let deferred1_1;
4483
+ try {
4484
+ const ret = wasm.quaskinini_toString(this.__wbg_ptr);
4485
+ deferred1_0 = ret[0];
4486
+ deferred1_1 = ret[1];
4487
+ return getStringFromWasm0(ret[0], ret[1]);
4488
+ } finally {
4489
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4490
+ }
4491
+ }
4492
+ /**
4493
+ * @param {number} keymode
4494
+ * @returns {QuaKeymode | undefined}
4495
+ */
4496
+ getKeymode(keymode) {
4497
+ const ret = wasm.quaskinini_getKeymode(this.__wbg_ptr, keymode);
4498
+ return ret === 0 ? undefined : QuaKeymode.__wrap(ret);
4499
+ }
4500
+ constructor() {
4501
+ const ret = wasm.quaskinini_new();
4502
+ this.__wbg_ptr = ret >>> 0;
4503
+ QuaSkinIniFinalization.register(this, this.__wbg_ptr, this);
4504
+ return this;
4505
+ }
4506
+ }
4507
+ if (Symbol.dispose) QuaSkinIni.prototype[Symbol.dispose] = QuaSkinIni.prototype.free;
4508
+ exports.QuaSkinIni = QuaSkinIni;
4509
+
4510
+ class RawBytes {
4511
+ static __wrap(ptr) {
4512
+ ptr = ptr >>> 0;
4513
+ const obj = Object.create(RawBytes.prototype);
4514
+ obj.__wbg_ptr = ptr;
4515
+ RawBytesFinalization.register(obj, obj.__wbg_ptr, obj);
4516
+ return obj;
4517
+ }
4518
+ __destroy_into_raw() {
4519
+ const ptr = this.__wbg_ptr;
4520
+ this.__wbg_ptr = 0;
4521
+ RawBytesFinalization.unregister(this);
4522
+ return ptr;
4523
+ }
4524
+ free() {
4525
+ const ptr = this.__destroy_into_raw();
4526
+ wasm.__wbg_rawbytes_free(ptr, 0);
4527
+ }
4528
+ /**
4529
+ * @returns {string}
4530
+ */
4531
+ get path() {
4532
+ let deferred1_0;
4533
+ let deferred1_1;
4534
+ try {
4535
+ const ret = wasm.__wbg_get_rawbytes_path(this.__wbg_ptr);
4536
+ deferred1_0 = ret[0];
4537
+ deferred1_1 = ret[1];
4538
+ return getStringFromWasm0(ret[0], ret[1]);
4539
+ } finally {
4540
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4541
+ }
4542
+ }
4543
+ /**
4544
+ * @param {string} arg0
4545
+ */
4546
+ set path(arg0) {
4547
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4548
+ const len0 = WASM_VECTOR_LEN;
4549
+ wasm.__wbg_set_fluxislayout_name(this.__wbg_ptr, ptr0, len0);
2670
4550
  }
2671
4551
  /**
2672
4552
  * @returns {Uint8Array | undefined}
@@ -2675,6 +4555,100 @@ class RawBytes {
2675
4555
  const ret = wasm.rawbytes_getData(this.__wbg_ptr);
2676
4556
  return ret;
2677
4557
  }
4558
+ /**
4559
+ * @returns {bigint | undefined}
4560
+ */
4561
+ getHash() {
4562
+ const ret = wasm.rawbytes_getHash(this.__wbg_ptr);
4563
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
4564
+ }
4565
+ /**
4566
+ * @param {string} path
4567
+ * @param {Uint8Array} bytes
4568
+ * @returns {RawBytes}
4569
+ */
4570
+ static fromBytes(path, bytes) {
4571
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4572
+ const len0 = WASM_VECTOR_LEN;
4573
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
4574
+ const len1 = WASM_VECTOR_LEN;
4575
+ const ret = wasm.rawbytes_fromBytes(ptr0, len0, ptr1, len1);
4576
+ return RawBytes.__wrap(ret);
4577
+ }
4578
+ /**
4579
+ * @param {string} path
4580
+ */
4581
+ constructor(path) {
4582
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4583
+ const len0 = WASM_VECTOR_LEN;
4584
+ const ret = wasm.rawbytes_new(ptr0, len0);
4585
+ this.__wbg_ptr = ret >>> 0;
4586
+ RawBytesFinalization.register(this, this.__wbg_ptr, this);
4587
+ return this;
4588
+ }
4589
+ unload() {
4590
+ const ret = wasm.rawbytes_unload(this.__wbg_ptr);
4591
+ if (ret[1]) {
4592
+ throw takeFromExternrefTable0(ret[0]);
4593
+ }
4594
+ }
4595
+ /**
4596
+ * @returns {string}
4597
+ */
4598
+ getPath() {
4599
+ let deferred1_0;
4600
+ let deferred1_1;
4601
+ try {
4602
+ const ret = wasm.rawbytes_getPath(this.__wbg_ptr);
4603
+ deferred1_0 = ret[0];
4604
+ deferred1_1 = ret[1];
4605
+ return getStringFromWasm0(ret[0], ret[1]);
4606
+ } finally {
4607
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4608
+ }
4609
+ }
4610
+ /**
4611
+ * @returns {boolean}
4612
+ */
4613
+ hasData() {
4614
+ const ret = wasm.rawbytes_hasData(this.__wbg_ptr);
4615
+ return ret !== 0;
4616
+ }
4617
+ /**
4618
+ * @returns {boolean}
4619
+ */
4620
+ isEmpty() {
4621
+ const ret = wasm.rawbytes_isEmpty(this.__wbg_ptr);
4622
+ return ret !== 0;
4623
+ }
4624
+ /**
4625
+ * @returns {boolean}
4626
+ */
4627
+ isLoaded() {
4628
+ const ret = wasm.rawbytes_isLoaded(this.__wbg_ptr);
4629
+ return ret !== 0;
4630
+ }
4631
+ /**
4632
+ * @returns {boolean}
4633
+ */
4634
+ isUnloaded() {
4635
+ const ret = wasm.rawbytes_isUnloaded(this.__wbg_ptr);
4636
+ return ret !== 0;
4637
+ }
4638
+ /**
4639
+ * @param {string} path
4640
+ * @param {Uint8Array} array
4641
+ * @returns {RawBytes}
4642
+ */
4643
+ static fromUint8Array(path, array) {
4644
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4645
+ const len0 = WASM_VECTOR_LEN;
4646
+ const ret = wasm.rawbytes_fromUint8Array(ptr0, len0, array);
4647
+ if (ret[2]) {
4648
+ throw takeFromExternrefTable0(ret[1]);
4649
+ }
4650
+ return RawBytes.__wrap(ret[0]);
4651
+ }
2678
4652
  /**
2679
4653
  * @param {string} path
2680
4654
  * @param {ArrayBuffer} buffer
@@ -2691,13 +4665,13 @@ class RawBytes {
2691
4665
  }
2692
4666
  /**
2693
4667
  * @param {string} path
2694
- * @param {ArrayBuffer} buffer
4668
+ * @param {Uint8Array} array
2695
4669
  * @returns {RawBytes}
2696
4670
  */
2697
- static fromArrayBufferUnloaded(path, buffer) {
4671
+ static fromUint8ArrayUnloaded(path, array) {
2698
4672
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2699
4673
  const len0 = WASM_VECTOR_LEN;
2700
- const ret = wasm.rawbytes_fromArrayBufferUnloaded(ptr0, len0, buffer);
4674
+ const ret = wasm.rawbytes_fromUint8ArrayUnloaded(ptr0, len0, array);
2701
4675
  if (ret[2]) {
2702
4676
  throw takeFromExternrefTable0(ret[1]);
2703
4677
  }
@@ -2705,40 +4679,93 @@ class RawBytes {
2705
4679
  }
2706
4680
  /**
2707
4681
  * @param {string} path
2708
- * @param {Uint8Array} array
4682
+ * @param {ArrayBuffer} buffer
2709
4683
  * @returns {RawBytes}
2710
4684
  */
2711
- static fromUint8Array(path, array) {
4685
+ static fromArrayBufferUnloaded(path, buffer) {
2712
4686
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2713
4687
  const len0 = WASM_VECTOR_LEN;
2714
- const ret = wasm.rawbytes_fromUint8Array(ptr0, len0, array);
4688
+ const ret = wasm.rawbytes_fromArrayBufferUnloaded(ptr0, len0, buffer);
2715
4689
  if (ret[2]) {
2716
4690
  throw takeFromExternrefTable0(ret[1]);
2717
4691
  }
2718
4692
  return RawBytes.__wrap(ret[0]);
2719
4693
  }
4694
+ load() {
4695
+ const ret = wasm.rawbytes_load(this.__wbg_ptr);
4696
+ if (ret[1]) {
4697
+ throw takeFromExternrefTable0(ret[0]);
4698
+ }
4699
+ }
4700
+ }
4701
+ if (Symbol.dispose) RawBytes.prototype[Symbol.dispose] = RawBytes.prototype.free;
4702
+ exports.RawBytes = RawBytes;
4703
+
4704
+ class Results {
4705
+ static __wrap(ptr) {
4706
+ ptr = ptr >>> 0;
4707
+ const obj = Object.create(Results.prototype);
4708
+ obj.__wbg_ptr = ptr;
4709
+ ResultsFinalization.register(obj, obj.__wbg_ptr, obj);
4710
+ return obj;
4711
+ }
4712
+ __destroy_into_raw() {
4713
+ const ptr = this.__wbg_ptr;
4714
+ this.__wbg_ptr = 0;
4715
+ ResultsFinalization.unregister(this);
4716
+ return ptr;
4717
+ }
4718
+ free() {
4719
+ const ptr = this.__destroy_into_raw();
4720
+ wasm.__wbg_results_free(ptr, 0);
4721
+ }
4722
+ /**
4723
+ * @returns {ResultsBackgroundType}
4724
+ */
4725
+ get results_background_type() {
4726
+ const ret = wasm.__wbg_get_results_results_background_type(this.__wbg_ptr);
4727
+ return ret;
4728
+ }
4729
+ /**
4730
+ * @param {ResultsBackgroundType} arg0
4731
+ */
4732
+ set results_background_type(arg0) {
4733
+ wasm.__wbg_set_results_results_background_type(this.__wbg_ptr, arg0);
4734
+ }
4735
+ /**
4736
+ * @returns {number}
4737
+ */
4738
+ get results_background_filter_alpha() {
4739
+ const ret = wasm.__wbg_get_results_results_background_filter_alpha(this.__wbg_ptr);
4740
+ return ret;
4741
+ }
2720
4742
  /**
2721
- * @param {string} path
2722
- * @param {Uint8Array} array
2723
- * @returns {RawBytes}
4743
+ * @param {number} arg0
2724
4744
  */
2725
- static fromUint8ArrayUnloaded(path, array) {
2726
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4745
+ set results_background_filter_alpha(arg0) {
4746
+ wasm.__wbg_set_results_results_background_filter_alpha(this.__wbg_ptr, arg0);
4747
+ }
4748
+ /**
4749
+ * @param {string} content
4750
+ * @returns {Results}
4751
+ */
4752
+ static fromStr(content) {
4753
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2727
4754
  const len0 = WASM_VECTOR_LEN;
2728
- const ret = wasm.rawbytes_fromUint8ArrayUnloaded(ptr0, len0, array);
4755
+ const ret = wasm.results_fromStr(ptr0, len0);
2729
4756
  if (ret[2]) {
2730
4757
  throw takeFromExternrefTable0(ret[1]);
2731
4758
  }
2732
- return RawBytes.__wrap(ret[0]);
4759
+ return Results.__wrap(ret[0]);
2733
4760
  }
2734
4761
  /**
2735
4762
  * @returns {string}
2736
4763
  */
2737
- getPath() {
4764
+ toString() {
2738
4765
  let deferred1_0;
2739
4766
  let deferred1_1;
2740
4767
  try {
2741
- const ret = wasm.rawbytes_getPath(this.__wbg_ptr);
4768
+ const ret = wasm.results_toString(this.__wbg_ptr);
2742
4769
  deferred1_0 = ret[0];
2743
4770
  deferred1_1 = ret[1];
2744
4771
  return getStringFromWasm0(ret[0], ret[1]);
@@ -2746,49 +4773,19 @@ class RawBytes {
2746
4773
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2747
4774
  }
2748
4775
  }
2749
- /**
2750
- * @returns {boolean}
2751
- */
2752
- hasData() {
2753
- const ret = wasm.rawbytes_hasData(this.__wbg_ptr);
2754
- return ret !== 0;
2755
- }
2756
- /**
2757
- * @returns {boolean}
2758
- */
2759
- isLoaded() {
2760
- const ret = wasm.rawbytes_isLoaded(this.__wbg_ptr);
2761
- return ret !== 0;
2762
- }
2763
- /**
2764
- * @returns {boolean}
2765
- */
2766
- isUnloaded() {
2767
- const ret = wasm.rawbytes_isUnloaded(this.__wbg_ptr);
2768
- return ret !== 0;
2769
- }
2770
- /**
2771
- * @returns {boolean}
2772
- */
2773
- isEmpty() {
2774
- const ret = wasm.rawbytes_isEmpty(this.__wbg_ptr);
2775
- return ret !== 0;
2776
- }
2777
- load() {
2778
- const ret = wasm.rawbytes_load(this.__wbg_ptr);
2779
- if (ret[1]) {
2780
- throw takeFromExternrefTable0(ret[0]);
2781
- }
2782
- }
2783
- unload() {
2784
- const ret = wasm.rawbytes_unload(this.__wbg_ptr);
2785
- if (ret[1]) {
2786
- throw takeFromExternrefTable0(ret[0]);
2787
- }
2788
- }
2789
4776
  }
2790
- if (Symbol.dispose) RawBytes.prototype[Symbol.dispose] = RawBytes.prototype.free;
2791
- exports.RawBytes = RawBytes;
4777
+ if (Symbol.dispose) Results.prototype[Symbol.dispose] = Results.prototype.free;
4778
+ exports.Results = Results;
4779
+
4780
+ /**
4781
+ * @enum {0 | 1 | 2}
4782
+ */
4783
+ const ResultsBackgroundType = Object.freeze({
4784
+ Header: 0, "0": "Header",
4785
+ Background: 1, "1": "Background",
4786
+ None: 2, "2": "None",
4787
+ });
4788
+ exports.ResultsBackgroundType = ResultsBackgroundType;
2792
4789
 
2793
4790
  class SkinJson {
2794
4791
  static __wrap(ptr) {
@@ -2840,12 +4837,6 @@ class SkinJson {
2840
4837
  const len0 = WASM_VECTOR_LEN;
2841
4838
  wasm.__wbg_set_skinjson_keymodes(this.__wbg_ptr, ptr0, len0);
2842
4839
  }
2843
- constructor() {
2844
- const ret = wasm.skinjson_new();
2845
- this.__wbg_ptr = ret >>> 0;
2846
- SkinJsonFinalization.register(this, this.__wbg_ptr, this);
2847
- return this;
2848
- }
2849
4840
  /**
2850
4841
  * @param {string} json_str
2851
4842
  * @returns {SkinJson}
@@ -2874,10 +4865,105 @@ class SkinJson {
2874
4865
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2875
4866
  }
2876
4867
  }
4868
+ constructor() {
4869
+ const ret = wasm.skinjson_new();
4870
+ this.__wbg_ptr = ret >>> 0;
4871
+ SkinJsonFinalization.register(this, this.__wbg_ptr, this);
4872
+ return this;
4873
+ }
2877
4874
  }
2878
4875
  if (Symbol.dispose) SkinJson.prototype[Symbol.dispose] = SkinJson.prototype.free;
2879
4876
  exports.SkinJson = SkinJson;
2880
4877
 
4878
+ class SongSelect {
4879
+ static __wrap(ptr) {
4880
+ ptr = ptr >>> 0;
4881
+ const obj = Object.create(SongSelect.prototype);
4882
+ obj.__wbg_ptr = ptr;
4883
+ SongSelectFinalization.register(obj, obj.__wbg_ptr, obj);
4884
+ return obj;
4885
+ }
4886
+ __destroy_into_raw() {
4887
+ const ptr = this.__wbg_ptr;
4888
+ this.__wbg_ptr = 0;
4889
+ SongSelectFinalization.unregister(this);
4890
+ return ptr;
4891
+ }
4892
+ free() {
4893
+ const ptr = this.__destroy_into_raw();
4894
+ wasm.__wbg_songselect_free(ptr, 0);
4895
+ }
4896
+ /**
4897
+ * @returns {number}
4898
+ */
4899
+ get mapset_panel_hovering_alpha() {
4900
+ const ret = wasm.__wbg_get_songselect_mapset_panel_hovering_alpha(this.__wbg_ptr);
4901
+ return ret;
4902
+ }
4903
+ /**
4904
+ * @param {number} arg0
4905
+ */
4906
+ set mapset_panel_hovering_alpha(arg0) {
4907
+ wasm.__wbg_set_songselect_mapset_panel_hovering_alpha(this.__wbg_ptr, arg0);
4908
+ }
4909
+ /**
4910
+ * @returns {number}
4911
+ */
4912
+ get map_background_brightness() {
4913
+ const ret = wasm.__wbg_get_songselect_map_background_brightness(this.__wbg_ptr);
4914
+ return ret;
4915
+ }
4916
+ /**
4917
+ * @param {number} arg0
4918
+ */
4919
+ set map_background_brightness(arg0) {
4920
+ wasm.__wbg_set_songselect_map_background_brightness(this.__wbg_ptr, arg0);
4921
+ }
4922
+ /**
4923
+ * @returns {boolean}
4924
+ */
4925
+ get display_map_background() {
4926
+ const ret = wasm.__wbg_get_songselect_display_map_background(this.__wbg_ptr);
4927
+ return ret !== 0;
4928
+ }
4929
+ /**
4930
+ * @param {boolean} arg0
4931
+ */
4932
+ set display_map_background(arg0) {
4933
+ wasm.__wbg_set_songselect_display_map_background(this.__wbg_ptr, arg0);
4934
+ }
4935
+ /**
4936
+ * @param {string} content
4937
+ * @returns {SongSelect}
4938
+ */
4939
+ static fromStr(content) {
4940
+ const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4941
+ const len0 = WASM_VECTOR_LEN;
4942
+ const ret = wasm.songselect_fromStr(ptr0, len0);
4943
+ if (ret[2]) {
4944
+ throw takeFromExternrefTable0(ret[1]);
4945
+ }
4946
+ return SongSelect.__wrap(ret[0]);
4947
+ }
4948
+ /**
4949
+ * @returns {string}
4950
+ */
4951
+ toString() {
4952
+ let deferred1_0;
4953
+ let deferred1_1;
4954
+ try {
4955
+ const ret = wasm.songselect_toString(this.__wbg_ptr);
4956
+ deferred1_0 = ret[0];
4957
+ deferred1_1 = ret[1];
4958
+ return getStringFromWasm0(ret[0], ret[1]);
4959
+ } finally {
4960
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4961
+ }
4962
+ }
4963
+ }
4964
+ if (Symbol.dispose) SongSelect.prototype[Symbol.dispose] = SongSelect.prototype.free;
4965
+ exports.SongSelect = SongSelect;
4966
+
2881
4967
  class Texture {
2882
4968
  static __wrap(ptr) {
2883
4969
  ptr = ptr >>> 0;
@@ -2919,17 +5005,6 @@ class Texture {
2919
5005
  const len0 = WASM_VECTOR_LEN;
2920
5006
  wasm.__wbg_set_texture_path(this.__wbg_ptr, ptr0, len0);
2921
5007
  }
2922
- /**
2923
- * @param {string} path
2924
- */
2925
- constructor(path) {
2926
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2927
- const len0 = WASM_VECTOR_LEN;
2928
- const ret = wasm.texture_new(ptr0, len0);
2929
- this.__wbg_ptr = ret >>> 0;
2930
- TextureFinalization.register(this, this.__wbg_ptr, this);
2931
- return this;
2932
- }
2933
5008
  /**
2934
5009
  * @param {string} path
2935
5010
  * @returns {Texture}
@@ -2941,60 +5016,28 @@ class Texture {
2941
5016
  return Texture.__wrap(ret);
2942
5017
  }
2943
5018
  /**
2944
- * @param {string} path
2945
- * @param {ArrayBuffer} buffer
2946
- * @returns {Texture}
2947
- */
2948
- static fromArrayBuffer(path, buffer) {
2949
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2950
- const len0 = WASM_VECTOR_LEN;
2951
- const ret = wasm.texture_fromArrayBuffer(ptr0, len0, buffer);
2952
- if (ret[2]) {
2953
- throw takeFromExternrefTable0(ret[1]);
2954
- }
2955
- return Texture.__wrap(ret[0]);
2956
- }
2957
- /**
2958
- * @param {string} path
2959
- * @param {ArrayBuffer} buffer
2960
- * @returns {Texture}
5019
+ * @returns {bigint | undefined}
2961
5020
  */
2962
- static fromArrayBufferUnloaded(path, buffer) {
2963
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2964
- const len0 = WASM_VECTOR_LEN;
2965
- const ret = wasm.texture_fromArrayBufferUnloaded(ptr0, len0, buffer);
2966
- if (ret[2]) {
2967
- throw takeFromExternrefTable0(ret[1]);
2968
- }
2969
- return Texture.__wrap(ret[0]);
5021
+ getHash() {
5022
+ const ret = wasm.texture_getHash(this.__wbg_ptr);
5023
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
2970
5024
  }
2971
5025
  /**
2972
5026
  * @param {string} path
2973
- * @param {Uint8Array} array
2974
- * @returns {Texture}
2975
5027
  */
2976
- static fromUint8Array(path, array) {
5028
+ constructor(path) {
2977
5029
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2978
5030
  const len0 = WASM_VECTOR_LEN;
2979
- const ret = wasm.texture_fromUint8Array(ptr0, len0, array);
2980
- if (ret[2]) {
2981
- throw takeFromExternrefTable0(ret[1]);
2982
- }
2983
- return Texture.__wrap(ret[0]);
5031
+ const ret = wasm.texture_new(ptr0, len0);
5032
+ this.__wbg_ptr = ret >>> 0;
5033
+ TextureFinalization.register(this, this.__wbg_ptr, this);
5034
+ return this;
2984
5035
  }
2985
- /**
2986
- * @param {string} path
2987
- * @param {Uint8Array} array
2988
- * @returns {Texture}
2989
- */
2990
- static fromUint8ArrayUnloaded(path, array) {
2991
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2992
- const len0 = WASM_VECTOR_LEN;
2993
- const ret = wasm.texture_fromUint8ArrayUnloaded(ptr0, len0, array);
2994
- if (ret[2]) {
2995
- throw takeFromExternrefTable0(ret[1]);
5036
+ unload() {
5037
+ const ret = wasm.texture_unload(this.__wbg_ptr);
5038
+ if (ret[1]) {
5039
+ throw takeFromExternrefTable0(ret[0]);
2996
5040
  }
2997
- return Texture.__wrap(ret[0]);
2998
5041
  }
2999
5042
  /**
3000
5043
  * @returns {string}
@@ -3018,6 +5061,13 @@ class Texture {
3018
5061
  const ret = wasm.texture_hasData(this.__wbg_ptr);
3019
5062
  return ret !== 0;
3020
5063
  }
5064
+ /**
5065
+ * @returns {boolean}
5066
+ */
5067
+ isEmpty() {
5068
+ const ret = wasm.texture_isEmpty(this.__wbg_ptr);
5069
+ return ret !== 0;
5070
+ }
3021
5071
  /**
3022
5072
  * @returns {boolean}
3023
5073
  */
@@ -3033,11 +5083,60 @@ class Texture {
3033
5083
  return ret !== 0;
3034
5084
  }
3035
5085
  /**
3036
- * @returns {boolean}
5086
+ * @param {string} path
5087
+ * @param {Uint8Array} array
5088
+ * @returns {Texture}
5089
+ */
5090
+ static fromUint8Array(path, array) {
5091
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5092
+ const len0 = WASM_VECTOR_LEN;
5093
+ const ret = wasm.texture_fromUint8Array(ptr0, len0, array);
5094
+ if (ret[2]) {
5095
+ throw takeFromExternrefTable0(ret[1]);
5096
+ }
5097
+ return Texture.__wrap(ret[0]);
5098
+ }
5099
+ /**
5100
+ * @param {string} path
5101
+ * @param {ArrayBuffer} buffer
5102
+ * @returns {Texture}
5103
+ */
5104
+ static fromArrayBuffer(path, buffer) {
5105
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5106
+ const len0 = WASM_VECTOR_LEN;
5107
+ const ret = wasm.texture_fromArrayBuffer(ptr0, len0, buffer);
5108
+ if (ret[2]) {
5109
+ throw takeFromExternrefTable0(ret[1]);
5110
+ }
5111
+ return Texture.__wrap(ret[0]);
5112
+ }
5113
+ /**
5114
+ * @param {string} path
5115
+ * @param {Uint8Array} array
5116
+ * @returns {Texture}
5117
+ */
5118
+ static fromUint8ArrayUnloaded(path, array) {
5119
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5120
+ const len0 = WASM_VECTOR_LEN;
5121
+ const ret = wasm.texture_fromUint8ArrayUnloaded(ptr0, len0, array);
5122
+ if (ret[2]) {
5123
+ throw takeFromExternrefTable0(ret[1]);
5124
+ }
5125
+ return Texture.__wrap(ret[0]);
5126
+ }
5127
+ /**
5128
+ * @param {string} path
5129
+ * @param {ArrayBuffer} buffer
5130
+ * @returns {Texture}
3037
5131
  */
3038
- isEmpty() {
3039
- const ret = wasm.texture_isEmpty(this.__wbg_ptr);
3040
- return ret !== 0;
5132
+ static fromArrayBufferUnloaded(path, buffer) {
5133
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5134
+ const len0 = WASM_VECTOR_LEN;
5135
+ const ret = wasm.texture_fromArrayBufferUnloaded(ptr0, len0, buffer);
5136
+ if (ret[2]) {
5137
+ throw takeFromExternrefTable0(ret[1]);
5138
+ }
5139
+ return Texture.__wrap(ret[0]);
3041
5140
  }
3042
5141
  load() {
3043
5142
  const ret = wasm.texture_load(this.__wbg_ptr);
@@ -3045,12 +5144,6 @@ class Texture {
3045
5144
  throw takeFromExternrefTable0(ret[0]);
3046
5145
  }
3047
5146
  }
3048
- unload() {
3049
- const ret = wasm.texture_unload(this.__wbg_ptr);
3050
- if (ret[1]) {
3051
- throw takeFromExternrefTable0(ret[0]);
3052
- }
3053
- }
3054
5147
  }
3055
5148
  if (Symbol.dispose) Texture.prototype[Symbol.dispose] = Texture.prototype.free;
3056
5149
  exports.Texture = Texture;
@@ -3073,19 +5166,22 @@ class TextureStore {
3073
5166
  const ptr = this.__destroy_into_raw();
3074
5167
  wasm.__wbg_texturestore_free(ptr, 0);
3075
5168
  }
3076
- constructor() {
3077
- const ret = wasm.texturestore_new();
3078
- this.__wbg_ptr = ret >>> 0;
3079
- TextureStoreFinalization.register(this, this.__wbg_ptr, this);
3080
- return this;
5169
+ /**
5170
+ * @returns {boolean}
5171
+ */
5172
+ allLoaded() {
5173
+ const ret = wasm.texturestore_allLoaded(this.__wbg_ptr);
5174
+ return ret !== 0;
3081
5175
  }
3082
5176
  /**
3083
- * @param {Texture} texture
5177
+ * @param {string} path
5178
+ * @returns {boolean}
3084
5179
  */
3085
- insertTexture(texture) {
3086
- _assertClass(texture, Texture);
3087
- var ptr0 = texture.__destroy_into_raw();
3088
- wasm.texturestore_insertTexture(this.__wbg_ptr, ptr0);
5180
+ hasTexture(path) {
5181
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5182
+ const len0 = WASM_VECTOR_LEN;
5183
+ const ret = wasm.texturestore_contains(this.__wbg_ptr, ptr0, len0);
5184
+ return ret !== 0;
3089
5185
  }
3090
5186
  /**
3091
5187
  * @param {string} new_path
@@ -3108,37 +5204,6 @@ class TextureStore {
3108
5204
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
3109
5205
  }
3110
5206
  }
3111
- /**
3112
- * @param {string} path
3113
- * @param {ArrayBuffer} buffer
3114
- */
3115
- loadFromArrayBuffer(path, buffer) {
3116
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3117
- const len0 = WASM_VECTOR_LEN;
3118
- const ret = wasm.texturestore_loadFromArrayBuffer(this.__wbg_ptr, ptr0, len0, buffer);
3119
- if (ret[1]) {
3120
- throw takeFromExternrefTable0(ret[0]);
3121
- }
3122
- }
3123
- /**
3124
- * @param {string} path
3125
- * @param {Uint8Array} array
3126
- */
3127
- loadFromUint8Array(path, array) {
3128
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3129
- const len0 = WASM_VECTOR_LEN;
3130
- const ret = wasm.texturestore_loadFromUint8Array(this.__wbg_ptr, ptr0, len0, array);
3131
- if (ret[1]) {
3132
- throw takeFromExternrefTable0(ret[0]);
3133
- }
3134
- }
3135
- /**
3136
- * @returns {boolean}
3137
- */
3138
- allLoaded() {
3139
- const ret = wasm.texturestore_allLoaded(this.__wbg_ptr);
3140
- return ret !== 0;
3141
- }
3142
5207
  /**
3143
5208
  * @returns {number}
3144
5209
  */
@@ -3146,6 +5211,14 @@ class TextureStore {
3146
5211
  const ret = wasm.texturestore_loadedCount(this.__wbg_ptr);
3147
5212
  return ret >>> 0;
3148
5213
  }
5214
+ /**
5215
+ * @param {Texture} texture
5216
+ */
5217
+ insertTexture(texture) {
5218
+ _assertClass(texture, Texture);
5219
+ var ptr0 = texture.__destroy_into_raw();
5220
+ wasm.texturestore_insertTexture(this.__wbg_ptr, ptr0);
5221
+ }
3149
5222
  /**
3150
5223
  * @returns {Array<any>}
3151
5224
  */
@@ -3153,16 +5226,6 @@ class TextureStore {
3153
5226
  const ret = wasm.texturestore_unloadedPaths(this.__wbg_ptr);
3154
5227
  return ret;
3155
5228
  }
3156
- /**
3157
- * @param {string} path
3158
- * @returns {boolean}
3159
- */
3160
- hasTexture(path) {
3161
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3162
- const len0 = WASM_VECTOR_LEN;
3163
- const ret = wasm.texturestore_contains(this.__wbg_ptr, ptr0, len0);
3164
- return ret !== 0;
3165
- }
3166
5229
  /**
3167
5230
  * @param {string} path
3168
5231
  * @returns {string | undefined}
@@ -3190,23 +5253,36 @@ class TextureStore {
3190
5253
  }
3191
5254
  /**
3192
5255
  * @param {string} path
3193
- * @returns {boolean}
5256
+ * @param {Uint8Array} array
3194
5257
  */
3195
- contains(path) {
5258
+ loadFromUint8Array(path, array) {
3196
5259
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3197
5260
  const len0 = WASM_VECTOR_LEN;
3198
- const ret = wasm.texturestore_contains(this.__wbg_ptr, ptr0, len0);
3199
- return ret !== 0;
5261
+ const ret = wasm.texturestore_loadFromUint8Array(this.__wbg_ptr, ptr0, len0, array);
5262
+ if (ret[1]) {
5263
+ throw takeFromExternrefTable0(ret[0]);
5264
+ }
3200
5265
  }
3201
5266
  /**
3202
5267
  * @param {string} path
3203
- * @returns {boolean}
5268
+ * @param {ArrayBuffer} buffer
3204
5269
  */
3205
- remove(path) {
5270
+ loadFromArrayBuffer(path, buffer) {
3206
5271
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3207
5272
  const len0 = WASM_VECTOR_LEN;
3208
- const ret = wasm.texturestore_remove(this.__wbg_ptr, ptr0, len0);
3209
- return ret !== 0;
5273
+ const ret = wasm.texturestore_loadFromArrayBuffer(this.__wbg_ptr, ptr0, len0, buffer);
5274
+ if (ret[1]) {
5275
+ throw takeFromExternrefTable0(ret[0]);
5276
+ }
5277
+ }
5278
+ constructor() {
5279
+ const ret = wasm.texturestore_new_wasm();
5280
+ this.__wbg_ptr = ret >>> 0;
5281
+ TextureStoreFinalization.register(this, this.__wbg_ptr, this);
5282
+ return this;
5283
+ }
5284
+ clear() {
5285
+ wasm.texturestore_clear(this.__wbg_ptr);
3210
5286
  }
3211
5287
  /**
3212
5288
  * @returns {number}
@@ -3215,6 +5291,33 @@ class TextureStore {
3215
5291
  const ret = wasm.texturestore_getLength(this.__wbg_ptr);
3216
5292
  return ret >>> 0;
3217
5293
  }
5294
+ /**
5295
+ * @param {TextureStore} other
5296
+ */
5297
+ extend(other) {
5298
+ _assertClass(other, TextureStore);
5299
+ wasm.texturestore_extend(this.__wbg_ptr, other.__wbg_ptr);
5300
+ }
5301
+ /**
5302
+ * @param {string} path
5303
+ * @returns {boolean}
5304
+ */
5305
+ remove(path) {
5306
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5307
+ const len0 = WASM_VECTOR_LEN;
5308
+ const ret = wasm.texturestore_remove(this.__wbg_ptr, ptr0, len0);
5309
+ return ret !== 0;
5310
+ }
5311
+ /**
5312
+ * @param {string} path
5313
+ * @returns {boolean}
5314
+ */
5315
+ contains(path) {
5316
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5317
+ const len0 = WASM_VECTOR_LEN;
5318
+ const ret = wasm.texturestore_contains(this.__wbg_ptr, ptr0, len0);
5319
+ return ret !== 0;
5320
+ }
3218
5321
  /**
3219
5322
  * @returns {boolean}
3220
5323
  */
@@ -3229,20 +5332,17 @@ class TextureStore {
3229
5332
  const ret = wasm.texturestore_getPaths(this.__wbg_ptr);
3230
5333
  return ret;
3231
5334
  }
3232
- clear() {
3233
- wasm.texturestore_clear(this.__wbg_ptr);
3234
- }
3235
5335
  /**
3236
5336
  * @param {string} original_path
3237
- * @param {string} new_path
5337
+ * @param {string} new_base_path
3238
5338
  * @returns {string | undefined}
3239
5339
  */
3240
- copy(original_path, new_path) {
5340
+ makeUniqueCopy(original_path, new_base_path) {
3241
5341
  const ptr0 = passStringToWasm0(original_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3242
5342
  const len0 = WASM_VECTOR_LEN;
3243
- const ptr1 = passStringToWasm0(new_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5343
+ const ptr1 = passStringToWasm0(new_base_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3244
5344
  const len1 = WASM_VECTOR_LEN;
3245
- const ret = wasm.texturestore_copy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
5345
+ const ret = wasm.texturestore_makeUniqueCopy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
3246
5346
  let v3;
3247
5347
  if (ret[0] !== 0) {
3248
5348
  v3 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -3252,15 +5352,15 @@ class TextureStore {
3252
5352
  }
3253
5353
  /**
3254
5354
  * @param {string} original_path
3255
- * @param {string} new_base_path
5355
+ * @param {string} new_path
3256
5356
  * @returns {string | undefined}
3257
5357
  */
3258
- makeUniqueCopy(original_path, new_base_path) {
5358
+ copy(original_path, new_path) {
3259
5359
  const ptr0 = passStringToWasm0(original_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3260
5360
  const len0 = WASM_VECTOR_LEN;
3261
- const ptr1 = passStringToWasm0(new_base_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5361
+ const ptr1 = passStringToWasm0(new_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3262
5362
  const len1 = WASM_VECTOR_LEN;
3263
- const ret = wasm.texturestore_makeUniqueCopy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
5363
+ const ret = wasm.texturestore_copy(this.__wbg_ptr, ptr0, len0, ptr1, len1);
3264
5364
  let v3;
3265
5365
  if (ret[0] !== 0) {
3266
5366
  v3 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -3268,13 +5368,6 @@ class TextureStore {
3268
5368
  }
3269
5369
  return v3;
3270
5370
  }
3271
- /**
3272
- * @param {TextureStore} other
3273
- */
3274
- extend(other) {
3275
- _assertClass(other, TextureStore);
3276
- wasm.texturestore_extend(this.__wbg_ptr, other.__wbg_ptr);
3277
- }
3278
5371
  }
3279
5372
  if (Symbol.dispose) TextureStore.prototype[Symbol.dispose] = TextureStore.prototype.free;
3280
5373
  exports.TextureStore = TextureStore;
@@ -3296,12 +5389,15 @@ exports.allSamplesFromDir = allSamplesFromDir;
3296
5389
 
3297
5390
  /**
3298
5391
  * @param {string} path
5392
+ * @param {string[] | null} [load_only]
3299
5393
  * @returns {TextureStore}
3300
5394
  */
3301
- function allTexturesFromDir(path) {
5395
+ function allTexturesFromDir(path, load_only) {
3302
5396
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3303
5397
  const len0 = WASM_VECTOR_LEN;
3304
- const ret = wasm.allTexturesFromDir(ptr0, len0);
5398
+ var ptr1 = isLikeNone(load_only) ? 0 : passArrayJsValueToWasm0(load_only, wasm.__wbindgen_malloc);
5399
+ var len1 = WASM_VECTOR_LEN;
5400
+ const ret = wasm.allTexturesFromDir(ptr0, len0, ptr1, len1);
3305
5401
  if (ret[2]) {
3306
5402
  throw takeFromExternrefTable0(ret[1]);
3307
5403
  }
@@ -3311,12 +5407,13 @@ exports.allTexturesFromDir = allTexturesFromDir;
3311
5407
 
3312
5408
  /**
3313
5409
  * @param {string} path
5410
+ * @param {boolean | null} [import_all]
3314
5411
  * @returns {FluXisSkin}
3315
5412
  */
3316
- function fluXisSkinFromDir(path) {
5413
+ function fluXisSkinFromDir(path, import_all) {
3317
5414
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3318
5415
  const len0 = WASM_VECTOR_LEN;
3319
- const ret = wasm.fluXisSkinFromDir(ptr0, len0);
5416
+ const ret = wasm.fluXisSkinFromDir(ptr0, len0, isLikeNone(import_all) ? 0xFFFFFF : import_all ? 1 : 0);
3320
5417
  if (ret[2]) {
3321
5418
  throw takeFromExternrefTable0(ret[1]);
3322
5419
  }
@@ -3343,13 +5440,13 @@ exports.fluXisSkinToDir = fluXisSkinToDir;
3343
5440
  * @param {string} path
3344
5441
  * @returns {string}
3345
5442
  */
3346
- function iniStrFromDir(path) {
5443
+ function fluxisJsonStrFromDir(path) {
3347
5444
  let deferred2_0;
3348
5445
  let deferred2_1;
3349
5446
  try {
3350
5447
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3351
5448
  const len0 = WASM_VECTOR_LEN;
3352
- const ret = wasm.iniStrFromDir(ptr0, len0);
5449
+ const ret = wasm.fluxisJsonStrFromDir(ptr0, len0);
3353
5450
  deferred2_0 = ret[0];
3354
5451
  deferred2_1 = ret[1];
3355
5452
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3357,34 +5454,49 @@ function iniStrFromDir(path) {
3357
5454
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3358
5455
  }
3359
5456
  }
3360
- exports.iniStrFromDir = iniStrFromDir;
5457
+ exports.fluxisJsonStrFromDir = fluxisJsonStrFromDir;
3361
5458
 
3362
5459
  /**
3363
- * @param {OsuSkinIni} skin_ini
5460
+ * @param {SkinJson} skin_json
3364
5461
  * @param {string} path
3365
5462
  */
3366
- function iniToDir(skin_ini, path) {
3367
- _assertClass(skin_ini, OsuSkinIni);
5463
+ function fluxisJsonToDir(skin_json, path) {
5464
+ _assertClass(skin_json, SkinJson);
5465
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5466
+ const len0 = WASM_VECTOR_LEN;
5467
+ const ret = wasm.fluxisJsonToDir(skin_json.__wbg_ptr, ptr0, len0);
5468
+ if (ret[1]) {
5469
+ throw takeFromExternrefTable0(ret[0]);
5470
+ }
5471
+ }
5472
+ exports.fluxisJsonToDir = fluxisJsonToDir;
5473
+
5474
+ /**
5475
+ * @param {FluXisLayout} layout_json
5476
+ * @param {string} path
5477
+ */
5478
+ function fluxisLayoutToDir(layout_json, path) {
5479
+ _assertClass(layout_json, FluXisLayout);
3368
5480
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3369
5481
  const len0 = WASM_VECTOR_LEN;
3370
- const ret = wasm.iniToDir(skin_ini.__wbg_ptr, ptr0, len0);
5482
+ const ret = wasm.fluxisLayoutToDir(layout_json.__wbg_ptr, ptr0, len0);
3371
5483
  if (ret[1]) {
3372
5484
  throw takeFromExternrefTable0(ret[0]);
3373
5485
  }
3374
5486
  }
3375
- exports.iniToDir = iniToDir;
5487
+ exports.fluxisLayoutToDir = fluxisLayoutToDir;
3376
5488
 
3377
5489
  /**
3378
5490
  * @param {string} path
3379
5491
  * @returns {string}
3380
5492
  */
3381
- function jsonStrFromDir(path) {
5493
+ function osuIniStrFromDir(path) {
3382
5494
  let deferred2_0;
3383
5495
  let deferred2_1;
3384
5496
  try {
3385
5497
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3386
5498
  const len0 = WASM_VECTOR_LEN;
3387
- const ret = wasm.jsonStrFromDir(ptr0, len0);
5499
+ const ret = wasm.osuIniStrFromDir(ptr0, len0);
3388
5500
  deferred2_0 = ret[0];
3389
5501
  deferred2_1 = ret[1];
3390
5502
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3392,67 +5504,119 @@ function jsonStrFromDir(path) {
3392
5504
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3393
5505
  }
3394
5506
  }
3395
- exports.jsonStrFromDir = jsonStrFromDir;
5507
+ exports.osuIniStrFromDir = osuIniStrFromDir;
3396
5508
 
3397
5509
  /**
3398
- * @param {SkinJson} skin_json
5510
+ * @param {OsuSkinIni} skin_ini
3399
5511
  * @param {string} path
3400
5512
  */
3401
- function jsonToDir(skin_json, path) {
3402
- _assertClass(skin_json, SkinJson);
5513
+ function osuIniToDir(skin_ini, path) {
5514
+ _assertClass(skin_ini, OsuSkinIni);
3403
5515
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3404
5516
  const len0 = WASM_VECTOR_LEN;
3405
- const ret = wasm.jsonToDir(skin_json.__wbg_ptr, ptr0, len0);
5517
+ const ret = wasm.osuIniToDir(skin_ini.__wbg_ptr, ptr0, len0);
3406
5518
  if (ret[1]) {
3407
5519
  throw takeFromExternrefTable0(ret[0]);
3408
5520
  }
3409
5521
  }
3410
- exports.jsonToDir = jsonToDir;
5522
+ exports.osuIniToDir = osuIniToDir;
3411
5523
 
3412
5524
  /**
3413
- * @param {FluXisLayout} layout_json
3414
5525
  * @param {string} path
5526
+ * @param {boolean | null} [import_all]
5527
+ * @returns {OsuSkin}
3415
5528
  */
3416
- function layoutToDir(layout_json, path) {
3417
- _assertClass(layout_json, FluXisLayout);
5529
+ function osuSkinFromDir(path, import_all) {
5530
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5531
+ const len0 = WASM_VECTOR_LEN;
5532
+ const ret = wasm.osuSkinFromDir(ptr0, len0, isLikeNone(import_all) ? 0xFFFFFF : import_all ? 1 : 0);
5533
+ if (ret[2]) {
5534
+ throw takeFromExternrefTable0(ret[1]);
5535
+ }
5536
+ return OsuSkin.__wrap(ret[0]);
5537
+ }
5538
+ exports.osuSkinFromDir = osuSkinFromDir;
5539
+
5540
+ /**
5541
+ * @param {OsuSkin} skin
5542
+ * @param {string} path
5543
+ */
5544
+ function osuSkinToDir(skin, path) {
5545
+ _assertClass(skin, OsuSkin);
3418
5546
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3419
5547
  const len0 = WASM_VECTOR_LEN;
3420
- const ret = wasm.layoutToDir(layout_json.__wbg_ptr, ptr0, len0);
5548
+ const ret = wasm.osuSkinToDir(skin.__wbg_ptr, ptr0, len0);
3421
5549
  if (ret[1]) {
3422
5550
  throw takeFromExternrefTable0(ret[0]);
3423
5551
  }
3424
5552
  }
3425
- exports.layoutToDir = layoutToDir;
5553
+ exports.osuSkinToDir = osuSkinToDir;
3426
5554
 
3427
5555
  /**
3428
5556
  * @param {string} path
3429
- * @returns {OsuSkin}
5557
+ * @returns {string}
5558
+ */
5559
+ function quaverIniStrFromDir(path) {
5560
+ let deferred2_0;
5561
+ let deferred2_1;
5562
+ try {
5563
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5564
+ const len0 = WASM_VECTOR_LEN;
5565
+ const ret = wasm.quaverIniStrFromDir(ptr0, len0);
5566
+ deferred2_0 = ret[0];
5567
+ deferred2_1 = ret[1];
5568
+ return getStringFromWasm0(ret[0], ret[1]);
5569
+ } finally {
5570
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
5571
+ }
5572
+ }
5573
+ exports.quaverIniStrFromDir = quaverIniStrFromDir;
5574
+
5575
+ /**
5576
+ * @param {QuaSkinIni} skin_ini
5577
+ * @param {string} path
5578
+ */
5579
+ function quaverIniToDir(skin_ini, path) {
5580
+ _assertClass(skin_ini, QuaSkinIni);
5581
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5582
+ const len0 = WASM_VECTOR_LEN;
5583
+ const ret = wasm.quaverIniToDir(skin_ini.__wbg_ptr, ptr0, len0);
5584
+ if (ret[1]) {
5585
+ throw takeFromExternrefTable0(ret[0]);
5586
+ }
5587
+ }
5588
+ exports.quaverIniToDir = quaverIniToDir;
5589
+
5590
+ /**
5591
+ * @param {string} path
5592
+ * @param {boolean | null} [import_all]
5593
+ * @returns {QuaSkin}
3430
5594
  */
3431
- function osuSkinFromDir(path) {
5595
+ function quaverSkinFromDir(path, import_all) {
3432
5596
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3433
5597
  const len0 = WASM_VECTOR_LEN;
3434
- const ret = wasm.osuSkinFromDir(ptr0, len0);
5598
+ const ret = wasm.quaverSkinFromDir(ptr0, len0, isLikeNone(import_all) ? 0xFFFFFF : import_all ? 1 : 0);
3435
5599
  if (ret[2]) {
3436
5600
  throw takeFromExternrefTable0(ret[1]);
3437
5601
  }
3438
- return OsuSkin.__wrap(ret[0]);
5602
+ return QuaSkin.__wrap(ret[0]);
3439
5603
  }
3440
- exports.osuSkinFromDir = osuSkinFromDir;
5604
+ exports.quaverSkinFromDir = quaverSkinFromDir;
3441
5605
 
3442
5606
  /**
3443
- * @param {OsuSkin} skin
5607
+ * @param {QuaSkin} skin
3444
5608
  * @param {string} path
3445
5609
  */
3446
- function osuSkinToDir(skin, path) {
3447
- _assertClass(skin, OsuSkin);
5610
+ function quaverSkinToDir(skin, path) {
5611
+ _assertClass(skin, QuaSkin);
3448
5612
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3449
5613
  const len0 = WASM_VECTOR_LEN;
3450
- const ret = wasm.osuSkinToDir(skin.__wbg_ptr, ptr0, len0);
5614
+ const ret = wasm.quaverSkinToDir(skin.__wbg_ptr, ptr0, len0);
3451
5615
  if (ret[1]) {
3452
5616
  throw takeFromExternrefTable0(ret[0]);
3453
5617
  }
3454
5618
  }
3455
- exports.osuSkinToDir = osuSkinToDir;
5619
+ exports.quaverSkinToDir = quaverSkinToDir;
3456
5620
 
3457
5621
  /**
3458
5622
  * @param {string} path
@@ -3542,7 +5706,7 @@ exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
3542
5706
  throw new Error(getStringFromWasm0(arg0, arg1));
3543
5707
  };
3544
5708
 
3545
- exports.__wbg_createDirAll_ed59516d327d16d7 = function() { return handleError(function (arg0, arg1) {
5709
+ exports.__wbg_createDirAll_12a67205521e99f7 = function() { return handleError(function (arg0, arg1) {
3546
5710
  createDirAll(getStringFromWasm0(arg0, arg1));
3547
5711
  }, arguments) };
3548
5712
 
@@ -3561,12 +5725,12 @@ exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
3561
5725
  return ret;
3562
5726
  };
3563
5727
 
3564
- exports.__wbg_isDirectory_d9447fc59d890759 = function() { return handleError(function (arg0, arg1) {
5728
+ exports.__wbg_isDirectory_c077b41f3b7b2df7 = function() { return handleError(function (arg0, arg1) {
3565
5729
  const ret = isDirectory(getStringFromWasm0(arg0, arg1));
3566
5730
  return ret;
3567
5731
  }, arguments) };
3568
5732
 
3569
- exports.__wbg_joinPath_09e3f297160d67ae = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
5733
+ exports.__wbg_joinPath_bff79219513ef55a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3570
5734
  const ret = joinPath(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3571
5735
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3572
5736
  const len1 = WASM_VECTOR_LEN;
@@ -3618,17 +5782,27 @@ exports.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
3618
5782
  return ret;
3619
5783
  };
3620
5784
 
3621
- exports.__wbg_readDir_d68d219c55b1d4c0 = function() { return handleError(function (arg0, arg1) {
5785
+ exports.__wbg_quakeymode_new = function(arg0) {
5786
+ const ret = QuaKeymode.__wrap(arg0);
5787
+ return ret;
5788
+ };
5789
+
5790
+ exports.__wbg_quakeymode_unwrap = function(arg0) {
5791
+ const ret = QuaKeymode.__unwrap(arg0);
5792
+ return ret;
5793
+ };
5794
+
5795
+ exports.__wbg_readDir_cc088e74c8a41f13 = function() { return handleError(function (arg0, arg1) {
3622
5796
  const ret = readDir(getStringFromWasm0(arg0, arg1));
3623
5797
  return ret;
3624
5798
  }, arguments) };
3625
5799
 
3626
- exports.__wbg_readFileBytes_2c1b7dda2708a44c = function() { return handleError(function (arg0, arg1) {
5800
+ exports.__wbg_readFileBytes_395b9d2be29cedd1 = function() { return handleError(function (arg0, arg1) {
3627
5801
  const ret = readFileBytes(getStringFromWasm0(arg0, arg1));
3628
5802
  return ret;
3629
5803
  }, arguments) };
3630
5804
 
3631
- exports.__wbg_readFileString_fecdefcb119365ed = function() { return handleError(function (arg0, arg1, arg2) {
5805
+ exports.__wbg_readFileString_2a9c67574a6580d7 = function() { return handleError(function (arg0, arg1, arg2) {
3632
5806
  const ret = readFileString(getStringFromWasm0(arg1, arg2));
3633
5807
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3634
5808
  const len1 = WASM_VECTOR_LEN;
@@ -3636,7 +5810,7 @@ exports.__wbg_readFileString_fecdefcb119365ed = function() { return handleError(
3636
5810
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3637
5811
  }, arguments) };
3638
5812
 
3639
- exports.__wbg_writeFile_be43d94d078ac294 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5813
+ exports.__wbg_writeFile_f3f5d75134f8e6ee = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3640
5814
  writeFile(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
3641
5815
  }, arguments) };
3642
5816