fleethub-core 1.2.0 → 1.3.1
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/node/fleethub_core.d.ts +475 -576
- package/node/fleethub_core.js +438 -401
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +126 -122
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +475 -576
- package/pkg/fleethub_core_bg.js +439 -402
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +126 -122
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import * as wasm from './fleethub_core_bg.wasm';
|
|
2
2
|
|
|
3
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
4
|
+
|
|
5
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
6
|
+
|
|
7
|
+
cachedTextDecoder.decode();
|
|
8
|
+
|
|
9
|
+
let cachegetUint8Memory0 = null;
|
|
10
|
+
function getUint8Memory0() {
|
|
11
|
+
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
12
|
+
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
13
|
+
}
|
|
14
|
+
return cachegetUint8Memory0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function getStringFromWasm0(ptr, len) {
|
|
18
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
19
|
+
}
|
|
20
|
+
|
|
3
21
|
const heap = new Array(32).fill(undefined);
|
|
4
22
|
|
|
5
23
|
heap.push(undefined, null, true, false);
|
|
6
24
|
|
|
7
|
-
function getObject(idx) { return heap[idx]; }
|
|
8
|
-
|
|
9
25
|
let heap_next = heap.length;
|
|
10
26
|
|
|
27
|
+
function addHeapObject(obj) {
|
|
28
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
+
const idx = heap_next;
|
|
30
|
+
heap_next = heap[idx];
|
|
31
|
+
|
|
32
|
+
heap[idx] = obj;
|
|
33
|
+
return idx;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function getObject(idx) { return heap[idx]; }
|
|
37
|
+
|
|
11
38
|
function dropObject(idx) {
|
|
12
39
|
if (idx < 36) return;
|
|
13
40
|
heap[idx] = heap_next;
|
|
@@ -22,14 +49,6 @@ function takeObject(idx) {
|
|
|
22
49
|
|
|
23
50
|
let WASM_VECTOR_LEN = 0;
|
|
24
51
|
|
|
25
|
-
let cachegetUint8Memory0 = null;
|
|
26
|
-
function getUint8Memory0() {
|
|
27
|
-
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
28
|
-
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
29
|
-
}
|
|
30
|
-
return cachegetUint8Memory0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
52
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
34
53
|
|
|
35
54
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
@@ -93,25 +112,6 @@ function getInt32Memory0() {
|
|
|
93
112
|
return cachegetInt32Memory0;
|
|
94
113
|
}
|
|
95
114
|
|
|
96
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
97
|
-
|
|
98
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
99
|
-
|
|
100
|
-
cachedTextDecoder.decode();
|
|
101
|
-
|
|
102
|
-
function getStringFromWasm0(ptr, len) {
|
|
103
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function addHeapObject(obj) {
|
|
107
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
108
|
-
const idx = heap_next;
|
|
109
|
-
heap_next = heap[idx];
|
|
110
|
-
|
|
111
|
-
heap[idx] = obj;
|
|
112
|
-
return idx;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
115
|
function debugString(val) {
|
|
116
116
|
// primitive types
|
|
117
117
|
const type = typeof val;
|
|
@@ -188,6 +188,14 @@ function isLikeNone(x) {
|
|
|
188
188
|
return x === undefined || x === null;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
let cachegetFloat64Memory0 = null;
|
|
192
|
+
function getFloat64Memory0() {
|
|
193
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
194
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
195
|
+
}
|
|
196
|
+
return cachegetFloat64Memory0;
|
|
197
|
+
}
|
|
198
|
+
|
|
191
199
|
const u32CvtShim = new Uint32Array(2);
|
|
192
200
|
|
|
193
201
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
@@ -210,14 +218,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
210
218
|
return result;
|
|
211
219
|
}
|
|
212
220
|
|
|
213
|
-
let cachegetFloat64Memory0 = null;
|
|
214
|
-
function getFloat64Memory0() {
|
|
215
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
216
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
217
|
-
}
|
|
218
|
-
return cachegetFloat64Memory0;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
221
|
let cachegetUint16Memory0 = null;
|
|
222
222
|
function getUint16Memory0() {
|
|
223
223
|
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -235,19 +235,16 @@ function getArrayU16FromWasm0(ptr, len) {
|
|
|
235
235
|
*/
|
|
236
236
|
export function air_squadron_can_equip(gear) {
|
|
237
237
|
_assertClass(gear, Gear);
|
|
238
|
-
|
|
238
|
+
const ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
239
239
|
return ret !== 0;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
243
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
244
|
-
}
|
|
245
242
|
/**
|
|
246
243
|
* @param {OrgType} org_type
|
|
247
244
|
* @returns {boolean}
|
|
248
245
|
*/
|
|
249
246
|
export function org_type_is_single(org_type) {
|
|
250
|
-
|
|
247
|
+
const ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
251
248
|
return ret !== 0;
|
|
252
249
|
}
|
|
253
250
|
|
|
@@ -256,7 +253,7 @@ export function org_type_is_single(org_type) {
|
|
|
256
253
|
* @returns {Formation}
|
|
257
254
|
*/
|
|
258
255
|
export function org_type_default_formation(org_type) {
|
|
259
|
-
|
|
256
|
+
const ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
260
257
|
return takeObject(ret);
|
|
261
258
|
}
|
|
262
259
|
|
|
@@ -265,7 +262,7 @@ export function org_type_default_formation(org_type) {
|
|
|
265
262
|
* @returns {boolean}
|
|
266
263
|
*/
|
|
267
264
|
export function org_type_is_player(org_type) {
|
|
268
|
-
|
|
265
|
+
const ret = wasm.org_type_is_player(addHeapObject(org_type));
|
|
269
266
|
return ret !== 0;
|
|
270
267
|
}
|
|
271
268
|
|
|
@@ -274,7 +271,7 @@ export function org_type_is_player(org_type) {
|
|
|
274
271
|
* @returns {Side}
|
|
275
272
|
*/
|
|
276
273
|
export function org_type_side(org_type) {
|
|
277
|
-
|
|
274
|
+
const ret = wasm.org_type_side(addHeapObject(org_type));
|
|
278
275
|
return takeObject(ret);
|
|
279
276
|
}
|
|
280
277
|
|
|
@@ -284,6 +281,17 @@ export function set_panic_hook() {
|
|
|
284
281
|
wasm.set_panic_hook();
|
|
285
282
|
}
|
|
286
283
|
|
|
284
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
285
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
289
|
+
const ptr = malloc(arg.length * 1);
|
|
290
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
291
|
+
WASM_VECTOR_LEN = arg.length;
|
|
292
|
+
return ptr;
|
|
293
|
+
}
|
|
294
|
+
|
|
287
295
|
function passArray16ToWasm0(arg, malloc) {
|
|
288
296
|
const ptr = malloc(arg.length * 2);
|
|
289
297
|
getUint16Memory0().set(arg, ptr / 2);
|
|
@@ -340,8 +348,8 @@ export class AirSquadron {
|
|
|
340
348
|
* @param {string} arg0
|
|
341
349
|
*/
|
|
342
350
|
set id(arg0) {
|
|
343
|
-
|
|
344
|
-
|
|
351
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
345
353
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
346
354
|
}
|
|
347
355
|
/**
|
|
@@ -372,7 +380,7 @@ export class AirSquadron {
|
|
|
372
380
|
/**
|
|
373
381
|
*/
|
|
374
382
|
get mode() {
|
|
375
|
-
|
|
383
|
+
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
376
384
|
return takeObject(ret);
|
|
377
385
|
}
|
|
378
386
|
/**
|
|
@@ -386,9 +394,9 @@ export class AirSquadron {
|
|
|
386
394
|
* @returns {Gear | undefined}
|
|
387
395
|
*/
|
|
388
396
|
get_gear(key) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
397
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
398
|
+
const len0 = WASM_VECTOR_LEN;
|
|
399
|
+
const ret = wasm.airsquadron_get_gear(this.ptr, ptr0, len0);
|
|
392
400
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
393
401
|
}
|
|
394
402
|
/**
|
|
@@ -397,7 +405,7 @@ export class AirSquadron {
|
|
|
397
405
|
*/
|
|
398
406
|
can_equip(gear) {
|
|
399
407
|
_assertClass(gear, Gear);
|
|
400
|
-
|
|
408
|
+
const ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
401
409
|
return ret !== 0;
|
|
402
410
|
}
|
|
403
411
|
/**
|
|
@@ -442,14 +450,14 @@ export class AirSquadron {
|
|
|
442
450
|
* @returns {number}
|
|
443
451
|
*/
|
|
444
452
|
fighter_power() {
|
|
445
|
-
|
|
453
|
+
const ret = wasm.airsquadron_fighter_power(this.ptr);
|
|
446
454
|
return ret;
|
|
447
455
|
}
|
|
448
456
|
/**
|
|
449
457
|
* @returns {number}
|
|
450
458
|
*/
|
|
451
459
|
interception_power() {
|
|
452
|
-
|
|
460
|
+
const ret = wasm.airsquadron_interception_power(this.ptr);
|
|
453
461
|
return ret;
|
|
454
462
|
}
|
|
455
463
|
/**
|
|
@@ -457,7 +465,7 @@ export class AirSquadron {
|
|
|
457
465
|
* @returns {number}
|
|
458
466
|
*/
|
|
459
467
|
radius() {
|
|
460
|
-
|
|
468
|
+
const ret = wasm.airsquadron_radius(this.ptr);
|
|
461
469
|
return ret;
|
|
462
470
|
}
|
|
463
471
|
}
|
|
@@ -495,7 +503,7 @@ export class Analyzer {
|
|
|
495
503
|
*/
|
|
496
504
|
analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
497
505
|
_assertClass(comp, Comp);
|
|
498
|
-
|
|
506
|
+
const ret = wasm.analyzer_analyze_anti_air(this.ptr, comp.ptr, addHeapObject(formation), adjusted_anti_air_resist, fleet_anti_air_resist, isLikeNone(aaci) ? 0xFFFFFF : aaci);
|
|
499
507
|
return takeObject(ret);
|
|
500
508
|
}
|
|
501
509
|
/**
|
|
@@ -504,7 +512,7 @@ export class Analyzer {
|
|
|
504
512
|
*/
|
|
505
513
|
analyze_day_cutin(comp) {
|
|
506
514
|
_assertClass(comp, Comp);
|
|
507
|
-
|
|
515
|
+
const ret = wasm.analyzer_analyze_day_cutin(this.ptr, comp.ptr);
|
|
508
516
|
return takeObject(ret);
|
|
509
517
|
}
|
|
510
518
|
/**
|
|
@@ -515,7 +523,7 @@ export class Analyzer {
|
|
|
515
523
|
*/
|
|
516
524
|
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
517
525
|
_assertClass(comp, Comp);
|
|
518
|
-
|
|
526
|
+
const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
|
|
519
527
|
return takeObject(ret);
|
|
520
528
|
}
|
|
521
529
|
/**
|
|
@@ -524,7 +532,7 @@ export class Analyzer {
|
|
|
524
532
|
*/
|
|
525
533
|
analyze_contact_chance(comp) {
|
|
526
534
|
_assertClass(comp, Comp);
|
|
527
|
-
|
|
535
|
+
const ret = wasm.analyzer_analyze_contact_chance(this.ptr, comp.ptr);
|
|
528
536
|
return takeObject(ret);
|
|
529
537
|
}
|
|
530
538
|
/**
|
|
@@ -536,7 +544,7 @@ export class Analyzer {
|
|
|
536
544
|
analyze_warfare(params, attacker, target) {
|
|
537
545
|
_assertClass(attacker, Ship);
|
|
538
546
|
_assertClass(target, Ship);
|
|
539
|
-
|
|
547
|
+
const ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
540
548
|
return takeObject(ret);
|
|
541
549
|
}
|
|
542
550
|
/**
|
|
@@ -546,7 +554,7 @@ export class Analyzer {
|
|
|
546
554
|
*/
|
|
547
555
|
analyze_fleet_cutin(comp, engagement) {
|
|
548
556
|
_assertClass(comp, Comp);
|
|
549
|
-
|
|
557
|
+
const ret = wasm.analyzer_analyze_fleet_cutin(this.ptr, comp.ptr, addHeapObject(engagement));
|
|
550
558
|
return takeObject(ret);
|
|
551
559
|
}
|
|
552
560
|
}
|
|
@@ -577,7 +585,7 @@ export class Comp {
|
|
|
577
585
|
/**
|
|
578
586
|
*/
|
|
579
587
|
get org_type() {
|
|
580
|
-
|
|
588
|
+
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
581
589
|
return takeObject(ret);
|
|
582
590
|
}
|
|
583
591
|
/**
|
|
@@ -589,7 +597,7 @@ export class Comp {
|
|
|
589
597
|
/**
|
|
590
598
|
*/
|
|
591
599
|
get hq_level() {
|
|
592
|
-
|
|
600
|
+
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
593
601
|
return ret;
|
|
594
602
|
}
|
|
595
603
|
/**
|
|
@@ -601,7 +609,7 @@ export class Comp {
|
|
|
601
609
|
/**
|
|
602
610
|
*/
|
|
603
611
|
get main() {
|
|
604
|
-
|
|
612
|
+
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
605
613
|
return Fleet.__wrap(ret);
|
|
606
614
|
}
|
|
607
615
|
/**
|
|
@@ -616,7 +624,7 @@ export class Comp {
|
|
|
616
624
|
/**
|
|
617
625
|
*/
|
|
618
626
|
get escort() {
|
|
619
|
-
|
|
627
|
+
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
620
628
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
621
629
|
}
|
|
622
630
|
/**
|
|
@@ -634,7 +642,7 @@ export class Comp {
|
|
|
634
642
|
/**
|
|
635
643
|
*/
|
|
636
644
|
get route_sup() {
|
|
637
|
-
|
|
645
|
+
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
638
646
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
639
647
|
}
|
|
640
648
|
/**
|
|
@@ -652,7 +660,7 @@ export class Comp {
|
|
|
652
660
|
/**
|
|
653
661
|
*/
|
|
654
662
|
get boss_sup() {
|
|
655
|
-
|
|
663
|
+
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
656
664
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
657
665
|
}
|
|
658
666
|
/**
|
|
@@ -671,28 +679,35 @@ export class Comp {
|
|
|
671
679
|
* @returns {Side}
|
|
672
680
|
*/
|
|
673
681
|
side() {
|
|
674
|
-
|
|
682
|
+
const ret = wasm.comp_side(this.ptr);
|
|
675
683
|
return takeObject(ret);
|
|
676
684
|
}
|
|
677
685
|
/**
|
|
678
686
|
* @returns {boolean}
|
|
679
687
|
*/
|
|
680
688
|
is_combined() {
|
|
681
|
-
|
|
689
|
+
const ret = wasm.comp_is_combined(this.ptr);
|
|
690
|
+
return ret !== 0;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* @returns {boolean}
|
|
694
|
+
*/
|
|
695
|
+
is_player() {
|
|
696
|
+
const ret = wasm.comp_is_player(this.ptr);
|
|
682
697
|
return ret !== 0;
|
|
683
698
|
}
|
|
684
699
|
/**
|
|
685
700
|
* @returns {boolean}
|
|
686
701
|
*/
|
|
687
702
|
is_enemy() {
|
|
688
|
-
|
|
703
|
+
const ret = wasm.comp_is_enemy(this.ptr);
|
|
689
704
|
return ret !== 0;
|
|
690
705
|
}
|
|
691
706
|
/**
|
|
692
707
|
* @returns {CompMeta}
|
|
693
708
|
*/
|
|
694
709
|
meta() {
|
|
695
|
-
|
|
710
|
+
const ret = wasm.comp_meta(this.ptr);
|
|
696
711
|
return takeObject(ret);
|
|
697
712
|
}
|
|
698
713
|
/**
|
|
@@ -721,9 +736,9 @@ export class Comp {
|
|
|
721
736
|
* @returns {Ship | undefined}
|
|
722
737
|
*/
|
|
723
738
|
get_ship_with_clone(ft, key) {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
739
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
740
|
+
const len0 = WASM_VECTOR_LEN;
|
|
741
|
+
const ret = wasm.comp_get_ship_with_clone(this.ptr, addHeapObject(ft), ptr0, len0);
|
|
727
742
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
728
743
|
}
|
|
729
744
|
/**
|
|
@@ -734,8 +749,8 @@ export class Comp {
|
|
|
734
749
|
get_ship_entity_id(ft, key) {
|
|
735
750
|
try {
|
|
736
751
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
737
|
-
|
|
738
|
-
|
|
752
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
|
+
const len0 = WASM_VECTOR_LEN;
|
|
739
754
|
wasm.comp_get_ship_entity_id(retptr, this.ptr, addHeapObject(ft), ptr0, len0);
|
|
740
755
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
741
756
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -754,16 +769,16 @@ export class Comp {
|
|
|
754
769
|
* @returns {Ship | undefined}
|
|
755
770
|
*/
|
|
756
771
|
get_ship_by_eid_with_clone(id) {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
772
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
773
|
+
const len0 = WASM_VECTOR_LEN;
|
|
774
|
+
const ret = wasm.comp_get_ship_by_eid_with_clone(this.ptr, ptr0, len0);
|
|
760
775
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
761
776
|
}
|
|
762
777
|
/**
|
|
763
778
|
* @returns {Formation}
|
|
764
779
|
*/
|
|
765
780
|
default_formation() {
|
|
766
|
-
|
|
781
|
+
const ret = wasm.comp_default_formation(this.ptr);
|
|
767
782
|
return takeObject(ret);
|
|
768
783
|
}
|
|
769
784
|
/**
|
|
@@ -772,7 +787,7 @@ export class Comp {
|
|
|
772
787
|
* @returns {number}
|
|
773
788
|
*/
|
|
774
789
|
fleet_anti_air(formation_mod) {
|
|
775
|
-
|
|
790
|
+
const ret = wasm.comp_fleet_anti_air(this.ptr, formation_mod);
|
|
776
791
|
return ret;
|
|
777
792
|
}
|
|
778
793
|
/**
|
|
@@ -813,9 +828,19 @@ export class Comp {
|
|
|
813
828
|
* @returns {number}
|
|
814
829
|
*/
|
|
815
830
|
transport_point() {
|
|
816
|
-
|
|
831
|
+
const ret = wasm.comp_transport_point(this.ptr);
|
|
817
832
|
return ret;
|
|
818
833
|
}
|
|
834
|
+
/**
|
|
835
|
+
* @param {Ship} ship
|
|
836
|
+
* @param {Formation} formation
|
|
837
|
+
* @returns {WarfareShipEnvironment}
|
|
838
|
+
*/
|
|
839
|
+
create_warfare_ship_environment(ship, formation) {
|
|
840
|
+
_assertClass(ship, Ship);
|
|
841
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
842
|
+
return takeObject(ret);
|
|
843
|
+
}
|
|
819
844
|
}
|
|
820
845
|
|
|
821
846
|
const FhCoreFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fhcore_free(ptr));
|
|
@@ -865,7 +890,7 @@ export class FhCore {
|
|
|
865
890
|
* @returns {Gear | undefined}
|
|
866
891
|
*/
|
|
867
892
|
create_gear(input) {
|
|
868
|
-
|
|
893
|
+
const ret = wasm.fhcore_create_gear(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
869
894
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
870
895
|
}
|
|
871
896
|
/**
|
|
@@ -873,7 +898,7 @@ export class FhCore {
|
|
|
873
898
|
* @returns {Ship | undefined}
|
|
874
899
|
*/
|
|
875
900
|
create_ship(input) {
|
|
876
|
-
|
|
901
|
+
const ret = wasm.fhcore_create_ship(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
877
902
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
878
903
|
}
|
|
879
904
|
/**
|
|
@@ -881,7 +906,7 @@ export class FhCore {
|
|
|
881
906
|
* @returns {AirSquadron}
|
|
882
907
|
*/
|
|
883
908
|
create_air_squadron(input) {
|
|
884
|
-
|
|
909
|
+
const ret = wasm.fhcore_create_air_squadron(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
885
910
|
return AirSquadron.__wrap(ret);
|
|
886
911
|
}
|
|
887
912
|
/**
|
|
@@ -889,7 +914,7 @@ export class FhCore {
|
|
|
889
914
|
* @returns {Fleet}
|
|
890
915
|
*/
|
|
891
916
|
create_fleet(input) {
|
|
892
|
-
|
|
917
|
+
const ret = wasm.fhcore_create_fleet(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
893
918
|
return Fleet.__wrap(ret);
|
|
894
919
|
}
|
|
895
920
|
/**
|
|
@@ -897,7 +922,7 @@ export class FhCore {
|
|
|
897
922
|
* @returns {Org | undefined}
|
|
898
923
|
*/
|
|
899
924
|
create_org(input) {
|
|
900
|
-
|
|
925
|
+
const ret = wasm.fhcore_create_org(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
901
926
|
return ret === 0 ? undefined : Org.__wrap(ret);
|
|
902
927
|
}
|
|
903
928
|
/**
|
|
@@ -905,7 +930,7 @@ export class FhCore {
|
|
|
905
930
|
* @returns {Ship | undefined}
|
|
906
931
|
*/
|
|
907
932
|
create_ship_by_id(ship_id) {
|
|
908
|
-
|
|
933
|
+
const ret = wasm.fhcore_create_ship_by_id(this.ptr, ship_id);
|
|
909
934
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
910
935
|
}
|
|
911
936
|
/**
|
|
@@ -914,25 +939,25 @@ export class FhCore {
|
|
|
914
939
|
* @returns {Comp}
|
|
915
940
|
*/
|
|
916
941
|
create_comp_by_map_enemy(main, escort) {
|
|
917
|
-
|
|
918
|
-
|
|
942
|
+
const ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
943
|
+
const len0 = WASM_VECTOR_LEN;
|
|
919
944
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
920
945
|
var len1 = WASM_VECTOR_LEN;
|
|
921
|
-
|
|
946
|
+
const ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
922
947
|
return Comp.__wrap(ret);
|
|
923
948
|
}
|
|
924
949
|
/**
|
|
925
950
|
* @returns {Ship}
|
|
926
951
|
*/
|
|
927
952
|
create_default_ship() {
|
|
928
|
-
|
|
953
|
+
const ret = wasm.fhcore_create_default_ship(this.ptr);
|
|
929
954
|
return Ship.__wrap(ret);
|
|
930
955
|
}
|
|
931
956
|
/**
|
|
932
957
|
* @returns {Analyzer}
|
|
933
958
|
*/
|
|
934
959
|
create_analyzer() {
|
|
935
|
-
|
|
960
|
+
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
936
961
|
return Analyzer.__wrap(ret);
|
|
937
962
|
}
|
|
938
963
|
/**
|
|
@@ -1002,8 +1027,8 @@ export class Fleet {
|
|
|
1002
1027
|
* @param {string} arg0
|
|
1003
1028
|
*/
|
|
1004
1029
|
set id(arg0) {
|
|
1005
|
-
|
|
1006
|
-
|
|
1030
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1031
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1007
1032
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
1008
1033
|
}
|
|
1009
1034
|
/**
|
|
@@ -1034,7 +1059,7 @@ export class Fleet {
|
|
|
1034
1059
|
/**
|
|
1035
1060
|
*/
|
|
1036
1061
|
get len() {
|
|
1037
|
-
|
|
1062
|
+
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
1038
1063
|
return ret >>> 0;
|
|
1039
1064
|
}
|
|
1040
1065
|
/**
|
|
@@ -1047,7 +1072,7 @@ export class Fleet {
|
|
|
1047
1072
|
* @returns {FleetMeta}
|
|
1048
1073
|
*/
|
|
1049
1074
|
meta() {
|
|
1050
|
-
|
|
1075
|
+
const ret = wasm.fleet_meta(this.ptr);
|
|
1051
1076
|
return takeObject(ret);
|
|
1052
1077
|
}
|
|
1053
1078
|
/**
|
|
@@ -1120,9 +1145,9 @@ export class Fleet {
|
|
|
1120
1145
|
* @returns {number | undefined}
|
|
1121
1146
|
*/
|
|
1122
1147
|
get_damage_bound(id, state) {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1148
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1149
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1150
|
+
const ret = wasm.fleet_get_damage_bound(this.ptr, ptr0, len0, addHeapObject(state));
|
|
1126
1151
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1127
1152
|
}
|
|
1128
1153
|
/**
|
|
@@ -1132,9 +1157,9 @@ export class Fleet {
|
|
|
1132
1157
|
* @returns {number | undefined}
|
|
1133
1158
|
*/
|
|
1134
1159
|
get_remaining_fuel(id, rate, ceil) {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1160
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1161
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1162
|
+
const ret = wasm.fleet_get_remaining_fuel(this.ptr, ptr0, len0, rate, ceil);
|
|
1138
1163
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1139
1164
|
}
|
|
1140
1165
|
/**
|
|
@@ -1144,16 +1169,16 @@ export class Fleet {
|
|
|
1144
1169
|
* @returns {number | undefined}
|
|
1145
1170
|
*/
|
|
1146
1171
|
get_remaining_ammo(id, rate, ceil) {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1172
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1173
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1174
|
+
const ret = wasm.fleet_get_remaining_ammo(this.ptr, ptr0, len0, rate, ceil);
|
|
1150
1175
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1151
1176
|
}
|
|
1152
1177
|
/**
|
|
1153
1178
|
* @returns {number}
|
|
1154
1179
|
*/
|
|
1155
1180
|
count_ships() {
|
|
1156
|
-
|
|
1181
|
+
const ret = wasm.fleet_count_ships(this.ptr);
|
|
1157
1182
|
return ret >>> 0;
|
|
1158
1183
|
}
|
|
1159
1184
|
/**
|
|
@@ -1161,9 +1186,9 @@ export class Fleet {
|
|
|
1161
1186
|
* @returns {Ship | undefined}
|
|
1162
1187
|
*/
|
|
1163
1188
|
get_ship(key) {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1189
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1190
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1191
|
+
const ret = wasm.fleet_get_ship(this.ptr, ptr0, len0);
|
|
1167
1192
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1168
1193
|
}
|
|
1169
1194
|
/**
|
|
@@ -1232,7 +1257,7 @@ export class Fleet {
|
|
|
1232
1257
|
* @returns {number}
|
|
1233
1258
|
*/
|
|
1234
1259
|
expedition_bonus() {
|
|
1235
|
-
|
|
1260
|
+
const ret = wasm.fleet_expedition_bonus(this.ptr);
|
|
1236
1261
|
return ret;
|
|
1237
1262
|
}
|
|
1238
1263
|
/**
|
|
@@ -1242,8 +1267,8 @@ export class Fleet {
|
|
|
1242
1267
|
sum_ship_stat_by(key) {
|
|
1243
1268
|
try {
|
|
1244
1269
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1245
|
-
|
|
1246
|
-
|
|
1270
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1271
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1247
1272
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1248
1273
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1249
1274
|
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
@@ -1300,8 +1325,8 @@ export class Gear {
|
|
|
1300
1325
|
* @param {string} arg0
|
|
1301
1326
|
*/
|
|
1302
1327
|
set id(arg0) {
|
|
1303
|
-
|
|
1304
|
-
|
|
1328
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1329
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1305
1330
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1306
1331
|
}
|
|
1307
1332
|
/**
|
|
@@ -1332,7 +1357,7 @@ export class Gear {
|
|
|
1332
1357
|
/**
|
|
1333
1358
|
*/
|
|
1334
1359
|
get gear_id() {
|
|
1335
|
-
|
|
1360
|
+
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1336
1361
|
return ret;
|
|
1337
1362
|
}
|
|
1338
1363
|
/**
|
|
@@ -1344,7 +1369,7 @@ export class Gear {
|
|
|
1344
1369
|
/**
|
|
1345
1370
|
*/
|
|
1346
1371
|
get stars() {
|
|
1347
|
-
|
|
1372
|
+
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1348
1373
|
return ret;
|
|
1349
1374
|
}
|
|
1350
1375
|
/**
|
|
@@ -1356,7 +1381,7 @@ export class Gear {
|
|
|
1356
1381
|
/**
|
|
1357
1382
|
*/
|
|
1358
1383
|
get exp() {
|
|
1359
|
-
|
|
1384
|
+
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1360
1385
|
return ret;
|
|
1361
1386
|
}
|
|
1362
1387
|
/**
|
|
@@ -1368,7 +1393,7 @@ export class Gear {
|
|
|
1368
1393
|
/**
|
|
1369
1394
|
*/
|
|
1370
1395
|
get default_exp() {
|
|
1371
|
-
|
|
1396
|
+
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1372
1397
|
return ret;
|
|
1373
1398
|
}
|
|
1374
1399
|
/**
|
|
@@ -1395,14 +1420,37 @@ export class Gear {
|
|
|
1395
1420
|
* @param {string} arg0
|
|
1396
1421
|
*/
|
|
1397
1422
|
set name(arg0) {
|
|
1398
|
-
|
|
1399
|
-
|
|
1423
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1424
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1400
1425
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1401
1426
|
}
|
|
1402
1427
|
/**
|
|
1403
1428
|
*/
|
|
1429
|
+
get types() {
|
|
1430
|
+
try {
|
|
1431
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1432
|
+
wasm.__wbg_get_gear_types(retptr, this.ptr);
|
|
1433
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1434
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1435
|
+
var v0 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1436
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
1437
|
+
return v0;
|
|
1438
|
+
} finally {
|
|
1439
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* @param {Uint8Array} arg0
|
|
1444
|
+
*/
|
|
1445
|
+
set types(arg0) {
|
|
1446
|
+
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1447
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1448
|
+
wasm.__wbg_set_gear_types(this.ptr, ptr0, len0);
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
*/
|
|
1404
1452
|
get gear_type() {
|
|
1405
|
-
|
|
1453
|
+
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1406
1454
|
return takeObject(ret);
|
|
1407
1455
|
}
|
|
1408
1456
|
/**
|
|
@@ -1414,7 +1462,7 @@ export class Gear {
|
|
|
1414
1462
|
/**
|
|
1415
1463
|
*/
|
|
1416
1464
|
get max_hp() {
|
|
1417
|
-
|
|
1465
|
+
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1418
1466
|
return ret;
|
|
1419
1467
|
}
|
|
1420
1468
|
/**
|
|
@@ -1426,7 +1474,7 @@ export class Gear {
|
|
|
1426
1474
|
/**
|
|
1427
1475
|
*/
|
|
1428
1476
|
get firepower() {
|
|
1429
|
-
|
|
1477
|
+
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1430
1478
|
return ret;
|
|
1431
1479
|
}
|
|
1432
1480
|
/**
|
|
@@ -1438,7 +1486,7 @@ export class Gear {
|
|
|
1438
1486
|
/**
|
|
1439
1487
|
*/
|
|
1440
1488
|
get armor() {
|
|
1441
|
-
|
|
1489
|
+
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1442
1490
|
return ret;
|
|
1443
1491
|
}
|
|
1444
1492
|
/**
|
|
@@ -1450,7 +1498,7 @@ export class Gear {
|
|
|
1450
1498
|
/**
|
|
1451
1499
|
*/
|
|
1452
1500
|
get torpedo() {
|
|
1453
|
-
|
|
1501
|
+
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1454
1502
|
return ret;
|
|
1455
1503
|
}
|
|
1456
1504
|
/**
|
|
@@ -1462,7 +1510,7 @@ export class Gear {
|
|
|
1462
1510
|
/**
|
|
1463
1511
|
*/
|
|
1464
1512
|
get anti_air() {
|
|
1465
|
-
|
|
1513
|
+
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1466
1514
|
return ret;
|
|
1467
1515
|
}
|
|
1468
1516
|
/**
|
|
@@ -1474,7 +1522,7 @@ export class Gear {
|
|
|
1474
1522
|
/**
|
|
1475
1523
|
*/
|
|
1476
1524
|
get speed() {
|
|
1477
|
-
|
|
1525
|
+
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1478
1526
|
return ret;
|
|
1479
1527
|
}
|
|
1480
1528
|
/**
|
|
@@ -1486,7 +1534,7 @@ export class Gear {
|
|
|
1486
1534
|
/**
|
|
1487
1535
|
*/
|
|
1488
1536
|
get bombing() {
|
|
1489
|
-
|
|
1537
|
+
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1490
1538
|
return ret;
|
|
1491
1539
|
}
|
|
1492
1540
|
/**
|
|
@@ -1498,7 +1546,7 @@ export class Gear {
|
|
|
1498
1546
|
/**
|
|
1499
1547
|
*/
|
|
1500
1548
|
get asw() {
|
|
1501
|
-
|
|
1549
|
+
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1502
1550
|
return ret;
|
|
1503
1551
|
}
|
|
1504
1552
|
/**
|
|
@@ -1510,7 +1558,7 @@ export class Gear {
|
|
|
1510
1558
|
/**
|
|
1511
1559
|
*/
|
|
1512
1560
|
get los() {
|
|
1513
|
-
|
|
1561
|
+
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1514
1562
|
return ret;
|
|
1515
1563
|
}
|
|
1516
1564
|
/**
|
|
@@ -1522,7 +1570,7 @@ export class Gear {
|
|
|
1522
1570
|
/**
|
|
1523
1571
|
*/
|
|
1524
1572
|
get luck() {
|
|
1525
|
-
|
|
1573
|
+
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1526
1574
|
return ret;
|
|
1527
1575
|
}
|
|
1528
1576
|
/**
|
|
@@ -1534,7 +1582,7 @@ export class Gear {
|
|
|
1534
1582
|
/**
|
|
1535
1583
|
*/
|
|
1536
1584
|
get accuracy() {
|
|
1537
|
-
|
|
1585
|
+
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1538
1586
|
return ret;
|
|
1539
1587
|
}
|
|
1540
1588
|
/**
|
|
@@ -1546,7 +1594,7 @@ export class Gear {
|
|
|
1546
1594
|
/**
|
|
1547
1595
|
*/
|
|
1548
1596
|
get evasion() {
|
|
1549
|
-
|
|
1597
|
+
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1550
1598
|
return ret;
|
|
1551
1599
|
}
|
|
1552
1600
|
/**
|
|
@@ -1558,7 +1606,7 @@ export class Gear {
|
|
|
1558
1606
|
/**
|
|
1559
1607
|
*/
|
|
1560
1608
|
get range() {
|
|
1561
|
-
|
|
1609
|
+
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1562
1610
|
return ret;
|
|
1563
1611
|
}
|
|
1564
1612
|
/**
|
|
@@ -1570,7 +1618,7 @@ export class Gear {
|
|
|
1570
1618
|
/**
|
|
1571
1619
|
*/
|
|
1572
1620
|
get radius() {
|
|
1573
|
-
|
|
1621
|
+
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1574
1622
|
return ret;
|
|
1575
1623
|
}
|
|
1576
1624
|
/**
|
|
@@ -1582,7 +1630,7 @@ export class Gear {
|
|
|
1582
1630
|
/**
|
|
1583
1631
|
*/
|
|
1584
1632
|
get cost() {
|
|
1585
|
-
|
|
1633
|
+
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1586
1634
|
return ret;
|
|
1587
1635
|
}
|
|
1588
1636
|
/**
|
|
@@ -1594,7 +1642,7 @@ export class Gear {
|
|
|
1594
1642
|
/**
|
|
1595
1643
|
*/
|
|
1596
1644
|
get improvable() {
|
|
1597
|
-
|
|
1645
|
+
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1598
1646
|
return ret !== 0;
|
|
1599
1647
|
}
|
|
1600
1648
|
/**
|
|
@@ -1606,7 +1654,7 @@ export class Gear {
|
|
|
1606
1654
|
/**
|
|
1607
1655
|
*/
|
|
1608
1656
|
get adjusted_anti_air_resistance() {
|
|
1609
|
-
|
|
1657
|
+
const ret = wasm.__wbg_get_gear_adjusted_anti_air_resistance(this.ptr);
|
|
1610
1658
|
return ret;
|
|
1611
1659
|
}
|
|
1612
1660
|
/**
|
|
@@ -1618,7 +1666,7 @@ export class Gear {
|
|
|
1618
1666
|
/**
|
|
1619
1667
|
*/
|
|
1620
1668
|
get fleet_anti_air_resistance() {
|
|
1621
|
-
|
|
1669
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1622
1670
|
return ret;
|
|
1623
1671
|
}
|
|
1624
1672
|
/**
|
|
@@ -1631,35 +1679,28 @@ export class Gear {
|
|
|
1631
1679
|
* @returns {Gear}
|
|
1632
1680
|
*/
|
|
1633
1681
|
static default() {
|
|
1634
|
-
|
|
1682
|
+
const ret = wasm.gear_default();
|
|
1635
1683
|
return Gear.__wrap(ret);
|
|
1636
1684
|
}
|
|
1637
1685
|
/**
|
|
1638
|
-
* @returns {any}
|
|
1639
|
-
*/
|
|
1640
|
-
get types() {
|
|
1641
|
-
var ret = wasm.gear_types(this.ptr);
|
|
1642
|
-
return takeObject(ret);
|
|
1643
|
-
}
|
|
1644
|
-
/**
|
|
1645
1686
|
* @returns {number}
|
|
1646
1687
|
*/
|
|
1647
1688
|
get gear_type_id() {
|
|
1648
|
-
|
|
1689
|
+
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1649
1690
|
return ret;
|
|
1650
1691
|
}
|
|
1651
1692
|
/**
|
|
1652
1693
|
* @returns {number}
|
|
1653
1694
|
*/
|
|
1654
1695
|
get special_type_id() {
|
|
1655
|
-
|
|
1696
|
+
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1656
1697
|
return ret;
|
|
1657
1698
|
}
|
|
1658
1699
|
/**
|
|
1659
1700
|
* @returns {number}
|
|
1660
1701
|
*/
|
|
1661
1702
|
get icon_id() {
|
|
1662
|
-
|
|
1703
|
+
const ret = wasm.gear_icon_id(this.ptr);
|
|
1663
1704
|
return ret;
|
|
1664
1705
|
}
|
|
1665
1706
|
/**
|
|
@@ -1667,63 +1708,63 @@ export class Gear {
|
|
|
1667
1708
|
* @returns {boolean}
|
|
1668
1709
|
*/
|
|
1669
1710
|
has_attr(attr) {
|
|
1670
|
-
|
|
1711
|
+
const ret = wasm.gear_has_attr(this.ptr, addHeapObject(attr));
|
|
1671
1712
|
return ret !== 0;
|
|
1672
1713
|
}
|
|
1673
1714
|
/**
|
|
1674
1715
|
* @returns {GearCategory}
|
|
1675
1716
|
*/
|
|
1676
1717
|
category() {
|
|
1677
|
-
|
|
1718
|
+
const ret = wasm.gear_category(this.ptr);
|
|
1678
1719
|
return takeObject(ret);
|
|
1679
1720
|
}
|
|
1680
1721
|
/**
|
|
1681
1722
|
* @returns {number}
|
|
1682
1723
|
*/
|
|
1683
1724
|
get ace() {
|
|
1684
|
-
|
|
1725
|
+
const ret = wasm.gear_ace(this.ptr);
|
|
1685
1726
|
return ret;
|
|
1686
1727
|
}
|
|
1687
1728
|
/**
|
|
1688
1729
|
* @returns {number}
|
|
1689
1730
|
*/
|
|
1690
1731
|
get anti_bomber() {
|
|
1691
|
-
|
|
1732
|
+
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1692
1733
|
return ret;
|
|
1693
1734
|
}
|
|
1694
1735
|
/**
|
|
1695
1736
|
* @returns {number}
|
|
1696
1737
|
*/
|
|
1697
1738
|
get interception() {
|
|
1698
|
-
|
|
1739
|
+
const ret = wasm.gear_interception(this.ptr);
|
|
1699
1740
|
return ret;
|
|
1700
1741
|
}
|
|
1701
1742
|
/**
|
|
1702
1743
|
* @returns {boolean}
|
|
1703
1744
|
*/
|
|
1704
1745
|
is_carrier_shelling_plane() {
|
|
1705
|
-
|
|
1746
|
+
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1706
1747
|
return ret !== 0;
|
|
1707
1748
|
}
|
|
1708
1749
|
/**
|
|
1709
1750
|
* @returns {boolean}
|
|
1710
1751
|
*/
|
|
1711
1752
|
has_proficiency() {
|
|
1712
|
-
|
|
1753
|
+
const ret = wasm.gear_has_proficiency(this.ptr);
|
|
1713
1754
|
return ret !== 0;
|
|
1714
1755
|
}
|
|
1715
1756
|
/**
|
|
1716
1757
|
* @returns {boolean}
|
|
1717
1758
|
*/
|
|
1718
1759
|
max_exp_eq_120() {
|
|
1719
|
-
|
|
1760
|
+
const ret = wasm.gear_max_exp_eq_120(this.ptr);
|
|
1720
1761
|
return ret !== 0;
|
|
1721
1762
|
}
|
|
1722
1763
|
/**
|
|
1723
1764
|
* @returns {number}
|
|
1724
1765
|
*/
|
|
1725
1766
|
proficiency_critical_power_mod() {
|
|
1726
|
-
|
|
1767
|
+
const ret = wasm.gear_proficiency_critical_power_mod(this.ptr);
|
|
1727
1768
|
return ret;
|
|
1728
1769
|
}
|
|
1729
1770
|
/**
|
|
@@ -1731,7 +1772,7 @@ export class Gear {
|
|
|
1731
1772
|
* @returns {number}
|
|
1732
1773
|
*/
|
|
1733
1774
|
calc_fighter_power(slot_size) {
|
|
1734
|
-
|
|
1775
|
+
const ret = wasm.gear_calc_fighter_power(this.ptr, slot_size);
|
|
1735
1776
|
return ret;
|
|
1736
1777
|
}
|
|
1737
1778
|
/**
|
|
@@ -1739,21 +1780,21 @@ export class Gear {
|
|
|
1739
1780
|
* @returns {number}
|
|
1740
1781
|
*/
|
|
1741
1782
|
calc_interception_power(slot_size) {
|
|
1742
|
-
|
|
1783
|
+
const ret = wasm.gear_calc_interception_power(this.ptr, slot_size);
|
|
1743
1784
|
return ret;
|
|
1744
1785
|
}
|
|
1745
1786
|
/**
|
|
1746
1787
|
* @returns {number}
|
|
1747
1788
|
*/
|
|
1748
1789
|
fleet_anti_air() {
|
|
1749
|
-
|
|
1790
|
+
const ret = wasm.gear_fleet_anti_air(this.ptr);
|
|
1750
1791
|
return ret;
|
|
1751
1792
|
}
|
|
1752
1793
|
/**
|
|
1753
1794
|
* @returns {number}
|
|
1754
1795
|
*/
|
|
1755
1796
|
adjusted_anti_air() {
|
|
1756
|
-
|
|
1797
|
+
const ret = wasm.gear_adjusted_anti_air(this.ptr);
|
|
1757
1798
|
return ret;
|
|
1758
1799
|
}
|
|
1759
1800
|
/**
|
|
@@ -1761,7 +1802,7 @@ export class Gear {
|
|
|
1761
1802
|
* @returns {number}
|
|
1762
1803
|
*/
|
|
1763
1804
|
calc_contact_trigger_factor(slot_size) {
|
|
1764
|
-
|
|
1805
|
+
const ret = wasm.gear_calc_contact_trigger_factor(this.ptr, slot_size);
|
|
1765
1806
|
return ret;
|
|
1766
1807
|
}
|
|
1767
1808
|
/**
|
|
@@ -1769,7 +1810,7 @@ export class Gear {
|
|
|
1769
1810
|
* @returns {number}
|
|
1770
1811
|
*/
|
|
1771
1812
|
contact_selection_rate(rank) {
|
|
1772
|
-
|
|
1813
|
+
const ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1773
1814
|
return ret;
|
|
1774
1815
|
}
|
|
1775
1816
|
/**
|
|
@@ -1777,14 +1818,14 @@ export class Gear {
|
|
|
1777
1818
|
* @returns {number}
|
|
1778
1819
|
*/
|
|
1779
1820
|
night_contact_rate(level) {
|
|
1780
|
-
|
|
1821
|
+
const ret = wasm.gear_night_contact_rate(this.ptr, level);
|
|
1781
1822
|
return ret;
|
|
1782
1823
|
}
|
|
1783
1824
|
/**
|
|
1784
1825
|
* @returns {boolean}
|
|
1785
1826
|
*/
|
|
1786
1827
|
is_night_plane() {
|
|
1787
|
-
|
|
1828
|
+
const ret = wasm.gear_is_night_plane(this.ptr);
|
|
1788
1829
|
return ret !== 0;
|
|
1789
1830
|
}
|
|
1790
1831
|
/**
|
|
@@ -1793,42 +1834,42 @@ export class Gear {
|
|
|
1793
1834
|
* @returns {number}
|
|
1794
1835
|
*/
|
|
1795
1836
|
night_plane_power(slot_size, anti_inst) {
|
|
1796
|
-
|
|
1837
|
+
const ret = wasm.gear_night_plane_power(this.ptr, slot_size, anti_inst);
|
|
1797
1838
|
return ret;
|
|
1798
1839
|
}
|
|
1799
1840
|
/**
|
|
1800
1841
|
* @returns {number}
|
|
1801
1842
|
*/
|
|
1802
1843
|
elos() {
|
|
1803
|
-
|
|
1844
|
+
const ret = wasm.gear_elos(this.ptr);
|
|
1804
1845
|
return ret;
|
|
1805
1846
|
}
|
|
1806
1847
|
/**
|
|
1807
1848
|
* @returns {boolean}
|
|
1808
1849
|
*/
|
|
1809
1850
|
is_abyssal() {
|
|
1810
|
-
|
|
1851
|
+
const ret = wasm.gear_is_abyssal(this.ptr);
|
|
1811
1852
|
return ret !== 0;
|
|
1812
1853
|
}
|
|
1813
1854
|
/**
|
|
1814
1855
|
* @returns {boolean}
|
|
1815
1856
|
*/
|
|
1816
1857
|
is_abyssal_cuttlefish_torpedo() {
|
|
1817
|
-
|
|
1858
|
+
const ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1818
1859
|
return ret !== 0;
|
|
1819
1860
|
}
|
|
1820
1861
|
/**
|
|
1821
1862
|
* @returns {boolean}
|
|
1822
1863
|
*/
|
|
1823
1864
|
is_abyssal_patrolling_attack_hawk() {
|
|
1824
|
-
|
|
1865
|
+
const ret = wasm.gear_is_abyssal_patrolling_attack_hawk(this.ptr);
|
|
1825
1866
|
return ret !== 0;
|
|
1826
1867
|
}
|
|
1827
1868
|
/**
|
|
1828
1869
|
* @returns {number}
|
|
1829
1870
|
*/
|
|
1830
1871
|
expedition_bonus() {
|
|
1831
|
-
|
|
1872
|
+
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1832
1873
|
return ret;
|
|
1833
1874
|
}
|
|
1834
1875
|
}
|
|
@@ -1852,7 +1893,7 @@ export class IBonuses {
|
|
|
1852
1893
|
/**
|
|
1853
1894
|
*/
|
|
1854
1895
|
get shelling_power() {
|
|
1855
|
-
|
|
1896
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1856
1897
|
return ret;
|
|
1857
1898
|
}
|
|
1858
1899
|
/**
|
|
@@ -1864,7 +1905,7 @@ export class IBonuses {
|
|
|
1864
1905
|
/**
|
|
1865
1906
|
*/
|
|
1866
1907
|
get carrier_shelling_power() {
|
|
1867
|
-
|
|
1908
|
+
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1868
1909
|
return ret;
|
|
1869
1910
|
}
|
|
1870
1911
|
/**
|
|
@@ -1876,7 +1917,7 @@ export class IBonuses {
|
|
|
1876
1917
|
/**
|
|
1877
1918
|
*/
|
|
1878
1919
|
get shelling_accuracy() {
|
|
1879
|
-
|
|
1920
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1880
1921
|
return ret;
|
|
1881
1922
|
}
|
|
1882
1923
|
/**
|
|
@@ -1888,7 +1929,7 @@ export class IBonuses {
|
|
|
1888
1929
|
/**
|
|
1889
1930
|
*/
|
|
1890
1931
|
get torpedo_power() {
|
|
1891
|
-
|
|
1932
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1892
1933
|
return ret;
|
|
1893
1934
|
}
|
|
1894
1935
|
/**
|
|
@@ -1900,7 +1941,7 @@ export class IBonuses {
|
|
|
1900
1941
|
/**
|
|
1901
1942
|
*/
|
|
1902
1943
|
get torpedo_accuracy() {
|
|
1903
|
-
|
|
1944
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1904
1945
|
return ret;
|
|
1905
1946
|
}
|
|
1906
1947
|
/**
|
|
@@ -1912,7 +1953,7 @@ export class IBonuses {
|
|
|
1912
1953
|
/**
|
|
1913
1954
|
*/
|
|
1914
1955
|
get torpedo_evasion() {
|
|
1915
|
-
|
|
1956
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1916
1957
|
return ret;
|
|
1917
1958
|
}
|
|
1918
1959
|
/**
|
|
@@ -1924,7 +1965,7 @@ export class IBonuses {
|
|
|
1924
1965
|
/**
|
|
1925
1966
|
*/
|
|
1926
1967
|
get asw_power() {
|
|
1927
|
-
|
|
1968
|
+
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1928
1969
|
return ret;
|
|
1929
1970
|
}
|
|
1930
1971
|
/**
|
|
@@ -1936,7 +1977,7 @@ export class IBonuses {
|
|
|
1936
1977
|
/**
|
|
1937
1978
|
*/
|
|
1938
1979
|
get asw_accuracy() {
|
|
1939
|
-
|
|
1980
|
+
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1940
1981
|
return ret;
|
|
1941
1982
|
}
|
|
1942
1983
|
/**
|
|
@@ -1948,7 +1989,7 @@ export class IBonuses {
|
|
|
1948
1989
|
/**
|
|
1949
1990
|
*/
|
|
1950
1991
|
get night_power() {
|
|
1951
|
-
|
|
1992
|
+
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1952
1993
|
return ret;
|
|
1953
1994
|
}
|
|
1954
1995
|
/**
|
|
@@ -1960,7 +2001,7 @@ export class IBonuses {
|
|
|
1960
2001
|
/**
|
|
1961
2002
|
*/
|
|
1962
2003
|
get night_accuracy() {
|
|
1963
|
-
|
|
2004
|
+
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1964
2005
|
return ret;
|
|
1965
2006
|
}
|
|
1966
2007
|
/**
|
|
@@ -1972,7 +2013,7 @@ export class IBonuses {
|
|
|
1972
2013
|
/**
|
|
1973
2014
|
*/
|
|
1974
2015
|
get defense_power() {
|
|
1975
|
-
|
|
2016
|
+
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1976
2017
|
return ret;
|
|
1977
2018
|
}
|
|
1978
2019
|
/**
|
|
@@ -1984,7 +2025,7 @@ export class IBonuses {
|
|
|
1984
2025
|
/**
|
|
1985
2026
|
*/
|
|
1986
2027
|
get contact_selection() {
|
|
1987
|
-
|
|
2028
|
+
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
1988
2029
|
return ret;
|
|
1989
2030
|
}
|
|
1990
2031
|
/**
|
|
@@ -1996,7 +2037,7 @@ export class IBonuses {
|
|
|
1996
2037
|
/**
|
|
1997
2038
|
*/
|
|
1998
2039
|
get fighter_power() {
|
|
1999
|
-
|
|
2040
|
+
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
2000
2041
|
return ret;
|
|
2001
2042
|
}
|
|
2002
2043
|
/**
|
|
@@ -2008,7 +2049,7 @@ export class IBonuses {
|
|
|
2008
2049
|
/**
|
|
2009
2050
|
*/
|
|
2010
2051
|
get adjusted_anti_air() {
|
|
2011
|
-
|
|
2052
|
+
const ret = wasm.__wbg_get_ibonuses_adjusted_anti_air(this.ptr);
|
|
2012
2053
|
return ret;
|
|
2013
2054
|
}
|
|
2014
2055
|
/**
|
|
@@ -2020,7 +2061,7 @@ export class IBonuses {
|
|
|
2020
2061
|
/**
|
|
2021
2062
|
*/
|
|
2022
2063
|
get fleet_anti_air() {
|
|
2023
|
-
|
|
2064
|
+
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
2024
2065
|
return ret;
|
|
2025
2066
|
}
|
|
2026
2067
|
/**
|
|
@@ -2032,7 +2073,7 @@ export class IBonuses {
|
|
|
2032
2073
|
/**
|
|
2033
2074
|
*/
|
|
2034
2075
|
get elos() {
|
|
2035
|
-
|
|
2076
|
+
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
2036
2077
|
return ret;
|
|
2037
2078
|
}
|
|
2038
2079
|
/**
|
|
@@ -2084,8 +2125,8 @@ export class Org {
|
|
|
2084
2125
|
* @param {string} arg0
|
|
2085
2126
|
*/
|
|
2086
2127
|
set id(arg0) {
|
|
2087
|
-
|
|
2088
|
-
|
|
2128
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2129
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2089
2130
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
2090
2131
|
}
|
|
2091
2132
|
/**
|
|
@@ -2116,7 +2157,7 @@ export class Org {
|
|
|
2116
2157
|
/**
|
|
2117
2158
|
*/
|
|
2118
2159
|
get hq_level() {
|
|
2119
|
-
|
|
2160
|
+
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2120
2161
|
return ret;
|
|
2121
2162
|
}
|
|
2122
2163
|
/**
|
|
@@ -2128,7 +2169,7 @@ export class Org {
|
|
|
2128
2169
|
/**
|
|
2129
2170
|
*/
|
|
2130
2171
|
get org_type() {
|
|
2131
|
-
|
|
2172
|
+
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2132
2173
|
return takeObject(ret);
|
|
2133
2174
|
}
|
|
2134
2175
|
/**
|
|
@@ -2155,8 +2196,8 @@ export class Org {
|
|
|
2155
2196
|
* @param {string} arg0
|
|
2156
2197
|
*/
|
|
2157
2198
|
set sortie(arg0) {
|
|
2158
|
-
|
|
2159
|
-
|
|
2199
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2200
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2160
2201
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2161
2202
|
}
|
|
2162
2203
|
/**
|
|
@@ -2216,7 +2257,7 @@ export class Org {
|
|
|
2216
2257
|
* @returns {number}
|
|
2217
2258
|
*/
|
|
2218
2259
|
fleet_len(role) {
|
|
2219
|
-
|
|
2260
|
+
const ret = wasm.org_fleet_len(this.ptr, addHeapObject(role));
|
|
2220
2261
|
return ret >>> 0;
|
|
2221
2262
|
}
|
|
2222
2263
|
/**
|
|
@@ -2227,8 +2268,8 @@ export class Org {
|
|
|
2227
2268
|
get_ship_entity_id(role, key) {
|
|
2228
2269
|
try {
|
|
2229
2270
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2230
|
-
|
|
2231
|
-
|
|
2271
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2272
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2232
2273
|
wasm.org_get_ship_entity_id(retptr, this.ptr, addHeapObject(role), ptr0, len0);
|
|
2233
2274
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2234
2275
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2310,9 +2351,9 @@ export class Org {
|
|
|
2310
2351
|
* @returns {Fleet}
|
|
2311
2352
|
*/
|
|
2312
2353
|
clone_fleet(key) {
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2354
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2355
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2356
|
+
const ret = wasm.org_clone_fleet(this.ptr, ptr0, len0);
|
|
2316
2357
|
return Fleet.__wrap(ret);
|
|
2317
2358
|
}
|
|
2318
2359
|
/**
|
|
@@ -2321,9 +2362,9 @@ export class Org {
|
|
|
2321
2362
|
* @returns {Ship | undefined}
|
|
2322
2363
|
*/
|
|
2323
2364
|
get_ship(role, key) {
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2365
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2366
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2367
|
+
const ret = wasm.org_get_ship(this.ptr, addHeapObject(role), ptr0, len0);
|
|
2327
2368
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2328
2369
|
}
|
|
2329
2370
|
/**
|
|
@@ -2331,9 +2372,9 @@ export class Org {
|
|
|
2331
2372
|
* @returns {Ship | undefined}
|
|
2332
2373
|
*/
|
|
2333
2374
|
get_ship_by_id(id) {
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2375
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2376
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2377
|
+
const ret = wasm.org_get_ship_by_id(this.ptr, ptr0, len0);
|
|
2337
2378
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2338
2379
|
}
|
|
2339
2380
|
/**
|
|
@@ -2356,7 +2397,7 @@ export class Org {
|
|
|
2356
2397
|
* @returns {Comp}
|
|
2357
2398
|
*/
|
|
2358
2399
|
create_comp() {
|
|
2359
|
-
|
|
2400
|
+
const ret = wasm.org_create_comp(this.ptr);
|
|
2360
2401
|
return Comp.__wrap(ret);
|
|
2361
2402
|
}
|
|
2362
2403
|
/**
|
|
@@ -2364,9 +2405,9 @@ export class Org {
|
|
|
2364
2405
|
* @returns {Comp}
|
|
2365
2406
|
*/
|
|
2366
2407
|
create_comp_by_key(key) {
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2408
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2410
|
+
const ret = wasm.org_create_comp_by_key(this.ptr, ptr0, len0);
|
|
2370
2411
|
return Comp.__wrap(ret);
|
|
2371
2412
|
}
|
|
2372
2413
|
/**
|
|
@@ -2376,8 +2417,8 @@ export class Org {
|
|
|
2376
2417
|
get_air_squadron(key) {
|
|
2377
2418
|
try {
|
|
2378
2419
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2379
|
-
|
|
2380
|
-
|
|
2420
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2421
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2381
2422
|
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2382
2423
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2383
2424
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2423,31 +2464,38 @@ export class Org {
|
|
|
2423
2464
|
}
|
|
2424
2465
|
}
|
|
2425
2466
|
/**
|
|
2467
|
+
* @returns {Side}
|
|
2468
|
+
*/
|
|
2469
|
+
side() {
|
|
2470
|
+
const ret = wasm.org_side(this.ptr);
|
|
2471
|
+
return takeObject(ret);
|
|
2472
|
+
}
|
|
2473
|
+
/**
|
|
2426
2474
|
* @returns {boolean}
|
|
2427
2475
|
*/
|
|
2428
2476
|
is_player() {
|
|
2429
|
-
|
|
2477
|
+
const ret = wasm.org_is_player(this.ptr);
|
|
2430
2478
|
return ret !== 0;
|
|
2431
2479
|
}
|
|
2432
2480
|
/**
|
|
2433
2481
|
* @returns {boolean}
|
|
2434
2482
|
*/
|
|
2435
2483
|
is_enemy() {
|
|
2436
|
-
|
|
2484
|
+
const ret = wasm.org_is_enemy(this.ptr);
|
|
2437
2485
|
return ret !== 0;
|
|
2438
2486
|
}
|
|
2439
2487
|
/**
|
|
2440
2488
|
* @returns {boolean}
|
|
2441
2489
|
*/
|
|
2442
2490
|
is_single() {
|
|
2443
|
-
|
|
2491
|
+
const ret = wasm.org_is_single(this.ptr);
|
|
2444
2492
|
return ret !== 0;
|
|
2445
2493
|
}
|
|
2446
2494
|
/**
|
|
2447
2495
|
* @returns {boolean}
|
|
2448
2496
|
*/
|
|
2449
2497
|
is_combined() {
|
|
2450
|
-
|
|
2498
|
+
const ret = wasm.org_is_combined(this.ptr);
|
|
2451
2499
|
return ret !== 0;
|
|
2452
2500
|
}
|
|
2453
2501
|
/**
|
|
@@ -2455,7 +2503,7 @@ export class Org {
|
|
|
2455
2503
|
* @returns {number}
|
|
2456
2504
|
*/
|
|
2457
2505
|
interception_power() {
|
|
2458
|
-
|
|
2506
|
+
const ret = wasm.org_interception_power(this.ptr);
|
|
2459
2507
|
return ret;
|
|
2460
2508
|
}
|
|
2461
2509
|
/**
|
|
@@ -2463,7 +2511,7 @@ export class Org {
|
|
|
2463
2511
|
* @returns {number}
|
|
2464
2512
|
*/
|
|
2465
2513
|
high_altitude_interception_power() {
|
|
2466
|
-
|
|
2514
|
+
const ret = wasm.org_high_altitude_interception_power(this.ptr);
|
|
2467
2515
|
return ret;
|
|
2468
2516
|
}
|
|
2469
2517
|
/**
|
|
@@ -2473,14 +2521,14 @@ export class Org {
|
|
|
2473
2521
|
*/
|
|
2474
2522
|
create_warfare_ship_environment(ship, formation) {
|
|
2475
2523
|
_assertClass(ship, Ship);
|
|
2476
|
-
|
|
2524
|
+
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2477
2525
|
return takeObject(ret);
|
|
2478
2526
|
}
|
|
2479
2527
|
/**
|
|
2480
2528
|
* @returns {Org}
|
|
2481
2529
|
*/
|
|
2482
2530
|
static default() {
|
|
2483
|
-
|
|
2531
|
+
const ret = wasm.org_default();
|
|
2484
2532
|
return Org.__wrap(ret);
|
|
2485
2533
|
}
|
|
2486
2534
|
}
|
|
@@ -2513,7 +2561,7 @@ export class Ship {
|
|
|
2513
2561
|
get id() {
|
|
2514
2562
|
try {
|
|
2515
2563
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2516
|
-
wasm.
|
|
2564
|
+
wasm.__wbg_get_ship_id(retptr, this.ptr);
|
|
2517
2565
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2518
2566
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2519
2567
|
return getStringFromWasm0(r0, r1);
|
|
@@ -2526,16 +2574,16 @@ export class Ship {
|
|
|
2526
2574
|
* @param {string} arg0
|
|
2527
2575
|
*/
|
|
2528
2576
|
set id(arg0) {
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
wasm.
|
|
2577
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2578
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2579
|
+
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2532
2580
|
}
|
|
2533
2581
|
/**
|
|
2534
2582
|
*/
|
|
2535
2583
|
get xxh3() {
|
|
2536
2584
|
try {
|
|
2537
2585
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2538
|
-
wasm.
|
|
2586
|
+
wasm.__wbg_get_ship_xxh3(retptr, this.ptr);
|
|
2539
2587
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2540
2588
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2541
2589
|
u32CvtShim[0] = r0;
|
|
@@ -2553,12 +2601,12 @@ export class Ship {
|
|
|
2553
2601
|
uint64CvtShim[0] = arg0;
|
|
2554
2602
|
const low0 = u32CvtShim[0];
|
|
2555
2603
|
const high0 = u32CvtShim[1];
|
|
2556
|
-
wasm.
|
|
2604
|
+
wasm.__wbg_set_ship_xxh3(this.ptr, low0, high0);
|
|
2557
2605
|
}
|
|
2558
2606
|
/**
|
|
2559
2607
|
*/
|
|
2560
2608
|
get ship_id() {
|
|
2561
|
-
|
|
2609
|
+
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2562
2610
|
return ret;
|
|
2563
2611
|
}
|
|
2564
2612
|
/**
|
|
@@ -2570,7 +2618,7 @@ export class Ship {
|
|
|
2570
2618
|
/**
|
|
2571
2619
|
*/
|
|
2572
2620
|
get level() {
|
|
2573
|
-
|
|
2621
|
+
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2574
2622
|
return ret;
|
|
2575
2623
|
}
|
|
2576
2624
|
/**
|
|
@@ -2582,7 +2630,7 @@ export class Ship {
|
|
|
2582
2630
|
/**
|
|
2583
2631
|
*/
|
|
2584
2632
|
get current_hp() {
|
|
2585
|
-
|
|
2633
|
+
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2586
2634
|
return ret;
|
|
2587
2635
|
}
|
|
2588
2636
|
/**
|
|
@@ -2594,7 +2642,7 @@ export class Ship {
|
|
|
2594
2642
|
/**
|
|
2595
2643
|
*/
|
|
2596
2644
|
get morale() {
|
|
2597
|
-
|
|
2645
|
+
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2598
2646
|
return ret;
|
|
2599
2647
|
}
|
|
2600
2648
|
/**
|
|
@@ -2606,7 +2654,7 @@ export class Ship {
|
|
|
2606
2654
|
/**
|
|
2607
2655
|
*/
|
|
2608
2656
|
get ammo() {
|
|
2609
|
-
|
|
2657
|
+
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2610
2658
|
return ret;
|
|
2611
2659
|
}
|
|
2612
2660
|
/**
|
|
@@ -2618,7 +2666,7 @@ export class Ship {
|
|
|
2618
2666
|
/**
|
|
2619
2667
|
*/
|
|
2620
2668
|
get fuel() {
|
|
2621
|
-
|
|
2669
|
+
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2622
2670
|
return ret;
|
|
2623
2671
|
}
|
|
2624
2672
|
/**
|
|
@@ -2630,7 +2678,7 @@ export class Ship {
|
|
|
2630
2678
|
/**
|
|
2631
2679
|
*/
|
|
2632
2680
|
get ship_type() {
|
|
2633
|
-
|
|
2681
|
+
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2634
2682
|
return takeObject(ret);
|
|
2635
2683
|
}
|
|
2636
2684
|
/**
|
|
@@ -2641,119 +2689,131 @@ export class Ship {
|
|
|
2641
2689
|
}
|
|
2642
2690
|
/**
|
|
2643
2691
|
*/
|
|
2644
|
-
get
|
|
2645
|
-
|
|
2692
|
+
get ctype() {
|
|
2693
|
+
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2694
|
+
return ret;
|
|
2695
|
+
}
|
|
2696
|
+
/**
|
|
2697
|
+
* @param {number} arg0
|
|
2698
|
+
*/
|
|
2699
|
+
set ctype(arg0) {
|
|
2700
|
+
wasm.__wbg_set_ship_ctype(this.ptr, arg0);
|
|
2701
|
+
}
|
|
2702
|
+
/**
|
|
2703
|
+
*/
|
|
2704
|
+
get slots() {
|
|
2705
|
+
const ret = wasm.__wbg_get_ship_slots(this.ptr);
|
|
2646
2706
|
return takeObject(ret);
|
|
2647
2707
|
}
|
|
2648
2708
|
/**
|
|
2649
|
-
* @param {
|
|
2709
|
+
* @param {SlotSizeVec} arg0
|
|
2650
2710
|
*/
|
|
2651
|
-
set
|
|
2652
|
-
wasm.
|
|
2711
|
+
set slots(arg0) {
|
|
2712
|
+
wasm.__wbg_set_ship_slots(this.ptr, addHeapObject(arg0));
|
|
2653
2713
|
}
|
|
2654
2714
|
/**
|
|
2655
2715
|
* @returns {number | undefined}
|
|
2656
2716
|
*/
|
|
2657
2717
|
get naked_firepower() {
|
|
2658
|
-
|
|
2718
|
+
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2659
2719
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2660
2720
|
}
|
|
2661
2721
|
/**
|
|
2662
2722
|
* @returns {number | undefined}
|
|
2663
2723
|
*/
|
|
2664
2724
|
get naked_torpedo() {
|
|
2665
|
-
|
|
2725
|
+
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2666
2726
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2667
2727
|
}
|
|
2668
2728
|
/**
|
|
2669
2729
|
* @returns {number | undefined}
|
|
2670
2730
|
*/
|
|
2671
2731
|
get naked_armor() {
|
|
2672
|
-
|
|
2732
|
+
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2673
2733
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2674
2734
|
}
|
|
2675
2735
|
/**
|
|
2676
2736
|
* @returns {number | undefined}
|
|
2677
2737
|
*/
|
|
2678
2738
|
get naked_anti_air() {
|
|
2679
|
-
|
|
2739
|
+
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2680
2740
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2681
2741
|
}
|
|
2682
2742
|
/**
|
|
2683
2743
|
* @returns {number | undefined}
|
|
2684
2744
|
*/
|
|
2685
2745
|
get naked_evasion() {
|
|
2686
|
-
|
|
2746
|
+
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2687
2747
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2688
2748
|
}
|
|
2689
2749
|
/**
|
|
2690
2750
|
* @returns {number | undefined}
|
|
2691
2751
|
*/
|
|
2692
2752
|
get naked_asw() {
|
|
2693
|
-
|
|
2753
|
+
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2694
2754
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2695
2755
|
}
|
|
2696
2756
|
/**
|
|
2697
2757
|
* @returns {number | undefined}
|
|
2698
2758
|
*/
|
|
2699
2759
|
get naked_los() {
|
|
2700
|
-
|
|
2760
|
+
const ret = wasm.ship_naked_los(this.ptr);
|
|
2701
2761
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2702
2762
|
}
|
|
2703
2763
|
/**
|
|
2704
2764
|
* @returns {number | undefined}
|
|
2705
2765
|
*/
|
|
2706
2766
|
get firepower() {
|
|
2707
|
-
|
|
2767
|
+
const ret = wasm.ship_firepower(this.ptr);
|
|
2708
2768
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2709
2769
|
}
|
|
2710
2770
|
/**
|
|
2711
2771
|
* @returns {number | undefined}
|
|
2712
2772
|
*/
|
|
2713
2773
|
get torpedo() {
|
|
2714
|
-
|
|
2774
|
+
const ret = wasm.ship_torpedo(this.ptr);
|
|
2715
2775
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2716
2776
|
}
|
|
2717
2777
|
/**
|
|
2718
2778
|
* @returns {number | undefined}
|
|
2719
2779
|
*/
|
|
2720
2780
|
get armor() {
|
|
2721
|
-
|
|
2781
|
+
const ret = wasm.ship_armor(this.ptr);
|
|
2722
2782
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2723
2783
|
}
|
|
2724
2784
|
/**
|
|
2725
2785
|
* @returns {number | undefined}
|
|
2726
2786
|
*/
|
|
2727
2787
|
get anti_air() {
|
|
2728
|
-
|
|
2788
|
+
const ret = wasm.ship_anti_air(this.ptr);
|
|
2729
2789
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2730
2790
|
}
|
|
2731
2791
|
/**
|
|
2732
2792
|
* @returns {number | undefined}
|
|
2733
2793
|
*/
|
|
2734
2794
|
get evasion() {
|
|
2735
|
-
|
|
2795
|
+
const ret = wasm.ship_evasion(this.ptr);
|
|
2736
2796
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2737
2797
|
}
|
|
2738
2798
|
/**
|
|
2739
2799
|
* @returns {number | undefined}
|
|
2740
2800
|
*/
|
|
2741
2801
|
get asw() {
|
|
2742
|
-
|
|
2802
|
+
const ret = wasm.ship_asw(this.ptr);
|
|
2743
2803
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2744
2804
|
}
|
|
2745
2805
|
/**
|
|
2746
2806
|
* @returns {number | undefined}
|
|
2747
2807
|
*/
|
|
2748
2808
|
get los() {
|
|
2749
|
-
|
|
2809
|
+
const ret = wasm.ship_los(this.ptr);
|
|
2750
2810
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2751
2811
|
}
|
|
2752
2812
|
/**
|
|
2753
2813
|
* @returns {Ship}
|
|
2754
2814
|
*/
|
|
2755
2815
|
static default() {
|
|
2756
|
-
|
|
2816
|
+
const ret = wasm.ship_default();
|
|
2757
2817
|
return Ship.__wrap(ret);
|
|
2758
2818
|
}
|
|
2759
2819
|
/**
|
|
@@ -2761,23 +2821,23 @@ export class Ship {
|
|
|
2761
2821
|
* @returns {boolean}
|
|
2762
2822
|
*/
|
|
2763
2823
|
eq_id(id) {
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2824
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2825
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2826
|
+
const ret = wasm.ship_eq_id(this.ptr, ptr0, len0);
|
|
2767
2827
|
return ret !== 0;
|
|
2768
2828
|
}
|
|
2769
2829
|
/**
|
|
2770
2830
|
* @returns {ShipState}
|
|
2771
2831
|
*/
|
|
2772
2832
|
state() {
|
|
2773
|
-
|
|
2833
|
+
const ret = wasm.ship_state(this.ptr);
|
|
2774
2834
|
return takeObject(ret);
|
|
2775
2835
|
}
|
|
2776
2836
|
/**
|
|
2777
2837
|
* @returns {ShipMeta}
|
|
2778
2838
|
*/
|
|
2779
2839
|
meta() {
|
|
2780
|
-
|
|
2840
|
+
const ret = wasm.ship_meta(this.ptr);
|
|
2781
2841
|
return takeObject(ret);
|
|
2782
2842
|
}
|
|
2783
2843
|
/**
|
|
@@ -2813,71 +2873,64 @@ export class Ship {
|
|
|
2813
2873
|
/**
|
|
2814
2874
|
* @returns {number}
|
|
2815
2875
|
*/
|
|
2816
|
-
get ctype() {
|
|
2817
|
-
var ret = wasm.ship_ctype(this.ptr);
|
|
2818
|
-
return ret;
|
|
2819
|
-
}
|
|
2820
|
-
/**
|
|
2821
|
-
* @returns {number}
|
|
2822
|
-
*/
|
|
2823
2876
|
get stype() {
|
|
2824
|
-
|
|
2877
|
+
const ret = wasm.ship_stype(this.ptr);
|
|
2825
2878
|
return ret;
|
|
2826
2879
|
}
|
|
2827
2880
|
/**
|
|
2828
2881
|
* @returns {number}
|
|
2829
2882
|
*/
|
|
2830
2883
|
get sort_id() {
|
|
2831
|
-
|
|
2884
|
+
const ret = wasm.ship_sort_id(this.ptr);
|
|
2832
2885
|
return ret;
|
|
2833
2886
|
}
|
|
2834
2887
|
/**
|
|
2835
2888
|
* @returns {number}
|
|
2836
2889
|
*/
|
|
2837
2890
|
remodel_rank() {
|
|
2838
|
-
|
|
2891
|
+
const ret = wasm.ship_remodel_rank(this.ptr);
|
|
2839
2892
|
return ret;
|
|
2840
2893
|
}
|
|
2841
2894
|
/**
|
|
2842
2895
|
* @returns {number}
|
|
2843
2896
|
*/
|
|
2844
2897
|
get slotnum() {
|
|
2845
|
-
|
|
2898
|
+
const ret = wasm.ship_slotnum(this.ptr);
|
|
2846
2899
|
return ret >>> 0;
|
|
2847
2900
|
}
|
|
2848
2901
|
/**
|
|
2849
2902
|
* @returns {number}
|
|
2850
2903
|
*/
|
|
2851
2904
|
get next_id() {
|
|
2852
|
-
|
|
2905
|
+
const ret = wasm.ship_next_id(this.ptr);
|
|
2853
2906
|
return ret;
|
|
2854
2907
|
}
|
|
2855
2908
|
/**
|
|
2856
2909
|
* @returns {boolean}
|
|
2857
2910
|
*/
|
|
2858
2911
|
get useful() {
|
|
2859
|
-
|
|
2912
|
+
const ret = wasm.ship_useful(this.ptr);
|
|
2860
2913
|
return ret !== 0;
|
|
2861
2914
|
}
|
|
2862
2915
|
/**
|
|
2863
2916
|
* @returns {DamageState}
|
|
2864
2917
|
*/
|
|
2865
2918
|
damage_state() {
|
|
2866
|
-
|
|
2919
|
+
const ret = wasm.ship_damage_state(this.ptr);
|
|
2867
2920
|
return takeObject(ret);
|
|
2868
2921
|
}
|
|
2869
2922
|
/**
|
|
2870
2923
|
* @returns {MoraleState}
|
|
2871
2924
|
*/
|
|
2872
2925
|
morale_state() {
|
|
2873
|
-
|
|
2926
|
+
const ret = wasm.ship_morale_state(this.ptr);
|
|
2874
2927
|
return takeObject(ret);
|
|
2875
2928
|
}
|
|
2876
2929
|
/**
|
|
2877
2930
|
* @returns {ShipCategory}
|
|
2878
2931
|
*/
|
|
2879
2932
|
category() {
|
|
2880
|
-
|
|
2933
|
+
const ret = wasm.ship_category(this.ptr);
|
|
2881
2934
|
return takeObject(ret);
|
|
2882
2935
|
}
|
|
2883
2936
|
/**
|
|
@@ -2885,14 +2938,14 @@ export class Ship {
|
|
|
2885
2938
|
* @returns {boolean}
|
|
2886
2939
|
*/
|
|
2887
2940
|
has_attr(attr) {
|
|
2888
|
-
|
|
2941
|
+
const ret = wasm.ship_has_attr(this.ptr, addHeapObject(attr));
|
|
2889
2942
|
return ret !== 0;
|
|
2890
2943
|
}
|
|
2891
2944
|
/**
|
|
2892
2945
|
* @returns {any}
|
|
2893
2946
|
*/
|
|
2894
2947
|
gear_keys() {
|
|
2895
|
-
|
|
2948
|
+
const ret = wasm.ship_gear_keys(this.ptr);
|
|
2896
2949
|
return takeObject(ret);
|
|
2897
2950
|
}
|
|
2898
2951
|
/**
|
|
@@ -2900,9 +2953,9 @@ export class Ship {
|
|
|
2900
2953
|
* @returns {Gear | undefined}
|
|
2901
2954
|
*/
|
|
2902
2955
|
get_gear(key) {
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2956
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2957
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2958
|
+
const ret = wasm.ship_get_gear(this.ptr, ptr0, len0);
|
|
2906
2959
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2907
2960
|
}
|
|
2908
2961
|
/**
|
|
@@ -2910,7 +2963,7 @@ export class Ship {
|
|
|
2910
2963
|
* @returns {number | undefined}
|
|
2911
2964
|
*/
|
|
2912
2965
|
get_damage_bound(state) {
|
|
2913
|
-
|
|
2966
|
+
const ret = wasm.ship_get_damage_bound(this.ptr, addHeapObject(state));
|
|
2914
2967
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2915
2968
|
}
|
|
2916
2969
|
/**
|
|
@@ -2919,7 +2972,7 @@ export class Ship {
|
|
|
2919
2972
|
* @returns {number}
|
|
2920
2973
|
*/
|
|
2921
2974
|
get_remaining_fuel(rate, ceil) {
|
|
2922
|
-
|
|
2975
|
+
const ret = wasm.ship_get_remaining_fuel(this.ptr, rate, ceil);
|
|
2923
2976
|
return ret;
|
|
2924
2977
|
}
|
|
2925
2978
|
/**
|
|
@@ -2928,7 +2981,7 @@ export class Ship {
|
|
|
2928
2981
|
* @returns {number}
|
|
2929
2982
|
*/
|
|
2930
2983
|
get_remaining_ammo(rate, ceil) {
|
|
2931
|
-
|
|
2984
|
+
const ret = wasm.ship_get_remaining_ammo(this.ptr, rate, ceil);
|
|
2932
2985
|
return ret;
|
|
2933
2986
|
}
|
|
2934
2987
|
/**
|
|
@@ -2936,9 +2989,9 @@ export class Ship {
|
|
|
2936
2989
|
* @returns {boolean}
|
|
2937
2990
|
*/
|
|
2938
2991
|
has_unknown_stat(key) {
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2992
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2993
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2994
|
+
const ret = wasm.ship_has_unknown_stat(this.ptr, ptr0, len0);
|
|
2942
2995
|
return ret !== 0;
|
|
2943
2996
|
}
|
|
2944
2997
|
/**
|
|
@@ -2946,9 +2999,9 @@ export class Ship {
|
|
|
2946
2999
|
* @returns {number | undefined}
|
|
2947
3000
|
*/
|
|
2948
3001
|
get_naked_stat(key) {
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
3002
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3003
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3004
|
+
const ret = wasm.ship_get_naked_stat(this.ptr, ptr0, len0);
|
|
2952
3005
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2953
3006
|
}
|
|
2954
3007
|
/**
|
|
@@ -2956,9 +3009,9 @@ export class Ship {
|
|
|
2956
3009
|
* @returns {number | undefined}
|
|
2957
3010
|
*/
|
|
2958
3011
|
get_stat_interval_left(key) {
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
3012
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3013
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3014
|
+
const ret = wasm.ship_get_stat_interval_left(this.ptr, ptr0, len0);
|
|
2962
3015
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2963
3016
|
}
|
|
2964
3017
|
/**
|
|
@@ -2966,9 +3019,9 @@ export class Ship {
|
|
|
2966
3019
|
* @returns {number | undefined}
|
|
2967
3020
|
*/
|
|
2968
3021
|
get_stat_interval_right(key) {
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
3022
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3023
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3024
|
+
const ret = wasm.ship_get_stat_interval_right(this.ptr, ptr0, len0);
|
|
2972
3025
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2973
3026
|
}
|
|
2974
3027
|
/**
|
|
@@ -2976,9 +3029,9 @@ export class Ship {
|
|
|
2976
3029
|
* @returns {number}
|
|
2977
3030
|
*/
|
|
2978
3031
|
get_gear_stat(key) {
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3032
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3033
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3034
|
+
const ret = wasm.ship_get_gear_stat(this.ptr, ptr0, len0);
|
|
2982
3035
|
return ret;
|
|
2983
3036
|
}
|
|
2984
3037
|
/**
|
|
@@ -2986,9 +3039,9 @@ export class Ship {
|
|
|
2986
3039
|
* @returns {number}
|
|
2987
3040
|
*/
|
|
2988
3041
|
get_ebonus(key) {
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
3042
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3043
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3044
|
+
const ret = wasm.ship_get_ebonus(this.ptr, ptr0, len0);
|
|
2992
3045
|
return ret;
|
|
2993
3046
|
}
|
|
2994
3047
|
/**
|
|
@@ -2996,23 +3049,23 @@ export class Ship {
|
|
|
2996
3049
|
* @returns {number | undefined}
|
|
2997
3050
|
*/
|
|
2998
3051
|
get_stat_mod(key) {
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3052
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3053
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3054
|
+
const ret = wasm.ship_get_stat_mod(this.ptr, ptr0, len0);
|
|
3002
3055
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3003
3056
|
}
|
|
3004
3057
|
/**
|
|
3005
3058
|
* @returns {boolean}
|
|
3006
3059
|
*/
|
|
3007
3060
|
is_abyssal() {
|
|
3008
|
-
|
|
3061
|
+
const ret = wasm.ship_is_abyssal(this.ptr);
|
|
3009
3062
|
return ret !== 0;
|
|
3010
3063
|
}
|
|
3011
3064
|
/**
|
|
3012
3065
|
* @returns {boolean}
|
|
3013
3066
|
*/
|
|
3014
3067
|
is_submarine() {
|
|
3015
|
-
|
|
3068
|
+
const ret = wasm.ship_is_submarine(this.ptr);
|
|
3016
3069
|
return ret !== 0;
|
|
3017
3070
|
}
|
|
3018
3071
|
/**
|
|
@@ -3022,79 +3075,79 @@ export class Ship {
|
|
|
3022
3075
|
*/
|
|
3023
3076
|
can_equip(gear, key) {
|
|
3024
3077
|
_assertClass(gear, Gear);
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3078
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3079
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3080
|
+
const ret = wasm.ship_can_equip(this.ptr, gear.ptr, ptr0, len0);
|
|
3028
3081
|
return ret !== 0;
|
|
3029
3082
|
}
|
|
3030
3083
|
/**
|
|
3031
3084
|
* @returns {number | undefined}
|
|
3032
3085
|
*/
|
|
3033
3086
|
get max_hp() {
|
|
3034
|
-
|
|
3087
|
+
const ret = wasm.ship_max_hp(this.ptr);
|
|
3035
3088
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3036
3089
|
}
|
|
3037
3090
|
/**
|
|
3038
3091
|
* @returns {number}
|
|
3039
3092
|
*/
|
|
3040
3093
|
get max_ammo() {
|
|
3041
|
-
|
|
3094
|
+
const ret = wasm.ship_max_ammo(this.ptr);
|
|
3042
3095
|
return ret;
|
|
3043
3096
|
}
|
|
3044
3097
|
/**
|
|
3045
3098
|
* @returns {number}
|
|
3046
3099
|
*/
|
|
3047
3100
|
get max_fuel() {
|
|
3048
|
-
|
|
3101
|
+
const ret = wasm.ship_max_fuel(this.ptr);
|
|
3049
3102
|
return ret;
|
|
3050
3103
|
}
|
|
3051
3104
|
/**
|
|
3052
3105
|
* @returns {number | undefined}
|
|
3053
3106
|
*/
|
|
3054
3107
|
get naked_range() {
|
|
3055
|
-
|
|
3108
|
+
const ret = wasm.ship_naked_range(this.ptr);
|
|
3056
3109
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3057
3110
|
}
|
|
3058
3111
|
/**
|
|
3059
3112
|
* @returns {number}
|
|
3060
3113
|
*/
|
|
3061
3114
|
get naked_speed() {
|
|
3062
|
-
|
|
3115
|
+
const ret = wasm.ship_naked_speed(this.ptr);
|
|
3063
3116
|
return ret;
|
|
3064
3117
|
}
|
|
3065
3118
|
/**
|
|
3066
3119
|
* @returns {number | undefined}
|
|
3067
3120
|
*/
|
|
3068
3121
|
get luck() {
|
|
3069
|
-
|
|
3122
|
+
const ret = wasm.ship_luck(this.ptr);
|
|
3070
3123
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3071
3124
|
}
|
|
3072
3125
|
/**
|
|
3073
3126
|
* @returns {number | undefined}
|
|
3074
3127
|
*/
|
|
3075
3128
|
get range() {
|
|
3076
|
-
|
|
3129
|
+
const ret = wasm.ship_range(this.ptr);
|
|
3077
3130
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3078
3131
|
}
|
|
3079
3132
|
/**
|
|
3080
3133
|
* @returns {number}
|
|
3081
3134
|
*/
|
|
3082
3135
|
get speed() {
|
|
3083
|
-
|
|
3136
|
+
const ret = wasm.ship_speed(this.ptr);
|
|
3084
3137
|
return ret;
|
|
3085
3138
|
}
|
|
3086
3139
|
/**
|
|
3087
3140
|
* @returns {number}
|
|
3088
3141
|
*/
|
|
3089
3142
|
get accuracy() {
|
|
3090
|
-
|
|
3143
|
+
const ret = wasm.ship_accuracy(this.ptr);
|
|
3091
3144
|
return ret;
|
|
3092
3145
|
}
|
|
3093
3146
|
/**
|
|
3094
3147
|
* @returns {boolean}
|
|
3095
3148
|
*/
|
|
3096
3149
|
is_installation() {
|
|
3097
|
-
|
|
3150
|
+
const ret = wasm.ship_is_installation(this.ptr);
|
|
3098
3151
|
return ret !== 0;
|
|
3099
3152
|
}
|
|
3100
3153
|
/**
|
|
@@ -3102,7 +3155,7 @@ export class Ship {
|
|
|
3102
3155
|
* @returns {number | undefined}
|
|
3103
3156
|
*/
|
|
3104
3157
|
get_slot_size(index) {
|
|
3105
|
-
|
|
3158
|
+
const ret = wasm.ship_get_slot_size(this.ptr, index);
|
|
3106
3159
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3107
3160
|
}
|
|
3108
3161
|
/**
|
|
@@ -3110,21 +3163,21 @@ export class Ship {
|
|
|
3110
3163
|
* @returns {number | undefined}
|
|
3111
3164
|
*/
|
|
3112
3165
|
get_max_slot_size(index) {
|
|
3113
|
-
|
|
3166
|
+
const ret = wasm.ship_get_max_slot_size(this.ptr, index);
|
|
3114
3167
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3115
3168
|
}
|
|
3116
3169
|
/**
|
|
3117
3170
|
* @returns {number}
|
|
3118
3171
|
*/
|
|
3119
3172
|
remaining_ammo_mod() {
|
|
3120
|
-
|
|
3173
|
+
const ret = wasm.ship_remaining_ammo_mod(this.ptr);
|
|
3121
3174
|
return ret;
|
|
3122
3175
|
}
|
|
3123
3176
|
/**
|
|
3124
3177
|
* @returns {number}
|
|
3125
3178
|
*/
|
|
3126
3179
|
remaining_fuel_mod() {
|
|
3127
|
-
|
|
3180
|
+
const ret = wasm.ship_remaining_fuel_mod(this.ptr);
|
|
3128
3181
|
return ret;
|
|
3129
3182
|
}
|
|
3130
3183
|
/**
|
|
@@ -3160,14 +3213,14 @@ export class Ship {
|
|
|
3160
3213
|
* @returns {number}
|
|
3161
3214
|
*/
|
|
3162
3215
|
fleet_anti_air() {
|
|
3163
|
-
|
|
3216
|
+
const ret = wasm.ship_fleet_anti_air(this.ptr);
|
|
3164
3217
|
return ret;
|
|
3165
3218
|
}
|
|
3166
3219
|
/**
|
|
3167
3220
|
* @returns {number}
|
|
3168
3221
|
*/
|
|
3169
3222
|
cruiser_fit_bonus() {
|
|
3170
|
-
|
|
3223
|
+
const ret = wasm.ship_cruiser_fit_bonus(this.ptr);
|
|
3171
3224
|
return ret;
|
|
3172
3225
|
}
|
|
3173
3226
|
/**
|
|
@@ -3175,7 +3228,7 @@ export class Ship {
|
|
|
3175
3228
|
* @returns {number}
|
|
3176
3229
|
*/
|
|
3177
3230
|
fit_gun_bonus(is_night) {
|
|
3178
|
-
|
|
3231
|
+
const ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3179
3232
|
return ret;
|
|
3180
3233
|
}
|
|
3181
3234
|
/**
|
|
@@ -3239,26 +3292,10 @@ export class Ship {
|
|
|
3239
3292
|
}
|
|
3240
3293
|
}
|
|
3241
3294
|
/**
|
|
3242
|
-
* @returns {Uint8Array}
|
|
3243
|
-
*/
|
|
3244
|
-
get_possible_anti_air_cutin_ids() {
|
|
3245
|
-
try {
|
|
3246
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3247
|
-
wasm.ship_get_possible_anti_air_cutin_ids(retptr, this.ptr);
|
|
3248
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3249
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
3250
|
-
var v0 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3251
|
-
wasm.__wbindgen_free(r0, r1 * 1);
|
|
3252
|
-
return v0;
|
|
3253
|
-
} finally {
|
|
3254
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3255
|
-
}
|
|
3256
|
-
}
|
|
3257
|
-
/**
|
|
3258
3295
|
* @returns {number}
|
|
3259
3296
|
*/
|
|
3260
3297
|
transport_point() {
|
|
3261
|
-
|
|
3298
|
+
const ret = wasm.ship_transport_point(this.ptr);
|
|
3262
3299
|
return ret;
|
|
3263
3300
|
}
|
|
3264
3301
|
/**
|
|
@@ -3284,42 +3321,42 @@ export class Ship {
|
|
|
3284
3321
|
}
|
|
3285
3322
|
}
|
|
3286
3323
|
|
|
3324
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
3325
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3326
|
+
return addHeapObject(ret);
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3287
3329
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
3288
3330
|
takeObject(arg0);
|
|
3289
3331
|
};
|
|
3290
3332
|
|
|
3291
3333
|
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3292
3334
|
const obj = getObject(arg1);
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3335
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
3336
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3337
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3296
3338
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3297
3339
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3298
3340
|
};
|
|
3299
3341
|
|
|
3300
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
3301
|
-
var ret = getStringFromWasm0(arg0, arg1);
|
|
3302
|
-
return addHeapObject(ret);
|
|
3303
|
-
};
|
|
3304
|
-
|
|
3305
3342
|
export function __wbindgen_json_parse(arg0, arg1) {
|
|
3306
|
-
|
|
3343
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3307
3344
|
return addHeapObject(ret);
|
|
3308
3345
|
};
|
|
3309
3346
|
|
|
3310
|
-
export function
|
|
3347
|
+
export function __wbg_error_8ff19d586a987aef(arg0) {
|
|
3311
3348
|
console.error(getObject(arg0));
|
|
3312
3349
|
};
|
|
3313
3350
|
|
|
3314
3351
|
export function __wbg_new_693216e109162396() {
|
|
3315
|
-
|
|
3352
|
+
const ret = new Error();
|
|
3316
3353
|
return addHeapObject(ret);
|
|
3317
3354
|
};
|
|
3318
3355
|
|
|
3319
3356
|
export function __wbg_stack_0ddaca5d1abfb52f(arg0, arg1) {
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3357
|
+
const ret = getObject(arg1).stack;
|
|
3358
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3359
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3323
3360
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3324
3361
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3325
3362
|
};
|
|
@@ -3332,138 +3369,138 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3332
3369
|
}
|
|
3333
3370
|
};
|
|
3334
3371
|
|
|
3335
|
-
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3336
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3337
|
-
}, arguments) };
|
|
3338
|
-
|
|
3339
3372
|
export function __wbg_randomFillSync_654a7797990fb8db() { return handleError(function (arg0, arg1, arg2) {
|
|
3340
3373
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3341
3374
|
}, arguments) };
|
|
3342
3375
|
|
|
3376
|
+
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3377
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3378
|
+
}, arguments) };
|
|
3379
|
+
|
|
3343
3380
|
export function __wbg_process_70251ed1291754d5(arg0) {
|
|
3344
|
-
|
|
3381
|
+
const ret = getObject(arg0).process;
|
|
3345
3382
|
return addHeapObject(ret);
|
|
3346
3383
|
};
|
|
3347
3384
|
|
|
3348
3385
|
export function __wbindgen_is_object(arg0) {
|
|
3349
3386
|
const val = getObject(arg0);
|
|
3350
|
-
|
|
3387
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3351
3388
|
return ret;
|
|
3352
3389
|
};
|
|
3353
3390
|
|
|
3354
3391
|
export function __wbg_versions_b23f2588cdb2ddbb(arg0) {
|
|
3355
|
-
|
|
3392
|
+
const ret = getObject(arg0).versions;
|
|
3356
3393
|
return addHeapObject(ret);
|
|
3357
3394
|
};
|
|
3358
3395
|
|
|
3359
3396
|
export function __wbg_node_61b8c9a82499895d(arg0) {
|
|
3360
|
-
|
|
3397
|
+
const ret = getObject(arg0).node;
|
|
3361
3398
|
return addHeapObject(ret);
|
|
3362
3399
|
};
|
|
3363
3400
|
|
|
3364
3401
|
export function __wbindgen_is_string(arg0) {
|
|
3365
|
-
|
|
3402
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
3366
3403
|
return ret;
|
|
3367
3404
|
};
|
|
3368
3405
|
|
|
3369
3406
|
export function __wbg_static_accessor_NODE_MODULE_33b45247c55045b0() {
|
|
3370
|
-
|
|
3407
|
+
const ret = module;
|
|
3371
3408
|
return addHeapObject(ret);
|
|
3372
3409
|
};
|
|
3373
3410
|
|
|
3374
3411
|
export function __wbg_require_2a93bc09fee45aca() { return handleError(function (arg0, arg1, arg2) {
|
|
3375
|
-
|
|
3412
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3376
3413
|
return addHeapObject(ret);
|
|
3377
3414
|
}, arguments) };
|
|
3378
3415
|
|
|
3379
3416
|
export function __wbg_crypto_2f56257a38275dbd(arg0) {
|
|
3380
|
-
|
|
3417
|
+
const ret = getObject(arg0).crypto;
|
|
3381
3418
|
return addHeapObject(ret);
|
|
3382
3419
|
};
|
|
3383
3420
|
|
|
3384
3421
|
export function __wbg_msCrypto_d07655bf62361f21(arg0) {
|
|
3385
|
-
|
|
3422
|
+
const ret = getObject(arg0).msCrypto;
|
|
3386
3423
|
return addHeapObject(ret);
|
|
3387
3424
|
};
|
|
3388
3425
|
|
|
3389
|
-
export function
|
|
3390
|
-
|
|
3426
|
+
export function __wbg_newnoargs_e23b458e372830de(arg0, arg1) {
|
|
3427
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3391
3428
|
return addHeapObject(ret);
|
|
3392
3429
|
};
|
|
3393
3430
|
|
|
3394
|
-
export function
|
|
3395
|
-
|
|
3431
|
+
export function __wbg_call_ae78342adc33730a() { return handleError(function (arg0, arg1) {
|
|
3432
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
3396
3433
|
return addHeapObject(ret);
|
|
3397
3434
|
}, arguments) };
|
|
3398
3435
|
|
|
3399
3436
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
3400
|
-
|
|
3437
|
+
const ret = getObject(arg0);
|
|
3401
3438
|
return addHeapObject(ret);
|
|
3402
3439
|
};
|
|
3403
3440
|
|
|
3404
|
-
export function
|
|
3405
|
-
|
|
3441
|
+
export function __wbg_call_a19d3173f3e1d3c5() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3442
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3406
3443
|
return addHeapObject(ret);
|
|
3407
3444
|
}, arguments) };
|
|
3408
3445
|
|
|
3409
|
-
export function
|
|
3410
|
-
|
|
3446
|
+
export function __wbg_self_99737b4dcdf6f0d8() { return handleError(function () {
|
|
3447
|
+
const ret = self.self;
|
|
3411
3448
|
return addHeapObject(ret);
|
|
3412
3449
|
}, arguments) };
|
|
3413
3450
|
|
|
3414
|
-
export function
|
|
3415
|
-
|
|
3451
|
+
export function __wbg_window_9b61fbbf3564c4fb() { return handleError(function () {
|
|
3452
|
+
const ret = window.window;
|
|
3416
3453
|
return addHeapObject(ret);
|
|
3417
3454
|
}, arguments) };
|
|
3418
3455
|
|
|
3419
|
-
export function
|
|
3420
|
-
|
|
3456
|
+
export function __wbg_globalThis_8e275ef40caea3a3() { return handleError(function () {
|
|
3457
|
+
const ret = globalThis.globalThis;
|
|
3421
3458
|
return addHeapObject(ret);
|
|
3422
3459
|
}, arguments) };
|
|
3423
3460
|
|
|
3424
|
-
export function
|
|
3425
|
-
|
|
3461
|
+
export function __wbg_global_5de1e0f82bddcd27() { return handleError(function () {
|
|
3462
|
+
const ret = global.global;
|
|
3426
3463
|
return addHeapObject(ret);
|
|
3427
3464
|
}, arguments) };
|
|
3428
3465
|
|
|
3429
3466
|
export function __wbindgen_is_undefined(arg0) {
|
|
3430
|
-
|
|
3467
|
+
const ret = getObject(arg0) === undefined;
|
|
3431
3468
|
return ret;
|
|
3432
3469
|
};
|
|
3433
3470
|
|
|
3434
|
-
export function
|
|
3435
|
-
|
|
3471
|
+
export function __wbg_buffer_7af23f65f6c64548(arg0) {
|
|
3472
|
+
const ret = getObject(arg0).buffer;
|
|
3436
3473
|
return addHeapObject(ret);
|
|
3437
3474
|
};
|
|
3438
3475
|
|
|
3439
|
-
export function
|
|
3440
|
-
|
|
3476
|
+
export function __wbg_new_cc9018bd6f283b6f(arg0) {
|
|
3477
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
3441
3478
|
return addHeapObject(ret);
|
|
3442
3479
|
};
|
|
3443
3480
|
|
|
3444
|
-
export function
|
|
3481
|
+
export function __wbg_set_f25e869e4565d2a2(arg0, arg1, arg2) {
|
|
3445
3482
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3446
3483
|
};
|
|
3447
3484
|
|
|
3448
|
-
export function
|
|
3449
|
-
|
|
3485
|
+
export function __wbg_length_0acb1cf9bbaf8519(arg0) {
|
|
3486
|
+
const ret = getObject(arg0).length;
|
|
3450
3487
|
return ret;
|
|
3451
3488
|
};
|
|
3452
3489
|
|
|
3453
|
-
export function
|
|
3454
|
-
|
|
3490
|
+
export function __wbg_newwithlength_8f0657faca9f1422(arg0) {
|
|
3491
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3455
3492
|
return addHeapObject(ret);
|
|
3456
3493
|
};
|
|
3457
3494
|
|
|
3458
|
-
export function
|
|
3459
|
-
|
|
3495
|
+
export function __wbg_subarray_da527dbd24eafb6b(arg0, arg1, arg2) {
|
|
3496
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3460
3497
|
return addHeapObject(ret);
|
|
3461
3498
|
};
|
|
3462
3499
|
|
|
3463
3500
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3501
|
+
const ret = debugString(getObject(arg1));
|
|
3502
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3503
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3467
3504
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3468
3505
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3469
3506
|
};
|
|
@@ -3473,7 +3510,7 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
3473
3510
|
};
|
|
3474
3511
|
|
|
3475
3512
|
export function __wbindgen_memory() {
|
|
3476
|
-
|
|
3513
|
+
const ret = wasm.memory;
|
|
3477
3514
|
return addHeapObject(ret);
|
|
3478
3515
|
};
|
|
3479
3516
|
|