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/node/fleethub_core.js
CHANGED
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
5
|
+
|
|
6
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
7
|
+
|
|
8
|
+
cachedTextDecoder.decode();
|
|
9
|
+
|
|
10
|
+
let cachegetUint8Memory0 = null;
|
|
11
|
+
function getUint8Memory0() {
|
|
12
|
+
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
13
|
+
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
+
}
|
|
15
|
+
return cachegetUint8Memory0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function getStringFromWasm0(ptr, len) {
|
|
19
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
20
|
+
}
|
|
5
21
|
|
|
6
22
|
const heap = new Array(32).fill(undefined);
|
|
7
23
|
|
|
8
24
|
heap.push(undefined, null, true, false);
|
|
9
25
|
|
|
10
|
-
function getObject(idx) { return heap[idx]; }
|
|
11
|
-
|
|
12
26
|
let heap_next = heap.length;
|
|
13
27
|
|
|
28
|
+
function addHeapObject(obj) {
|
|
29
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
30
|
+
const idx = heap_next;
|
|
31
|
+
heap_next = heap[idx];
|
|
32
|
+
|
|
33
|
+
heap[idx] = obj;
|
|
34
|
+
return idx;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getObject(idx) { return heap[idx]; }
|
|
38
|
+
|
|
14
39
|
function dropObject(idx) {
|
|
15
40
|
if (idx < 36) return;
|
|
16
41
|
heap[idx] = heap_next;
|
|
@@ -25,14 +50,6 @@ function takeObject(idx) {
|
|
|
25
50
|
|
|
26
51
|
let WASM_VECTOR_LEN = 0;
|
|
27
52
|
|
|
28
|
-
let cachegetUint8Memory0 = null;
|
|
29
|
-
function getUint8Memory0() {
|
|
30
|
-
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
|
31
|
-
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
32
|
-
}
|
|
33
|
-
return cachegetUint8Memory0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
53
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
37
54
|
|
|
38
55
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -94,23 +111,6 @@ function getInt32Memory0() {
|
|
|
94
111
|
return cachegetInt32Memory0;
|
|
95
112
|
}
|
|
96
113
|
|
|
97
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
98
|
-
|
|
99
|
-
cachedTextDecoder.decode();
|
|
100
|
-
|
|
101
|
-
function getStringFromWasm0(ptr, len) {
|
|
102
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function addHeapObject(obj) {
|
|
106
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
107
|
-
const idx = heap_next;
|
|
108
|
-
heap_next = heap[idx];
|
|
109
|
-
|
|
110
|
-
heap[idx] = obj;
|
|
111
|
-
return idx;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
114
|
function debugString(val) {
|
|
115
115
|
// primitive types
|
|
116
116
|
const type = typeof val;
|
|
@@ -187,6 +187,14 @@ function isLikeNone(x) {
|
|
|
187
187
|
return x === undefined || x === null;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
let cachegetFloat64Memory0 = null;
|
|
191
|
+
function getFloat64Memory0() {
|
|
192
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
193
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
194
|
+
}
|
|
195
|
+
return cachegetFloat64Memory0;
|
|
196
|
+
}
|
|
197
|
+
|
|
190
198
|
const u32CvtShim = new Uint32Array(2);
|
|
191
199
|
|
|
192
200
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
@@ -209,14 +217,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
209
217
|
return result;
|
|
210
218
|
}
|
|
211
219
|
|
|
212
|
-
let cachegetFloat64Memory0 = null;
|
|
213
|
-
function getFloat64Memory0() {
|
|
214
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
215
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
216
|
-
}
|
|
217
|
-
return cachegetFloat64Memory0;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
220
|
let cachegetUint16Memory0 = null;
|
|
221
221
|
function getUint16Memory0() {
|
|
222
222
|
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -234,19 +234,16 @@ function getArrayU16FromWasm0(ptr, len) {
|
|
|
234
234
|
*/
|
|
235
235
|
module.exports.air_squadron_can_equip = function(gear) {
|
|
236
236
|
_assertClass(gear, Gear);
|
|
237
|
-
|
|
237
|
+
const ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
238
238
|
return ret !== 0;
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
242
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
243
|
-
}
|
|
244
241
|
/**
|
|
245
242
|
* @param {OrgType} org_type
|
|
246
243
|
* @returns {boolean}
|
|
247
244
|
*/
|
|
248
245
|
module.exports.org_type_is_single = function(org_type) {
|
|
249
|
-
|
|
246
|
+
const ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
250
247
|
return ret !== 0;
|
|
251
248
|
};
|
|
252
249
|
|
|
@@ -255,7 +252,7 @@ module.exports.org_type_is_single = function(org_type) {
|
|
|
255
252
|
* @returns {Formation}
|
|
256
253
|
*/
|
|
257
254
|
module.exports.org_type_default_formation = function(org_type) {
|
|
258
|
-
|
|
255
|
+
const ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
259
256
|
return takeObject(ret);
|
|
260
257
|
};
|
|
261
258
|
|
|
@@ -264,7 +261,7 @@ module.exports.org_type_default_formation = function(org_type) {
|
|
|
264
261
|
* @returns {boolean}
|
|
265
262
|
*/
|
|
266
263
|
module.exports.org_type_is_player = function(org_type) {
|
|
267
|
-
|
|
264
|
+
const ret = wasm.org_type_is_player(addHeapObject(org_type));
|
|
268
265
|
return ret !== 0;
|
|
269
266
|
};
|
|
270
267
|
|
|
@@ -273,7 +270,7 @@ module.exports.org_type_is_player = function(org_type) {
|
|
|
273
270
|
* @returns {Side}
|
|
274
271
|
*/
|
|
275
272
|
module.exports.org_type_side = function(org_type) {
|
|
276
|
-
|
|
273
|
+
const ret = wasm.org_type_side(addHeapObject(org_type));
|
|
277
274
|
return takeObject(ret);
|
|
278
275
|
};
|
|
279
276
|
|
|
@@ -283,6 +280,17 @@ module.exports.set_panic_hook = function() {
|
|
|
283
280
|
wasm.set_panic_hook();
|
|
284
281
|
};
|
|
285
282
|
|
|
283
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
284
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
288
|
+
const ptr = malloc(arg.length * 1);
|
|
289
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
290
|
+
WASM_VECTOR_LEN = arg.length;
|
|
291
|
+
return ptr;
|
|
292
|
+
}
|
|
293
|
+
|
|
286
294
|
function passArray16ToWasm0(arg, malloc) {
|
|
287
295
|
const ptr = malloc(arg.length * 2);
|
|
288
296
|
getUint16Memory0().set(arg, ptr / 2);
|
|
@@ -339,8 +347,8 @@ class AirSquadron {
|
|
|
339
347
|
* @param {string} arg0
|
|
340
348
|
*/
|
|
341
349
|
set id(arg0) {
|
|
342
|
-
|
|
343
|
-
|
|
350
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
+
const len0 = WASM_VECTOR_LEN;
|
|
344
352
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
345
353
|
}
|
|
346
354
|
/**
|
|
@@ -371,7 +379,7 @@ class AirSquadron {
|
|
|
371
379
|
/**
|
|
372
380
|
*/
|
|
373
381
|
get mode() {
|
|
374
|
-
|
|
382
|
+
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
375
383
|
return takeObject(ret);
|
|
376
384
|
}
|
|
377
385
|
/**
|
|
@@ -385,9 +393,9 @@ class AirSquadron {
|
|
|
385
393
|
* @returns {Gear | undefined}
|
|
386
394
|
*/
|
|
387
395
|
get_gear(key) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
396
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
|
+
const len0 = WASM_VECTOR_LEN;
|
|
398
|
+
const ret = wasm.airsquadron_get_gear(this.ptr, ptr0, len0);
|
|
391
399
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
392
400
|
}
|
|
393
401
|
/**
|
|
@@ -396,7 +404,7 @@ class AirSquadron {
|
|
|
396
404
|
*/
|
|
397
405
|
can_equip(gear) {
|
|
398
406
|
_assertClass(gear, Gear);
|
|
399
|
-
|
|
407
|
+
const ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
400
408
|
return ret !== 0;
|
|
401
409
|
}
|
|
402
410
|
/**
|
|
@@ -441,14 +449,14 @@ class AirSquadron {
|
|
|
441
449
|
* @returns {number}
|
|
442
450
|
*/
|
|
443
451
|
fighter_power() {
|
|
444
|
-
|
|
452
|
+
const ret = wasm.airsquadron_fighter_power(this.ptr);
|
|
445
453
|
return ret;
|
|
446
454
|
}
|
|
447
455
|
/**
|
|
448
456
|
* @returns {number}
|
|
449
457
|
*/
|
|
450
458
|
interception_power() {
|
|
451
|
-
|
|
459
|
+
const ret = wasm.airsquadron_interception_power(this.ptr);
|
|
452
460
|
return ret;
|
|
453
461
|
}
|
|
454
462
|
/**
|
|
@@ -456,7 +464,7 @@ class AirSquadron {
|
|
|
456
464
|
* @returns {number}
|
|
457
465
|
*/
|
|
458
466
|
radius() {
|
|
459
|
-
|
|
467
|
+
const ret = wasm.airsquadron_radius(this.ptr);
|
|
460
468
|
return ret;
|
|
461
469
|
}
|
|
462
470
|
}
|
|
@@ -495,7 +503,7 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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
|
}
|
|
@@ -578,7 +586,7 @@ class Comp {
|
|
|
578
586
|
/**
|
|
579
587
|
*/
|
|
580
588
|
get org_type() {
|
|
581
|
-
|
|
589
|
+
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
582
590
|
return takeObject(ret);
|
|
583
591
|
}
|
|
584
592
|
/**
|
|
@@ -590,7 +598,7 @@ class Comp {
|
|
|
590
598
|
/**
|
|
591
599
|
*/
|
|
592
600
|
get hq_level() {
|
|
593
|
-
|
|
601
|
+
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
594
602
|
return ret;
|
|
595
603
|
}
|
|
596
604
|
/**
|
|
@@ -602,7 +610,7 @@ class Comp {
|
|
|
602
610
|
/**
|
|
603
611
|
*/
|
|
604
612
|
get main() {
|
|
605
|
-
|
|
613
|
+
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
606
614
|
return Fleet.__wrap(ret);
|
|
607
615
|
}
|
|
608
616
|
/**
|
|
@@ -617,7 +625,7 @@ class Comp {
|
|
|
617
625
|
/**
|
|
618
626
|
*/
|
|
619
627
|
get escort() {
|
|
620
|
-
|
|
628
|
+
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
621
629
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
622
630
|
}
|
|
623
631
|
/**
|
|
@@ -635,7 +643,7 @@ class Comp {
|
|
|
635
643
|
/**
|
|
636
644
|
*/
|
|
637
645
|
get route_sup() {
|
|
638
|
-
|
|
646
|
+
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
639
647
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
640
648
|
}
|
|
641
649
|
/**
|
|
@@ -653,7 +661,7 @@ class Comp {
|
|
|
653
661
|
/**
|
|
654
662
|
*/
|
|
655
663
|
get boss_sup() {
|
|
656
|
-
|
|
664
|
+
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
657
665
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
658
666
|
}
|
|
659
667
|
/**
|
|
@@ -672,28 +680,35 @@ class Comp {
|
|
|
672
680
|
* @returns {Side}
|
|
673
681
|
*/
|
|
674
682
|
side() {
|
|
675
|
-
|
|
683
|
+
const ret = wasm.comp_side(this.ptr);
|
|
676
684
|
return takeObject(ret);
|
|
677
685
|
}
|
|
678
686
|
/**
|
|
679
687
|
* @returns {boolean}
|
|
680
688
|
*/
|
|
681
689
|
is_combined() {
|
|
682
|
-
|
|
690
|
+
const ret = wasm.comp_is_combined(this.ptr);
|
|
691
|
+
return ret !== 0;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @returns {boolean}
|
|
695
|
+
*/
|
|
696
|
+
is_player() {
|
|
697
|
+
const ret = wasm.comp_is_player(this.ptr);
|
|
683
698
|
return ret !== 0;
|
|
684
699
|
}
|
|
685
700
|
/**
|
|
686
701
|
* @returns {boolean}
|
|
687
702
|
*/
|
|
688
703
|
is_enemy() {
|
|
689
|
-
|
|
704
|
+
const ret = wasm.comp_is_enemy(this.ptr);
|
|
690
705
|
return ret !== 0;
|
|
691
706
|
}
|
|
692
707
|
/**
|
|
693
708
|
* @returns {CompMeta}
|
|
694
709
|
*/
|
|
695
710
|
meta() {
|
|
696
|
-
|
|
711
|
+
const ret = wasm.comp_meta(this.ptr);
|
|
697
712
|
return takeObject(ret);
|
|
698
713
|
}
|
|
699
714
|
/**
|
|
@@ -722,9 +737,9 @@ class Comp {
|
|
|
722
737
|
* @returns {Ship | undefined}
|
|
723
738
|
*/
|
|
724
739
|
get_ship_with_clone(ft, key) {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
740
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
741
|
+
const len0 = WASM_VECTOR_LEN;
|
|
742
|
+
const ret = wasm.comp_get_ship_with_clone(this.ptr, addHeapObject(ft), ptr0, len0);
|
|
728
743
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
729
744
|
}
|
|
730
745
|
/**
|
|
@@ -735,8 +750,8 @@ class Comp {
|
|
|
735
750
|
get_ship_entity_id(ft, key) {
|
|
736
751
|
try {
|
|
737
752
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
738
|
-
|
|
739
|
-
|
|
753
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
754
|
+
const len0 = WASM_VECTOR_LEN;
|
|
740
755
|
wasm.comp_get_ship_entity_id(retptr, this.ptr, addHeapObject(ft), ptr0, len0);
|
|
741
756
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
742
757
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -755,16 +770,16 @@ class Comp {
|
|
|
755
770
|
* @returns {Ship | undefined}
|
|
756
771
|
*/
|
|
757
772
|
get_ship_by_eid_with_clone(id) {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
773
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
774
|
+
const len0 = WASM_VECTOR_LEN;
|
|
775
|
+
const ret = wasm.comp_get_ship_by_eid_with_clone(this.ptr, ptr0, len0);
|
|
761
776
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
762
777
|
}
|
|
763
778
|
/**
|
|
764
779
|
* @returns {Formation}
|
|
765
780
|
*/
|
|
766
781
|
default_formation() {
|
|
767
|
-
|
|
782
|
+
const ret = wasm.comp_default_formation(this.ptr);
|
|
768
783
|
return takeObject(ret);
|
|
769
784
|
}
|
|
770
785
|
/**
|
|
@@ -773,7 +788,7 @@ class Comp {
|
|
|
773
788
|
* @returns {number}
|
|
774
789
|
*/
|
|
775
790
|
fleet_anti_air(formation_mod) {
|
|
776
|
-
|
|
791
|
+
const ret = wasm.comp_fleet_anti_air(this.ptr, formation_mod);
|
|
777
792
|
return ret;
|
|
778
793
|
}
|
|
779
794
|
/**
|
|
@@ -814,9 +829,19 @@ class Comp {
|
|
|
814
829
|
* @returns {number}
|
|
815
830
|
*/
|
|
816
831
|
transport_point() {
|
|
817
|
-
|
|
832
|
+
const ret = wasm.comp_transport_point(this.ptr);
|
|
818
833
|
return ret;
|
|
819
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* @param {Ship} ship
|
|
837
|
+
* @param {Formation} formation
|
|
838
|
+
* @returns {WarfareShipEnvironment}
|
|
839
|
+
*/
|
|
840
|
+
create_warfare_ship_environment(ship, formation) {
|
|
841
|
+
_assertClass(ship, Ship);
|
|
842
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
843
|
+
return takeObject(ret);
|
|
844
|
+
}
|
|
820
845
|
}
|
|
821
846
|
module.exports.Comp = Comp;
|
|
822
847
|
|
|
@@ -867,7 +892,7 @@ class FhCore {
|
|
|
867
892
|
* @returns {Gear | undefined}
|
|
868
893
|
*/
|
|
869
894
|
create_gear(input) {
|
|
870
|
-
|
|
895
|
+
const ret = wasm.fhcore_create_gear(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
871
896
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
872
897
|
}
|
|
873
898
|
/**
|
|
@@ -875,7 +900,7 @@ class FhCore {
|
|
|
875
900
|
* @returns {Ship | undefined}
|
|
876
901
|
*/
|
|
877
902
|
create_ship(input) {
|
|
878
|
-
|
|
903
|
+
const ret = wasm.fhcore_create_ship(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
879
904
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
880
905
|
}
|
|
881
906
|
/**
|
|
@@ -883,7 +908,7 @@ class FhCore {
|
|
|
883
908
|
* @returns {AirSquadron}
|
|
884
909
|
*/
|
|
885
910
|
create_air_squadron(input) {
|
|
886
|
-
|
|
911
|
+
const ret = wasm.fhcore_create_air_squadron(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
887
912
|
return AirSquadron.__wrap(ret);
|
|
888
913
|
}
|
|
889
914
|
/**
|
|
@@ -891,7 +916,7 @@ class FhCore {
|
|
|
891
916
|
* @returns {Fleet}
|
|
892
917
|
*/
|
|
893
918
|
create_fleet(input) {
|
|
894
|
-
|
|
919
|
+
const ret = wasm.fhcore_create_fleet(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
895
920
|
return Fleet.__wrap(ret);
|
|
896
921
|
}
|
|
897
922
|
/**
|
|
@@ -899,7 +924,7 @@ class FhCore {
|
|
|
899
924
|
* @returns {Org | undefined}
|
|
900
925
|
*/
|
|
901
926
|
create_org(input) {
|
|
902
|
-
|
|
927
|
+
const ret = wasm.fhcore_create_org(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
903
928
|
return ret === 0 ? undefined : Org.__wrap(ret);
|
|
904
929
|
}
|
|
905
930
|
/**
|
|
@@ -907,7 +932,7 @@ class FhCore {
|
|
|
907
932
|
* @returns {Ship | undefined}
|
|
908
933
|
*/
|
|
909
934
|
create_ship_by_id(ship_id) {
|
|
910
|
-
|
|
935
|
+
const ret = wasm.fhcore_create_ship_by_id(this.ptr, ship_id);
|
|
911
936
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
912
937
|
}
|
|
913
938
|
/**
|
|
@@ -916,25 +941,25 @@ class FhCore {
|
|
|
916
941
|
* @returns {Comp}
|
|
917
942
|
*/
|
|
918
943
|
create_comp_by_map_enemy(main, escort) {
|
|
919
|
-
|
|
920
|
-
|
|
944
|
+
const ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
945
|
+
const len0 = WASM_VECTOR_LEN;
|
|
921
946
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
922
947
|
var len1 = WASM_VECTOR_LEN;
|
|
923
|
-
|
|
948
|
+
const ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
924
949
|
return Comp.__wrap(ret);
|
|
925
950
|
}
|
|
926
951
|
/**
|
|
927
952
|
* @returns {Ship}
|
|
928
953
|
*/
|
|
929
954
|
create_default_ship() {
|
|
930
|
-
|
|
955
|
+
const ret = wasm.fhcore_create_default_ship(this.ptr);
|
|
931
956
|
return Ship.__wrap(ret);
|
|
932
957
|
}
|
|
933
958
|
/**
|
|
934
959
|
* @returns {Analyzer}
|
|
935
960
|
*/
|
|
936
961
|
create_analyzer() {
|
|
937
|
-
|
|
962
|
+
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
938
963
|
return Analyzer.__wrap(ret);
|
|
939
964
|
}
|
|
940
965
|
/**
|
|
@@ -1005,8 +1030,8 @@ class Fleet {
|
|
|
1005
1030
|
* @param {string} arg0
|
|
1006
1031
|
*/
|
|
1007
1032
|
set id(arg0) {
|
|
1008
|
-
|
|
1009
|
-
|
|
1033
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1034
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1010
1035
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
1011
1036
|
}
|
|
1012
1037
|
/**
|
|
@@ -1037,7 +1062,7 @@ class Fleet {
|
|
|
1037
1062
|
/**
|
|
1038
1063
|
*/
|
|
1039
1064
|
get len() {
|
|
1040
|
-
|
|
1065
|
+
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
1041
1066
|
return ret >>> 0;
|
|
1042
1067
|
}
|
|
1043
1068
|
/**
|
|
@@ -1050,7 +1075,7 @@ class Fleet {
|
|
|
1050
1075
|
* @returns {FleetMeta}
|
|
1051
1076
|
*/
|
|
1052
1077
|
meta() {
|
|
1053
|
-
|
|
1078
|
+
const ret = wasm.fleet_meta(this.ptr);
|
|
1054
1079
|
return takeObject(ret);
|
|
1055
1080
|
}
|
|
1056
1081
|
/**
|
|
@@ -1123,9 +1148,9 @@ class Fleet {
|
|
|
1123
1148
|
* @returns {number | undefined}
|
|
1124
1149
|
*/
|
|
1125
1150
|
get_damage_bound(id, state) {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1151
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1152
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1153
|
+
const ret = wasm.fleet_get_damage_bound(this.ptr, ptr0, len0, addHeapObject(state));
|
|
1129
1154
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1130
1155
|
}
|
|
1131
1156
|
/**
|
|
@@ -1135,9 +1160,9 @@ class Fleet {
|
|
|
1135
1160
|
* @returns {number | undefined}
|
|
1136
1161
|
*/
|
|
1137
1162
|
get_remaining_fuel(id, rate, ceil) {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1163
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1164
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1165
|
+
const ret = wasm.fleet_get_remaining_fuel(this.ptr, ptr0, len0, rate, ceil);
|
|
1141
1166
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1142
1167
|
}
|
|
1143
1168
|
/**
|
|
@@ -1147,16 +1172,16 @@ class Fleet {
|
|
|
1147
1172
|
* @returns {number | undefined}
|
|
1148
1173
|
*/
|
|
1149
1174
|
get_remaining_ammo(id, rate, ceil) {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1175
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1176
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1177
|
+
const ret = wasm.fleet_get_remaining_ammo(this.ptr, ptr0, len0, rate, ceil);
|
|
1153
1178
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1154
1179
|
}
|
|
1155
1180
|
/**
|
|
1156
1181
|
* @returns {number}
|
|
1157
1182
|
*/
|
|
1158
1183
|
count_ships() {
|
|
1159
|
-
|
|
1184
|
+
const ret = wasm.fleet_count_ships(this.ptr);
|
|
1160
1185
|
return ret >>> 0;
|
|
1161
1186
|
}
|
|
1162
1187
|
/**
|
|
@@ -1164,9 +1189,9 @@ class Fleet {
|
|
|
1164
1189
|
* @returns {Ship | undefined}
|
|
1165
1190
|
*/
|
|
1166
1191
|
get_ship(key) {
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1192
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1193
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1194
|
+
const ret = wasm.fleet_get_ship(this.ptr, ptr0, len0);
|
|
1170
1195
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1171
1196
|
}
|
|
1172
1197
|
/**
|
|
@@ -1235,7 +1260,7 @@ class Fleet {
|
|
|
1235
1260
|
* @returns {number}
|
|
1236
1261
|
*/
|
|
1237
1262
|
expedition_bonus() {
|
|
1238
|
-
|
|
1263
|
+
const ret = wasm.fleet_expedition_bonus(this.ptr);
|
|
1239
1264
|
return ret;
|
|
1240
1265
|
}
|
|
1241
1266
|
/**
|
|
@@ -1245,8 +1270,8 @@ class Fleet {
|
|
|
1245
1270
|
sum_ship_stat_by(key) {
|
|
1246
1271
|
try {
|
|
1247
1272
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1248
|
-
|
|
1249
|
-
|
|
1273
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1274
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1250
1275
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1251
1276
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1252
1277
|
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
@@ -1304,8 +1329,8 @@ class Gear {
|
|
|
1304
1329
|
* @param {string} arg0
|
|
1305
1330
|
*/
|
|
1306
1331
|
set id(arg0) {
|
|
1307
|
-
|
|
1308
|
-
|
|
1332
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1333
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1309
1334
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1310
1335
|
}
|
|
1311
1336
|
/**
|
|
@@ -1336,7 +1361,7 @@ class Gear {
|
|
|
1336
1361
|
/**
|
|
1337
1362
|
*/
|
|
1338
1363
|
get gear_id() {
|
|
1339
|
-
|
|
1364
|
+
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1340
1365
|
return ret;
|
|
1341
1366
|
}
|
|
1342
1367
|
/**
|
|
@@ -1348,7 +1373,7 @@ class Gear {
|
|
|
1348
1373
|
/**
|
|
1349
1374
|
*/
|
|
1350
1375
|
get stars() {
|
|
1351
|
-
|
|
1376
|
+
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1352
1377
|
return ret;
|
|
1353
1378
|
}
|
|
1354
1379
|
/**
|
|
@@ -1360,7 +1385,7 @@ class Gear {
|
|
|
1360
1385
|
/**
|
|
1361
1386
|
*/
|
|
1362
1387
|
get exp() {
|
|
1363
|
-
|
|
1388
|
+
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1364
1389
|
return ret;
|
|
1365
1390
|
}
|
|
1366
1391
|
/**
|
|
@@ -1372,7 +1397,7 @@ class Gear {
|
|
|
1372
1397
|
/**
|
|
1373
1398
|
*/
|
|
1374
1399
|
get default_exp() {
|
|
1375
|
-
|
|
1400
|
+
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1376
1401
|
return ret;
|
|
1377
1402
|
}
|
|
1378
1403
|
/**
|
|
@@ -1399,14 +1424,37 @@ class Gear {
|
|
|
1399
1424
|
* @param {string} arg0
|
|
1400
1425
|
*/
|
|
1401
1426
|
set name(arg0) {
|
|
1402
|
-
|
|
1403
|
-
|
|
1427
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1428
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1404
1429
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1405
1430
|
}
|
|
1406
1431
|
/**
|
|
1407
1432
|
*/
|
|
1433
|
+
get types() {
|
|
1434
|
+
try {
|
|
1435
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1436
|
+
wasm.__wbg_get_gear_types(retptr, this.ptr);
|
|
1437
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1438
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1439
|
+
var v0 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1440
|
+
wasm.__wbindgen_free(r0, r1 * 1);
|
|
1441
|
+
return v0;
|
|
1442
|
+
} finally {
|
|
1443
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* @param {Uint8Array} arg0
|
|
1448
|
+
*/
|
|
1449
|
+
set types(arg0) {
|
|
1450
|
+
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1451
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1452
|
+
wasm.__wbg_set_gear_types(this.ptr, ptr0, len0);
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
*/
|
|
1408
1456
|
get gear_type() {
|
|
1409
|
-
|
|
1457
|
+
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1410
1458
|
return takeObject(ret);
|
|
1411
1459
|
}
|
|
1412
1460
|
/**
|
|
@@ -1418,7 +1466,7 @@ class Gear {
|
|
|
1418
1466
|
/**
|
|
1419
1467
|
*/
|
|
1420
1468
|
get max_hp() {
|
|
1421
|
-
|
|
1469
|
+
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1422
1470
|
return ret;
|
|
1423
1471
|
}
|
|
1424
1472
|
/**
|
|
@@ -1430,7 +1478,7 @@ class Gear {
|
|
|
1430
1478
|
/**
|
|
1431
1479
|
*/
|
|
1432
1480
|
get firepower() {
|
|
1433
|
-
|
|
1481
|
+
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1434
1482
|
return ret;
|
|
1435
1483
|
}
|
|
1436
1484
|
/**
|
|
@@ -1442,7 +1490,7 @@ class Gear {
|
|
|
1442
1490
|
/**
|
|
1443
1491
|
*/
|
|
1444
1492
|
get armor() {
|
|
1445
|
-
|
|
1493
|
+
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1446
1494
|
return ret;
|
|
1447
1495
|
}
|
|
1448
1496
|
/**
|
|
@@ -1454,7 +1502,7 @@ class Gear {
|
|
|
1454
1502
|
/**
|
|
1455
1503
|
*/
|
|
1456
1504
|
get torpedo() {
|
|
1457
|
-
|
|
1505
|
+
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1458
1506
|
return ret;
|
|
1459
1507
|
}
|
|
1460
1508
|
/**
|
|
@@ -1466,7 +1514,7 @@ class Gear {
|
|
|
1466
1514
|
/**
|
|
1467
1515
|
*/
|
|
1468
1516
|
get anti_air() {
|
|
1469
|
-
|
|
1517
|
+
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1470
1518
|
return ret;
|
|
1471
1519
|
}
|
|
1472
1520
|
/**
|
|
@@ -1478,7 +1526,7 @@ class Gear {
|
|
|
1478
1526
|
/**
|
|
1479
1527
|
*/
|
|
1480
1528
|
get speed() {
|
|
1481
|
-
|
|
1529
|
+
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1482
1530
|
return ret;
|
|
1483
1531
|
}
|
|
1484
1532
|
/**
|
|
@@ -1490,7 +1538,7 @@ class Gear {
|
|
|
1490
1538
|
/**
|
|
1491
1539
|
*/
|
|
1492
1540
|
get bombing() {
|
|
1493
|
-
|
|
1541
|
+
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1494
1542
|
return ret;
|
|
1495
1543
|
}
|
|
1496
1544
|
/**
|
|
@@ -1502,7 +1550,7 @@ class Gear {
|
|
|
1502
1550
|
/**
|
|
1503
1551
|
*/
|
|
1504
1552
|
get asw() {
|
|
1505
|
-
|
|
1553
|
+
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1506
1554
|
return ret;
|
|
1507
1555
|
}
|
|
1508
1556
|
/**
|
|
@@ -1514,7 +1562,7 @@ class Gear {
|
|
|
1514
1562
|
/**
|
|
1515
1563
|
*/
|
|
1516
1564
|
get los() {
|
|
1517
|
-
|
|
1565
|
+
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1518
1566
|
return ret;
|
|
1519
1567
|
}
|
|
1520
1568
|
/**
|
|
@@ -1526,7 +1574,7 @@ class Gear {
|
|
|
1526
1574
|
/**
|
|
1527
1575
|
*/
|
|
1528
1576
|
get luck() {
|
|
1529
|
-
|
|
1577
|
+
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1530
1578
|
return ret;
|
|
1531
1579
|
}
|
|
1532
1580
|
/**
|
|
@@ -1538,7 +1586,7 @@ class Gear {
|
|
|
1538
1586
|
/**
|
|
1539
1587
|
*/
|
|
1540
1588
|
get accuracy() {
|
|
1541
|
-
|
|
1589
|
+
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1542
1590
|
return ret;
|
|
1543
1591
|
}
|
|
1544
1592
|
/**
|
|
@@ -1550,7 +1598,7 @@ class Gear {
|
|
|
1550
1598
|
/**
|
|
1551
1599
|
*/
|
|
1552
1600
|
get evasion() {
|
|
1553
|
-
|
|
1601
|
+
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1554
1602
|
return ret;
|
|
1555
1603
|
}
|
|
1556
1604
|
/**
|
|
@@ -1562,7 +1610,7 @@ class Gear {
|
|
|
1562
1610
|
/**
|
|
1563
1611
|
*/
|
|
1564
1612
|
get range() {
|
|
1565
|
-
|
|
1613
|
+
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1566
1614
|
return ret;
|
|
1567
1615
|
}
|
|
1568
1616
|
/**
|
|
@@ -1574,7 +1622,7 @@ class Gear {
|
|
|
1574
1622
|
/**
|
|
1575
1623
|
*/
|
|
1576
1624
|
get radius() {
|
|
1577
|
-
|
|
1625
|
+
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1578
1626
|
return ret;
|
|
1579
1627
|
}
|
|
1580
1628
|
/**
|
|
@@ -1586,7 +1634,7 @@ class Gear {
|
|
|
1586
1634
|
/**
|
|
1587
1635
|
*/
|
|
1588
1636
|
get cost() {
|
|
1589
|
-
|
|
1637
|
+
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1590
1638
|
return ret;
|
|
1591
1639
|
}
|
|
1592
1640
|
/**
|
|
@@ -1598,7 +1646,7 @@ class Gear {
|
|
|
1598
1646
|
/**
|
|
1599
1647
|
*/
|
|
1600
1648
|
get improvable() {
|
|
1601
|
-
|
|
1649
|
+
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1602
1650
|
return ret !== 0;
|
|
1603
1651
|
}
|
|
1604
1652
|
/**
|
|
@@ -1610,7 +1658,7 @@ class Gear {
|
|
|
1610
1658
|
/**
|
|
1611
1659
|
*/
|
|
1612
1660
|
get adjusted_anti_air_resistance() {
|
|
1613
|
-
|
|
1661
|
+
const ret = wasm.__wbg_get_gear_adjusted_anti_air_resistance(this.ptr);
|
|
1614
1662
|
return ret;
|
|
1615
1663
|
}
|
|
1616
1664
|
/**
|
|
@@ -1622,7 +1670,7 @@ class Gear {
|
|
|
1622
1670
|
/**
|
|
1623
1671
|
*/
|
|
1624
1672
|
get fleet_anti_air_resistance() {
|
|
1625
|
-
|
|
1673
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1626
1674
|
return ret;
|
|
1627
1675
|
}
|
|
1628
1676
|
/**
|
|
@@ -1635,35 +1683,28 @@ class Gear {
|
|
|
1635
1683
|
* @returns {Gear}
|
|
1636
1684
|
*/
|
|
1637
1685
|
static default() {
|
|
1638
|
-
|
|
1686
|
+
const ret = wasm.gear_default();
|
|
1639
1687
|
return Gear.__wrap(ret);
|
|
1640
1688
|
}
|
|
1641
1689
|
/**
|
|
1642
|
-
* @returns {any}
|
|
1643
|
-
*/
|
|
1644
|
-
get types() {
|
|
1645
|
-
var ret = wasm.gear_types(this.ptr);
|
|
1646
|
-
return takeObject(ret);
|
|
1647
|
-
}
|
|
1648
|
-
/**
|
|
1649
1690
|
* @returns {number}
|
|
1650
1691
|
*/
|
|
1651
1692
|
get gear_type_id() {
|
|
1652
|
-
|
|
1693
|
+
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1653
1694
|
return ret;
|
|
1654
1695
|
}
|
|
1655
1696
|
/**
|
|
1656
1697
|
* @returns {number}
|
|
1657
1698
|
*/
|
|
1658
1699
|
get special_type_id() {
|
|
1659
|
-
|
|
1700
|
+
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1660
1701
|
return ret;
|
|
1661
1702
|
}
|
|
1662
1703
|
/**
|
|
1663
1704
|
* @returns {number}
|
|
1664
1705
|
*/
|
|
1665
1706
|
get icon_id() {
|
|
1666
|
-
|
|
1707
|
+
const ret = wasm.gear_icon_id(this.ptr);
|
|
1667
1708
|
return ret;
|
|
1668
1709
|
}
|
|
1669
1710
|
/**
|
|
@@ -1671,63 +1712,63 @@ class Gear {
|
|
|
1671
1712
|
* @returns {boolean}
|
|
1672
1713
|
*/
|
|
1673
1714
|
has_attr(attr) {
|
|
1674
|
-
|
|
1715
|
+
const ret = wasm.gear_has_attr(this.ptr, addHeapObject(attr));
|
|
1675
1716
|
return ret !== 0;
|
|
1676
1717
|
}
|
|
1677
1718
|
/**
|
|
1678
1719
|
* @returns {GearCategory}
|
|
1679
1720
|
*/
|
|
1680
1721
|
category() {
|
|
1681
|
-
|
|
1722
|
+
const ret = wasm.gear_category(this.ptr);
|
|
1682
1723
|
return takeObject(ret);
|
|
1683
1724
|
}
|
|
1684
1725
|
/**
|
|
1685
1726
|
* @returns {number}
|
|
1686
1727
|
*/
|
|
1687
1728
|
get ace() {
|
|
1688
|
-
|
|
1729
|
+
const ret = wasm.gear_ace(this.ptr);
|
|
1689
1730
|
return ret;
|
|
1690
1731
|
}
|
|
1691
1732
|
/**
|
|
1692
1733
|
* @returns {number}
|
|
1693
1734
|
*/
|
|
1694
1735
|
get anti_bomber() {
|
|
1695
|
-
|
|
1736
|
+
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1696
1737
|
return ret;
|
|
1697
1738
|
}
|
|
1698
1739
|
/**
|
|
1699
1740
|
* @returns {number}
|
|
1700
1741
|
*/
|
|
1701
1742
|
get interception() {
|
|
1702
|
-
|
|
1743
|
+
const ret = wasm.gear_interception(this.ptr);
|
|
1703
1744
|
return ret;
|
|
1704
1745
|
}
|
|
1705
1746
|
/**
|
|
1706
1747
|
* @returns {boolean}
|
|
1707
1748
|
*/
|
|
1708
1749
|
is_carrier_shelling_plane() {
|
|
1709
|
-
|
|
1750
|
+
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1710
1751
|
return ret !== 0;
|
|
1711
1752
|
}
|
|
1712
1753
|
/**
|
|
1713
1754
|
* @returns {boolean}
|
|
1714
1755
|
*/
|
|
1715
1756
|
has_proficiency() {
|
|
1716
|
-
|
|
1757
|
+
const ret = wasm.gear_has_proficiency(this.ptr);
|
|
1717
1758
|
return ret !== 0;
|
|
1718
1759
|
}
|
|
1719
1760
|
/**
|
|
1720
1761
|
* @returns {boolean}
|
|
1721
1762
|
*/
|
|
1722
1763
|
max_exp_eq_120() {
|
|
1723
|
-
|
|
1764
|
+
const ret = wasm.gear_max_exp_eq_120(this.ptr);
|
|
1724
1765
|
return ret !== 0;
|
|
1725
1766
|
}
|
|
1726
1767
|
/**
|
|
1727
1768
|
* @returns {number}
|
|
1728
1769
|
*/
|
|
1729
1770
|
proficiency_critical_power_mod() {
|
|
1730
|
-
|
|
1771
|
+
const ret = wasm.gear_proficiency_critical_power_mod(this.ptr);
|
|
1731
1772
|
return ret;
|
|
1732
1773
|
}
|
|
1733
1774
|
/**
|
|
@@ -1735,7 +1776,7 @@ class Gear {
|
|
|
1735
1776
|
* @returns {number}
|
|
1736
1777
|
*/
|
|
1737
1778
|
calc_fighter_power(slot_size) {
|
|
1738
|
-
|
|
1779
|
+
const ret = wasm.gear_calc_fighter_power(this.ptr, slot_size);
|
|
1739
1780
|
return ret;
|
|
1740
1781
|
}
|
|
1741
1782
|
/**
|
|
@@ -1743,21 +1784,21 @@ class Gear {
|
|
|
1743
1784
|
* @returns {number}
|
|
1744
1785
|
*/
|
|
1745
1786
|
calc_interception_power(slot_size) {
|
|
1746
|
-
|
|
1787
|
+
const ret = wasm.gear_calc_interception_power(this.ptr, slot_size);
|
|
1747
1788
|
return ret;
|
|
1748
1789
|
}
|
|
1749
1790
|
/**
|
|
1750
1791
|
* @returns {number}
|
|
1751
1792
|
*/
|
|
1752
1793
|
fleet_anti_air() {
|
|
1753
|
-
|
|
1794
|
+
const ret = wasm.gear_fleet_anti_air(this.ptr);
|
|
1754
1795
|
return ret;
|
|
1755
1796
|
}
|
|
1756
1797
|
/**
|
|
1757
1798
|
* @returns {number}
|
|
1758
1799
|
*/
|
|
1759
1800
|
adjusted_anti_air() {
|
|
1760
|
-
|
|
1801
|
+
const ret = wasm.gear_adjusted_anti_air(this.ptr);
|
|
1761
1802
|
return ret;
|
|
1762
1803
|
}
|
|
1763
1804
|
/**
|
|
@@ -1765,7 +1806,7 @@ class Gear {
|
|
|
1765
1806
|
* @returns {number}
|
|
1766
1807
|
*/
|
|
1767
1808
|
calc_contact_trigger_factor(slot_size) {
|
|
1768
|
-
|
|
1809
|
+
const ret = wasm.gear_calc_contact_trigger_factor(this.ptr, slot_size);
|
|
1769
1810
|
return ret;
|
|
1770
1811
|
}
|
|
1771
1812
|
/**
|
|
@@ -1773,7 +1814,7 @@ class Gear {
|
|
|
1773
1814
|
* @returns {number}
|
|
1774
1815
|
*/
|
|
1775
1816
|
contact_selection_rate(rank) {
|
|
1776
|
-
|
|
1817
|
+
const ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1777
1818
|
return ret;
|
|
1778
1819
|
}
|
|
1779
1820
|
/**
|
|
@@ -1781,14 +1822,14 @@ class Gear {
|
|
|
1781
1822
|
* @returns {number}
|
|
1782
1823
|
*/
|
|
1783
1824
|
night_contact_rate(level) {
|
|
1784
|
-
|
|
1825
|
+
const ret = wasm.gear_night_contact_rate(this.ptr, level);
|
|
1785
1826
|
return ret;
|
|
1786
1827
|
}
|
|
1787
1828
|
/**
|
|
1788
1829
|
* @returns {boolean}
|
|
1789
1830
|
*/
|
|
1790
1831
|
is_night_plane() {
|
|
1791
|
-
|
|
1832
|
+
const ret = wasm.gear_is_night_plane(this.ptr);
|
|
1792
1833
|
return ret !== 0;
|
|
1793
1834
|
}
|
|
1794
1835
|
/**
|
|
@@ -1797,42 +1838,42 @@ class Gear {
|
|
|
1797
1838
|
* @returns {number}
|
|
1798
1839
|
*/
|
|
1799
1840
|
night_plane_power(slot_size, anti_inst) {
|
|
1800
|
-
|
|
1841
|
+
const ret = wasm.gear_night_plane_power(this.ptr, slot_size, anti_inst);
|
|
1801
1842
|
return ret;
|
|
1802
1843
|
}
|
|
1803
1844
|
/**
|
|
1804
1845
|
* @returns {number}
|
|
1805
1846
|
*/
|
|
1806
1847
|
elos() {
|
|
1807
|
-
|
|
1848
|
+
const ret = wasm.gear_elos(this.ptr);
|
|
1808
1849
|
return ret;
|
|
1809
1850
|
}
|
|
1810
1851
|
/**
|
|
1811
1852
|
* @returns {boolean}
|
|
1812
1853
|
*/
|
|
1813
1854
|
is_abyssal() {
|
|
1814
|
-
|
|
1855
|
+
const ret = wasm.gear_is_abyssal(this.ptr);
|
|
1815
1856
|
return ret !== 0;
|
|
1816
1857
|
}
|
|
1817
1858
|
/**
|
|
1818
1859
|
* @returns {boolean}
|
|
1819
1860
|
*/
|
|
1820
1861
|
is_abyssal_cuttlefish_torpedo() {
|
|
1821
|
-
|
|
1862
|
+
const ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1822
1863
|
return ret !== 0;
|
|
1823
1864
|
}
|
|
1824
1865
|
/**
|
|
1825
1866
|
* @returns {boolean}
|
|
1826
1867
|
*/
|
|
1827
1868
|
is_abyssal_patrolling_attack_hawk() {
|
|
1828
|
-
|
|
1869
|
+
const ret = wasm.gear_is_abyssal_patrolling_attack_hawk(this.ptr);
|
|
1829
1870
|
return ret !== 0;
|
|
1830
1871
|
}
|
|
1831
1872
|
/**
|
|
1832
1873
|
* @returns {number}
|
|
1833
1874
|
*/
|
|
1834
1875
|
expedition_bonus() {
|
|
1835
|
-
|
|
1876
|
+
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1836
1877
|
return ret;
|
|
1837
1878
|
}
|
|
1838
1879
|
}
|
|
@@ -1857,7 +1898,7 @@ class IBonuses {
|
|
|
1857
1898
|
/**
|
|
1858
1899
|
*/
|
|
1859
1900
|
get shelling_power() {
|
|
1860
|
-
|
|
1901
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1861
1902
|
return ret;
|
|
1862
1903
|
}
|
|
1863
1904
|
/**
|
|
@@ -1869,7 +1910,7 @@ class IBonuses {
|
|
|
1869
1910
|
/**
|
|
1870
1911
|
*/
|
|
1871
1912
|
get carrier_shelling_power() {
|
|
1872
|
-
|
|
1913
|
+
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1873
1914
|
return ret;
|
|
1874
1915
|
}
|
|
1875
1916
|
/**
|
|
@@ -1881,7 +1922,7 @@ class IBonuses {
|
|
|
1881
1922
|
/**
|
|
1882
1923
|
*/
|
|
1883
1924
|
get shelling_accuracy() {
|
|
1884
|
-
|
|
1925
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1885
1926
|
return ret;
|
|
1886
1927
|
}
|
|
1887
1928
|
/**
|
|
@@ -1893,7 +1934,7 @@ class IBonuses {
|
|
|
1893
1934
|
/**
|
|
1894
1935
|
*/
|
|
1895
1936
|
get torpedo_power() {
|
|
1896
|
-
|
|
1937
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1897
1938
|
return ret;
|
|
1898
1939
|
}
|
|
1899
1940
|
/**
|
|
@@ -1905,7 +1946,7 @@ class IBonuses {
|
|
|
1905
1946
|
/**
|
|
1906
1947
|
*/
|
|
1907
1948
|
get torpedo_accuracy() {
|
|
1908
|
-
|
|
1949
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1909
1950
|
return ret;
|
|
1910
1951
|
}
|
|
1911
1952
|
/**
|
|
@@ -1917,7 +1958,7 @@ class IBonuses {
|
|
|
1917
1958
|
/**
|
|
1918
1959
|
*/
|
|
1919
1960
|
get torpedo_evasion() {
|
|
1920
|
-
|
|
1961
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1921
1962
|
return ret;
|
|
1922
1963
|
}
|
|
1923
1964
|
/**
|
|
@@ -1929,7 +1970,7 @@ class IBonuses {
|
|
|
1929
1970
|
/**
|
|
1930
1971
|
*/
|
|
1931
1972
|
get asw_power() {
|
|
1932
|
-
|
|
1973
|
+
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1933
1974
|
return ret;
|
|
1934
1975
|
}
|
|
1935
1976
|
/**
|
|
@@ -1941,7 +1982,7 @@ class IBonuses {
|
|
|
1941
1982
|
/**
|
|
1942
1983
|
*/
|
|
1943
1984
|
get asw_accuracy() {
|
|
1944
|
-
|
|
1985
|
+
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1945
1986
|
return ret;
|
|
1946
1987
|
}
|
|
1947
1988
|
/**
|
|
@@ -1953,7 +1994,7 @@ class IBonuses {
|
|
|
1953
1994
|
/**
|
|
1954
1995
|
*/
|
|
1955
1996
|
get night_power() {
|
|
1956
|
-
|
|
1997
|
+
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1957
1998
|
return ret;
|
|
1958
1999
|
}
|
|
1959
2000
|
/**
|
|
@@ -1965,7 +2006,7 @@ class IBonuses {
|
|
|
1965
2006
|
/**
|
|
1966
2007
|
*/
|
|
1967
2008
|
get night_accuracy() {
|
|
1968
|
-
|
|
2009
|
+
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1969
2010
|
return ret;
|
|
1970
2011
|
}
|
|
1971
2012
|
/**
|
|
@@ -1977,7 +2018,7 @@ class IBonuses {
|
|
|
1977
2018
|
/**
|
|
1978
2019
|
*/
|
|
1979
2020
|
get defense_power() {
|
|
1980
|
-
|
|
2021
|
+
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1981
2022
|
return ret;
|
|
1982
2023
|
}
|
|
1983
2024
|
/**
|
|
@@ -1989,7 +2030,7 @@ class IBonuses {
|
|
|
1989
2030
|
/**
|
|
1990
2031
|
*/
|
|
1991
2032
|
get contact_selection() {
|
|
1992
|
-
|
|
2033
|
+
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
1993
2034
|
return ret;
|
|
1994
2035
|
}
|
|
1995
2036
|
/**
|
|
@@ -2001,7 +2042,7 @@ class IBonuses {
|
|
|
2001
2042
|
/**
|
|
2002
2043
|
*/
|
|
2003
2044
|
get fighter_power() {
|
|
2004
|
-
|
|
2045
|
+
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
2005
2046
|
return ret;
|
|
2006
2047
|
}
|
|
2007
2048
|
/**
|
|
@@ -2013,7 +2054,7 @@ class IBonuses {
|
|
|
2013
2054
|
/**
|
|
2014
2055
|
*/
|
|
2015
2056
|
get adjusted_anti_air() {
|
|
2016
|
-
|
|
2057
|
+
const ret = wasm.__wbg_get_ibonuses_adjusted_anti_air(this.ptr);
|
|
2017
2058
|
return ret;
|
|
2018
2059
|
}
|
|
2019
2060
|
/**
|
|
@@ -2025,7 +2066,7 @@ class IBonuses {
|
|
|
2025
2066
|
/**
|
|
2026
2067
|
*/
|
|
2027
2068
|
get fleet_anti_air() {
|
|
2028
|
-
|
|
2069
|
+
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
2029
2070
|
return ret;
|
|
2030
2071
|
}
|
|
2031
2072
|
/**
|
|
@@ -2037,7 +2078,7 @@ class IBonuses {
|
|
|
2037
2078
|
/**
|
|
2038
2079
|
*/
|
|
2039
2080
|
get elos() {
|
|
2040
|
-
|
|
2081
|
+
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
2041
2082
|
return ret;
|
|
2042
2083
|
}
|
|
2043
2084
|
/**
|
|
@@ -2090,8 +2131,8 @@ class Org {
|
|
|
2090
2131
|
* @param {string} arg0
|
|
2091
2132
|
*/
|
|
2092
2133
|
set id(arg0) {
|
|
2093
|
-
|
|
2094
|
-
|
|
2134
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2135
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2095
2136
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
2096
2137
|
}
|
|
2097
2138
|
/**
|
|
@@ -2122,7 +2163,7 @@ class Org {
|
|
|
2122
2163
|
/**
|
|
2123
2164
|
*/
|
|
2124
2165
|
get hq_level() {
|
|
2125
|
-
|
|
2166
|
+
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2126
2167
|
return ret;
|
|
2127
2168
|
}
|
|
2128
2169
|
/**
|
|
@@ -2134,7 +2175,7 @@ class Org {
|
|
|
2134
2175
|
/**
|
|
2135
2176
|
*/
|
|
2136
2177
|
get org_type() {
|
|
2137
|
-
|
|
2178
|
+
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2138
2179
|
return takeObject(ret);
|
|
2139
2180
|
}
|
|
2140
2181
|
/**
|
|
@@ -2161,8 +2202,8 @@ class Org {
|
|
|
2161
2202
|
* @param {string} arg0
|
|
2162
2203
|
*/
|
|
2163
2204
|
set sortie(arg0) {
|
|
2164
|
-
|
|
2165
|
-
|
|
2205
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2206
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2166
2207
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2167
2208
|
}
|
|
2168
2209
|
/**
|
|
@@ -2222,7 +2263,7 @@ class Org {
|
|
|
2222
2263
|
* @returns {number}
|
|
2223
2264
|
*/
|
|
2224
2265
|
fleet_len(role) {
|
|
2225
|
-
|
|
2266
|
+
const ret = wasm.org_fleet_len(this.ptr, addHeapObject(role));
|
|
2226
2267
|
return ret >>> 0;
|
|
2227
2268
|
}
|
|
2228
2269
|
/**
|
|
@@ -2233,8 +2274,8 @@ class Org {
|
|
|
2233
2274
|
get_ship_entity_id(role, key) {
|
|
2234
2275
|
try {
|
|
2235
2276
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2236
|
-
|
|
2237
|
-
|
|
2277
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2278
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2238
2279
|
wasm.org_get_ship_entity_id(retptr, this.ptr, addHeapObject(role), ptr0, len0);
|
|
2239
2280
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2240
2281
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2316,9 +2357,9 @@ class Org {
|
|
|
2316
2357
|
* @returns {Fleet}
|
|
2317
2358
|
*/
|
|
2318
2359
|
clone_fleet(key) {
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2360
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2361
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2362
|
+
const ret = wasm.org_clone_fleet(this.ptr, ptr0, len0);
|
|
2322
2363
|
return Fleet.__wrap(ret);
|
|
2323
2364
|
}
|
|
2324
2365
|
/**
|
|
@@ -2327,9 +2368,9 @@ class Org {
|
|
|
2327
2368
|
* @returns {Ship | undefined}
|
|
2328
2369
|
*/
|
|
2329
2370
|
get_ship(role, key) {
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2371
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2372
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2373
|
+
const ret = wasm.org_get_ship(this.ptr, addHeapObject(role), ptr0, len0);
|
|
2333
2374
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2334
2375
|
}
|
|
2335
2376
|
/**
|
|
@@ -2337,9 +2378,9 @@ class Org {
|
|
|
2337
2378
|
* @returns {Ship | undefined}
|
|
2338
2379
|
*/
|
|
2339
2380
|
get_ship_by_id(id) {
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2381
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2382
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2383
|
+
const ret = wasm.org_get_ship_by_id(this.ptr, ptr0, len0);
|
|
2343
2384
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2344
2385
|
}
|
|
2345
2386
|
/**
|
|
@@ -2362,7 +2403,7 @@ class Org {
|
|
|
2362
2403
|
* @returns {Comp}
|
|
2363
2404
|
*/
|
|
2364
2405
|
create_comp() {
|
|
2365
|
-
|
|
2406
|
+
const ret = wasm.org_create_comp(this.ptr);
|
|
2366
2407
|
return Comp.__wrap(ret);
|
|
2367
2408
|
}
|
|
2368
2409
|
/**
|
|
@@ -2370,9 +2411,9 @@ class Org {
|
|
|
2370
2411
|
* @returns {Comp}
|
|
2371
2412
|
*/
|
|
2372
2413
|
create_comp_by_key(key) {
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2414
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2415
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2416
|
+
const ret = wasm.org_create_comp_by_key(this.ptr, ptr0, len0);
|
|
2376
2417
|
return Comp.__wrap(ret);
|
|
2377
2418
|
}
|
|
2378
2419
|
/**
|
|
@@ -2382,8 +2423,8 @@ class Org {
|
|
|
2382
2423
|
get_air_squadron(key) {
|
|
2383
2424
|
try {
|
|
2384
2425
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2385
|
-
|
|
2386
|
-
|
|
2426
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2427
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2387
2428
|
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2388
2429
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2389
2430
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2429,31 +2470,38 @@ class Org {
|
|
|
2429
2470
|
}
|
|
2430
2471
|
}
|
|
2431
2472
|
/**
|
|
2473
|
+
* @returns {Side}
|
|
2474
|
+
*/
|
|
2475
|
+
side() {
|
|
2476
|
+
const ret = wasm.org_side(this.ptr);
|
|
2477
|
+
return takeObject(ret);
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2432
2480
|
* @returns {boolean}
|
|
2433
2481
|
*/
|
|
2434
2482
|
is_player() {
|
|
2435
|
-
|
|
2483
|
+
const ret = wasm.org_is_player(this.ptr);
|
|
2436
2484
|
return ret !== 0;
|
|
2437
2485
|
}
|
|
2438
2486
|
/**
|
|
2439
2487
|
* @returns {boolean}
|
|
2440
2488
|
*/
|
|
2441
2489
|
is_enemy() {
|
|
2442
|
-
|
|
2490
|
+
const ret = wasm.org_is_enemy(this.ptr);
|
|
2443
2491
|
return ret !== 0;
|
|
2444
2492
|
}
|
|
2445
2493
|
/**
|
|
2446
2494
|
* @returns {boolean}
|
|
2447
2495
|
*/
|
|
2448
2496
|
is_single() {
|
|
2449
|
-
|
|
2497
|
+
const ret = wasm.org_is_single(this.ptr);
|
|
2450
2498
|
return ret !== 0;
|
|
2451
2499
|
}
|
|
2452
2500
|
/**
|
|
2453
2501
|
* @returns {boolean}
|
|
2454
2502
|
*/
|
|
2455
2503
|
is_combined() {
|
|
2456
|
-
|
|
2504
|
+
const ret = wasm.org_is_combined(this.ptr);
|
|
2457
2505
|
return ret !== 0;
|
|
2458
2506
|
}
|
|
2459
2507
|
/**
|
|
@@ -2461,7 +2509,7 @@ class Org {
|
|
|
2461
2509
|
* @returns {number}
|
|
2462
2510
|
*/
|
|
2463
2511
|
interception_power() {
|
|
2464
|
-
|
|
2512
|
+
const ret = wasm.org_interception_power(this.ptr);
|
|
2465
2513
|
return ret;
|
|
2466
2514
|
}
|
|
2467
2515
|
/**
|
|
@@ -2469,7 +2517,7 @@ class Org {
|
|
|
2469
2517
|
* @returns {number}
|
|
2470
2518
|
*/
|
|
2471
2519
|
high_altitude_interception_power() {
|
|
2472
|
-
|
|
2520
|
+
const ret = wasm.org_high_altitude_interception_power(this.ptr);
|
|
2473
2521
|
return ret;
|
|
2474
2522
|
}
|
|
2475
2523
|
/**
|
|
@@ -2479,14 +2527,14 @@ class Org {
|
|
|
2479
2527
|
*/
|
|
2480
2528
|
create_warfare_ship_environment(ship, formation) {
|
|
2481
2529
|
_assertClass(ship, Ship);
|
|
2482
|
-
|
|
2530
|
+
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2483
2531
|
return takeObject(ret);
|
|
2484
2532
|
}
|
|
2485
2533
|
/**
|
|
2486
2534
|
* @returns {Org}
|
|
2487
2535
|
*/
|
|
2488
2536
|
static default() {
|
|
2489
|
-
|
|
2537
|
+
const ret = wasm.org_default();
|
|
2490
2538
|
return Org.__wrap(ret);
|
|
2491
2539
|
}
|
|
2492
2540
|
}
|
|
@@ -2520,7 +2568,7 @@ class Ship {
|
|
|
2520
2568
|
get id() {
|
|
2521
2569
|
try {
|
|
2522
2570
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2523
|
-
wasm.
|
|
2571
|
+
wasm.__wbg_get_ship_id(retptr, this.ptr);
|
|
2524
2572
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2525
2573
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2526
2574
|
return getStringFromWasm0(r0, r1);
|
|
@@ -2533,16 +2581,16 @@ class Ship {
|
|
|
2533
2581
|
* @param {string} arg0
|
|
2534
2582
|
*/
|
|
2535
2583
|
set id(arg0) {
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
wasm.
|
|
2584
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2585
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2586
|
+
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2539
2587
|
}
|
|
2540
2588
|
/**
|
|
2541
2589
|
*/
|
|
2542
2590
|
get xxh3() {
|
|
2543
2591
|
try {
|
|
2544
2592
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2545
|
-
wasm.
|
|
2593
|
+
wasm.__wbg_get_ship_xxh3(retptr, this.ptr);
|
|
2546
2594
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2547
2595
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2548
2596
|
u32CvtShim[0] = r0;
|
|
@@ -2560,12 +2608,12 @@ class Ship {
|
|
|
2560
2608
|
uint64CvtShim[0] = arg0;
|
|
2561
2609
|
const low0 = u32CvtShim[0];
|
|
2562
2610
|
const high0 = u32CvtShim[1];
|
|
2563
|
-
wasm.
|
|
2611
|
+
wasm.__wbg_set_ship_xxh3(this.ptr, low0, high0);
|
|
2564
2612
|
}
|
|
2565
2613
|
/**
|
|
2566
2614
|
*/
|
|
2567
2615
|
get ship_id() {
|
|
2568
|
-
|
|
2616
|
+
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2569
2617
|
return ret;
|
|
2570
2618
|
}
|
|
2571
2619
|
/**
|
|
@@ -2577,7 +2625,7 @@ class Ship {
|
|
|
2577
2625
|
/**
|
|
2578
2626
|
*/
|
|
2579
2627
|
get level() {
|
|
2580
|
-
|
|
2628
|
+
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2581
2629
|
return ret;
|
|
2582
2630
|
}
|
|
2583
2631
|
/**
|
|
@@ -2589,7 +2637,7 @@ class Ship {
|
|
|
2589
2637
|
/**
|
|
2590
2638
|
*/
|
|
2591
2639
|
get current_hp() {
|
|
2592
|
-
|
|
2640
|
+
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2593
2641
|
return ret;
|
|
2594
2642
|
}
|
|
2595
2643
|
/**
|
|
@@ -2601,7 +2649,7 @@ class Ship {
|
|
|
2601
2649
|
/**
|
|
2602
2650
|
*/
|
|
2603
2651
|
get morale() {
|
|
2604
|
-
|
|
2652
|
+
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2605
2653
|
return ret;
|
|
2606
2654
|
}
|
|
2607
2655
|
/**
|
|
@@ -2613,7 +2661,7 @@ class Ship {
|
|
|
2613
2661
|
/**
|
|
2614
2662
|
*/
|
|
2615
2663
|
get ammo() {
|
|
2616
|
-
|
|
2664
|
+
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2617
2665
|
return ret;
|
|
2618
2666
|
}
|
|
2619
2667
|
/**
|
|
@@ -2625,7 +2673,7 @@ class Ship {
|
|
|
2625
2673
|
/**
|
|
2626
2674
|
*/
|
|
2627
2675
|
get fuel() {
|
|
2628
|
-
|
|
2676
|
+
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2629
2677
|
return ret;
|
|
2630
2678
|
}
|
|
2631
2679
|
/**
|
|
@@ -2637,7 +2685,7 @@ class Ship {
|
|
|
2637
2685
|
/**
|
|
2638
2686
|
*/
|
|
2639
2687
|
get ship_type() {
|
|
2640
|
-
|
|
2688
|
+
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2641
2689
|
return takeObject(ret);
|
|
2642
2690
|
}
|
|
2643
2691
|
/**
|
|
@@ -2648,119 +2696,131 @@ class Ship {
|
|
|
2648
2696
|
}
|
|
2649
2697
|
/**
|
|
2650
2698
|
*/
|
|
2651
|
-
get
|
|
2652
|
-
|
|
2699
|
+
get ctype() {
|
|
2700
|
+
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2701
|
+
return ret;
|
|
2702
|
+
}
|
|
2703
|
+
/**
|
|
2704
|
+
* @param {number} arg0
|
|
2705
|
+
*/
|
|
2706
|
+
set ctype(arg0) {
|
|
2707
|
+
wasm.__wbg_set_ship_ctype(this.ptr, arg0);
|
|
2708
|
+
}
|
|
2709
|
+
/**
|
|
2710
|
+
*/
|
|
2711
|
+
get slots() {
|
|
2712
|
+
const ret = wasm.__wbg_get_ship_slots(this.ptr);
|
|
2653
2713
|
return takeObject(ret);
|
|
2654
2714
|
}
|
|
2655
2715
|
/**
|
|
2656
|
-
* @param {
|
|
2716
|
+
* @param {SlotSizeVec} arg0
|
|
2657
2717
|
*/
|
|
2658
|
-
set
|
|
2659
|
-
wasm.
|
|
2718
|
+
set slots(arg0) {
|
|
2719
|
+
wasm.__wbg_set_ship_slots(this.ptr, addHeapObject(arg0));
|
|
2660
2720
|
}
|
|
2661
2721
|
/**
|
|
2662
2722
|
* @returns {number | undefined}
|
|
2663
2723
|
*/
|
|
2664
2724
|
get naked_firepower() {
|
|
2665
|
-
|
|
2725
|
+
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2666
2726
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2667
2727
|
}
|
|
2668
2728
|
/**
|
|
2669
2729
|
* @returns {number | undefined}
|
|
2670
2730
|
*/
|
|
2671
2731
|
get naked_torpedo() {
|
|
2672
|
-
|
|
2732
|
+
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2673
2733
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2674
2734
|
}
|
|
2675
2735
|
/**
|
|
2676
2736
|
* @returns {number | undefined}
|
|
2677
2737
|
*/
|
|
2678
2738
|
get naked_armor() {
|
|
2679
|
-
|
|
2739
|
+
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2680
2740
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2681
2741
|
}
|
|
2682
2742
|
/**
|
|
2683
2743
|
* @returns {number | undefined}
|
|
2684
2744
|
*/
|
|
2685
2745
|
get naked_anti_air() {
|
|
2686
|
-
|
|
2746
|
+
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2687
2747
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2688
2748
|
}
|
|
2689
2749
|
/**
|
|
2690
2750
|
* @returns {number | undefined}
|
|
2691
2751
|
*/
|
|
2692
2752
|
get naked_evasion() {
|
|
2693
|
-
|
|
2753
|
+
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2694
2754
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2695
2755
|
}
|
|
2696
2756
|
/**
|
|
2697
2757
|
* @returns {number | undefined}
|
|
2698
2758
|
*/
|
|
2699
2759
|
get naked_asw() {
|
|
2700
|
-
|
|
2760
|
+
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2701
2761
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2702
2762
|
}
|
|
2703
2763
|
/**
|
|
2704
2764
|
* @returns {number | undefined}
|
|
2705
2765
|
*/
|
|
2706
2766
|
get naked_los() {
|
|
2707
|
-
|
|
2767
|
+
const ret = wasm.ship_naked_los(this.ptr);
|
|
2708
2768
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2709
2769
|
}
|
|
2710
2770
|
/**
|
|
2711
2771
|
* @returns {number | undefined}
|
|
2712
2772
|
*/
|
|
2713
2773
|
get firepower() {
|
|
2714
|
-
|
|
2774
|
+
const ret = wasm.ship_firepower(this.ptr);
|
|
2715
2775
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2716
2776
|
}
|
|
2717
2777
|
/**
|
|
2718
2778
|
* @returns {number | undefined}
|
|
2719
2779
|
*/
|
|
2720
2780
|
get torpedo() {
|
|
2721
|
-
|
|
2781
|
+
const ret = wasm.ship_torpedo(this.ptr);
|
|
2722
2782
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2723
2783
|
}
|
|
2724
2784
|
/**
|
|
2725
2785
|
* @returns {number | undefined}
|
|
2726
2786
|
*/
|
|
2727
2787
|
get armor() {
|
|
2728
|
-
|
|
2788
|
+
const ret = wasm.ship_armor(this.ptr);
|
|
2729
2789
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2730
2790
|
}
|
|
2731
2791
|
/**
|
|
2732
2792
|
* @returns {number | undefined}
|
|
2733
2793
|
*/
|
|
2734
2794
|
get anti_air() {
|
|
2735
|
-
|
|
2795
|
+
const ret = wasm.ship_anti_air(this.ptr);
|
|
2736
2796
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2737
2797
|
}
|
|
2738
2798
|
/**
|
|
2739
2799
|
* @returns {number | undefined}
|
|
2740
2800
|
*/
|
|
2741
2801
|
get evasion() {
|
|
2742
|
-
|
|
2802
|
+
const ret = wasm.ship_evasion(this.ptr);
|
|
2743
2803
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2744
2804
|
}
|
|
2745
2805
|
/**
|
|
2746
2806
|
* @returns {number | undefined}
|
|
2747
2807
|
*/
|
|
2748
2808
|
get asw() {
|
|
2749
|
-
|
|
2809
|
+
const ret = wasm.ship_asw(this.ptr);
|
|
2750
2810
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2751
2811
|
}
|
|
2752
2812
|
/**
|
|
2753
2813
|
* @returns {number | undefined}
|
|
2754
2814
|
*/
|
|
2755
2815
|
get los() {
|
|
2756
|
-
|
|
2816
|
+
const ret = wasm.ship_los(this.ptr);
|
|
2757
2817
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2758
2818
|
}
|
|
2759
2819
|
/**
|
|
2760
2820
|
* @returns {Ship}
|
|
2761
2821
|
*/
|
|
2762
2822
|
static default() {
|
|
2763
|
-
|
|
2823
|
+
const ret = wasm.ship_default();
|
|
2764
2824
|
return Ship.__wrap(ret);
|
|
2765
2825
|
}
|
|
2766
2826
|
/**
|
|
@@ -2768,23 +2828,23 @@ class Ship {
|
|
|
2768
2828
|
* @returns {boolean}
|
|
2769
2829
|
*/
|
|
2770
2830
|
eq_id(id) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2831
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2832
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2833
|
+
const ret = wasm.ship_eq_id(this.ptr, ptr0, len0);
|
|
2774
2834
|
return ret !== 0;
|
|
2775
2835
|
}
|
|
2776
2836
|
/**
|
|
2777
2837
|
* @returns {ShipState}
|
|
2778
2838
|
*/
|
|
2779
2839
|
state() {
|
|
2780
|
-
|
|
2840
|
+
const ret = wasm.ship_state(this.ptr);
|
|
2781
2841
|
return takeObject(ret);
|
|
2782
2842
|
}
|
|
2783
2843
|
/**
|
|
2784
2844
|
* @returns {ShipMeta}
|
|
2785
2845
|
*/
|
|
2786
2846
|
meta() {
|
|
2787
|
-
|
|
2847
|
+
const ret = wasm.ship_meta(this.ptr);
|
|
2788
2848
|
return takeObject(ret);
|
|
2789
2849
|
}
|
|
2790
2850
|
/**
|
|
@@ -2820,71 +2880,64 @@ class Ship {
|
|
|
2820
2880
|
/**
|
|
2821
2881
|
* @returns {number}
|
|
2822
2882
|
*/
|
|
2823
|
-
get ctype() {
|
|
2824
|
-
var ret = wasm.ship_ctype(this.ptr);
|
|
2825
|
-
return ret;
|
|
2826
|
-
}
|
|
2827
|
-
/**
|
|
2828
|
-
* @returns {number}
|
|
2829
|
-
*/
|
|
2830
2883
|
get stype() {
|
|
2831
|
-
|
|
2884
|
+
const ret = wasm.ship_stype(this.ptr);
|
|
2832
2885
|
return ret;
|
|
2833
2886
|
}
|
|
2834
2887
|
/**
|
|
2835
2888
|
* @returns {number}
|
|
2836
2889
|
*/
|
|
2837
2890
|
get sort_id() {
|
|
2838
|
-
|
|
2891
|
+
const ret = wasm.ship_sort_id(this.ptr);
|
|
2839
2892
|
return ret;
|
|
2840
2893
|
}
|
|
2841
2894
|
/**
|
|
2842
2895
|
* @returns {number}
|
|
2843
2896
|
*/
|
|
2844
2897
|
remodel_rank() {
|
|
2845
|
-
|
|
2898
|
+
const ret = wasm.ship_remodel_rank(this.ptr);
|
|
2846
2899
|
return ret;
|
|
2847
2900
|
}
|
|
2848
2901
|
/**
|
|
2849
2902
|
* @returns {number}
|
|
2850
2903
|
*/
|
|
2851
2904
|
get slotnum() {
|
|
2852
|
-
|
|
2905
|
+
const ret = wasm.ship_slotnum(this.ptr);
|
|
2853
2906
|
return ret >>> 0;
|
|
2854
2907
|
}
|
|
2855
2908
|
/**
|
|
2856
2909
|
* @returns {number}
|
|
2857
2910
|
*/
|
|
2858
2911
|
get next_id() {
|
|
2859
|
-
|
|
2912
|
+
const ret = wasm.ship_next_id(this.ptr);
|
|
2860
2913
|
return ret;
|
|
2861
2914
|
}
|
|
2862
2915
|
/**
|
|
2863
2916
|
* @returns {boolean}
|
|
2864
2917
|
*/
|
|
2865
2918
|
get useful() {
|
|
2866
|
-
|
|
2919
|
+
const ret = wasm.ship_useful(this.ptr);
|
|
2867
2920
|
return ret !== 0;
|
|
2868
2921
|
}
|
|
2869
2922
|
/**
|
|
2870
2923
|
* @returns {DamageState}
|
|
2871
2924
|
*/
|
|
2872
2925
|
damage_state() {
|
|
2873
|
-
|
|
2926
|
+
const ret = wasm.ship_damage_state(this.ptr);
|
|
2874
2927
|
return takeObject(ret);
|
|
2875
2928
|
}
|
|
2876
2929
|
/**
|
|
2877
2930
|
* @returns {MoraleState}
|
|
2878
2931
|
*/
|
|
2879
2932
|
morale_state() {
|
|
2880
|
-
|
|
2933
|
+
const ret = wasm.ship_morale_state(this.ptr);
|
|
2881
2934
|
return takeObject(ret);
|
|
2882
2935
|
}
|
|
2883
2936
|
/**
|
|
2884
2937
|
* @returns {ShipCategory}
|
|
2885
2938
|
*/
|
|
2886
2939
|
category() {
|
|
2887
|
-
|
|
2940
|
+
const ret = wasm.ship_category(this.ptr);
|
|
2888
2941
|
return takeObject(ret);
|
|
2889
2942
|
}
|
|
2890
2943
|
/**
|
|
@@ -2892,14 +2945,14 @@ class Ship {
|
|
|
2892
2945
|
* @returns {boolean}
|
|
2893
2946
|
*/
|
|
2894
2947
|
has_attr(attr) {
|
|
2895
|
-
|
|
2948
|
+
const ret = wasm.ship_has_attr(this.ptr, addHeapObject(attr));
|
|
2896
2949
|
return ret !== 0;
|
|
2897
2950
|
}
|
|
2898
2951
|
/**
|
|
2899
2952
|
* @returns {any}
|
|
2900
2953
|
*/
|
|
2901
2954
|
gear_keys() {
|
|
2902
|
-
|
|
2955
|
+
const ret = wasm.ship_gear_keys(this.ptr);
|
|
2903
2956
|
return takeObject(ret);
|
|
2904
2957
|
}
|
|
2905
2958
|
/**
|
|
@@ -2907,9 +2960,9 @@ class Ship {
|
|
|
2907
2960
|
* @returns {Gear | undefined}
|
|
2908
2961
|
*/
|
|
2909
2962
|
get_gear(key) {
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2963
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2964
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2965
|
+
const ret = wasm.ship_get_gear(this.ptr, ptr0, len0);
|
|
2913
2966
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2914
2967
|
}
|
|
2915
2968
|
/**
|
|
@@ -2917,7 +2970,7 @@ class Ship {
|
|
|
2917
2970
|
* @returns {number | undefined}
|
|
2918
2971
|
*/
|
|
2919
2972
|
get_damage_bound(state) {
|
|
2920
|
-
|
|
2973
|
+
const ret = wasm.ship_get_damage_bound(this.ptr, addHeapObject(state));
|
|
2921
2974
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2922
2975
|
}
|
|
2923
2976
|
/**
|
|
@@ -2926,7 +2979,7 @@ class Ship {
|
|
|
2926
2979
|
* @returns {number}
|
|
2927
2980
|
*/
|
|
2928
2981
|
get_remaining_fuel(rate, ceil) {
|
|
2929
|
-
|
|
2982
|
+
const ret = wasm.ship_get_remaining_fuel(this.ptr, rate, ceil);
|
|
2930
2983
|
return ret;
|
|
2931
2984
|
}
|
|
2932
2985
|
/**
|
|
@@ -2935,7 +2988,7 @@ class Ship {
|
|
|
2935
2988
|
* @returns {number}
|
|
2936
2989
|
*/
|
|
2937
2990
|
get_remaining_ammo(rate, ceil) {
|
|
2938
|
-
|
|
2991
|
+
const ret = wasm.ship_get_remaining_ammo(this.ptr, rate, ceil);
|
|
2939
2992
|
return ret;
|
|
2940
2993
|
}
|
|
2941
2994
|
/**
|
|
@@ -2943,9 +2996,9 @@ class Ship {
|
|
|
2943
2996
|
* @returns {boolean}
|
|
2944
2997
|
*/
|
|
2945
2998
|
has_unknown_stat(key) {
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2999
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3000
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3001
|
+
const ret = wasm.ship_has_unknown_stat(this.ptr, ptr0, len0);
|
|
2949
3002
|
return ret !== 0;
|
|
2950
3003
|
}
|
|
2951
3004
|
/**
|
|
@@ -2953,9 +3006,9 @@ class Ship {
|
|
|
2953
3006
|
* @returns {number | undefined}
|
|
2954
3007
|
*/
|
|
2955
3008
|
get_naked_stat(key) {
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
3009
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3010
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3011
|
+
const ret = wasm.ship_get_naked_stat(this.ptr, ptr0, len0);
|
|
2959
3012
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2960
3013
|
}
|
|
2961
3014
|
/**
|
|
@@ -2963,9 +3016,9 @@ class Ship {
|
|
|
2963
3016
|
* @returns {number | undefined}
|
|
2964
3017
|
*/
|
|
2965
3018
|
get_stat_interval_left(key) {
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
3019
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3020
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3021
|
+
const ret = wasm.ship_get_stat_interval_left(this.ptr, ptr0, len0);
|
|
2969
3022
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2970
3023
|
}
|
|
2971
3024
|
/**
|
|
@@ -2973,9 +3026,9 @@ class Ship {
|
|
|
2973
3026
|
* @returns {number | undefined}
|
|
2974
3027
|
*/
|
|
2975
3028
|
get_stat_interval_right(key) {
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
3029
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3030
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3031
|
+
const ret = wasm.ship_get_stat_interval_right(this.ptr, ptr0, len0);
|
|
2979
3032
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2980
3033
|
}
|
|
2981
3034
|
/**
|
|
@@ -2983,9 +3036,9 @@ class Ship {
|
|
|
2983
3036
|
* @returns {number}
|
|
2984
3037
|
*/
|
|
2985
3038
|
get_gear_stat(key) {
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
3039
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3040
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3041
|
+
const ret = wasm.ship_get_gear_stat(this.ptr, ptr0, len0);
|
|
2989
3042
|
return ret;
|
|
2990
3043
|
}
|
|
2991
3044
|
/**
|
|
@@ -2993,9 +3046,9 @@ class Ship {
|
|
|
2993
3046
|
* @returns {number}
|
|
2994
3047
|
*/
|
|
2995
3048
|
get_ebonus(key) {
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
3049
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3050
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3051
|
+
const ret = wasm.ship_get_ebonus(this.ptr, ptr0, len0);
|
|
2999
3052
|
return ret;
|
|
3000
3053
|
}
|
|
3001
3054
|
/**
|
|
@@ -3003,23 +3056,23 @@ class Ship {
|
|
|
3003
3056
|
* @returns {number | undefined}
|
|
3004
3057
|
*/
|
|
3005
3058
|
get_stat_mod(key) {
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3059
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3060
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3061
|
+
const ret = wasm.ship_get_stat_mod(this.ptr, ptr0, len0);
|
|
3009
3062
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3010
3063
|
}
|
|
3011
3064
|
/**
|
|
3012
3065
|
* @returns {boolean}
|
|
3013
3066
|
*/
|
|
3014
3067
|
is_abyssal() {
|
|
3015
|
-
|
|
3068
|
+
const ret = wasm.ship_is_abyssal(this.ptr);
|
|
3016
3069
|
return ret !== 0;
|
|
3017
3070
|
}
|
|
3018
3071
|
/**
|
|
3019
3072
|
* @returns {boolean}
|
|
3020
3073
|
*/
|
|
3021
3074
|
is_submarine() {
|
|
3022
|
-
|
|
3075
|
+
const ret = wasm.ship_is_submarine(this.ptr);
|
|
3023
3076
|
return ret !== 0;
|
|
3024
3077
|
}
|
|
3025
3078
|
/**
|
|
@@ -3029,79 +3082,79 @@ class Ship {
|
|
|
3029
3082
|
*/
|
|
3030
3083
|
can_equip(gear, key) {
|
|
3031
3084
|
_assertClass(gear, Gear);
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3085
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3086
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3087
|
+
const ret = wasm.ship_can_equip(this.ptr, gear.ptr, ptr0, len0);
|
|
3035
3088
|
return ret !== 0;
|
|
3036
3089
|
}
|
|
3037
3090
|
/**
|
|
3038
3091
|
* @returns {number | undefined}
|
|
3039
3092
|
*/
|
|
3040
3093
|
get max_hp() {
|
|
3041
|
-
|
|
3094
|
+
const ret = wasm.ship_max_hp(this.ptr);
|
|
3042
3095
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3043
3096
|
}
|
|
3044
3097
|
/**
|
|
3045
3098
|
* @returns {number}
|
|
3046
3099
|
*/
|
|
3047
3100
|
get max_ammo() {
|
|
3048
|
-
|
|
3101
|
+
const ret = wasm.ship_max_ammo(this.ptr);
|
|
3049
3102
|
return ret;
|
|
3050
3103
|
}
|
|
3051
3104
|
/**
|
|
3052
3105
|
* @returns {number}
|
|
3053
3106
|
*/
|
|
3054
3107
|
get max_fuel() {
|
|
3055
|
-
|
|
3108
|
+
const ret = wasm.ship_max_fuel(this.ptr);
|
|
3056
3109
|
return ret;
|
|
3057
3110
|
}
|
|
3058
3111
|
/**
|
|
3059
3112
|
* @returns {number | undefined}
|
|
3060
3113
|
*/
|
|
3061
3114
|
get naked_range() {
|
|
3062
|
-
|
|
3115
|
+
const ret = wasm.ship_naked_range(this.ptr);
|
|
3063
3116
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3064
3117
|
}
|
|
3065
3118
|
/**
|
|
3066
3119
|
* @returns {number}
|
|
3067
3120
|
*/
|
|
3068
3121
|
get naked_speed() {
|
|
3069
|
-
|
|
3122
|
+
const ret = wasm.ship_naked_speed(this.ptr);
|
|
3070
3123
|
return ret;
|
|
3071
3124
|
}
|
|
3072
3125
|
/**
|
|
3073
3126
|
* @returns {number | undefined}
|
|
3074
3127
|
*/
|
|
3075
3128
|
get luck() {
|
|
3076
|
-
|
|
3129
|
+
const ret = wasm.ship_luck(this.ptr);
|
|
3077
3130
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3078
3131
|
}
|
|
3079
3132
|
/**
|
|
3080
3133
|
* @returns {number | undefined}
|
|
3081
3134
|
*/
|
|
3082
3135
|
get range() {
|
|
3083
|
-
|
|
3136
|
+
const ret = wasm.ship_range(this.ptr);
|
|
3084
3137
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3085
3138
|
}
|
|
3086
3139
|
/**
|
|
3087
3140
|
* @returns {number}
|
|
3088
3141
|
*/
|
|
3089
3142
|
get speed() {
|
|
3090
|
-
|
|
3143
|
+
const ret = wasm.ship_speed(this.ptr);
|
|
3091
3144
|
return ret;
|
|
3092
3145
|
}
|
|
3093
3146
|
/**
|
|
3094
3147
|
* @returns {number}
|
|
3095
3148
|
*/
|
|
3096
3149
|
get accuracy() {
|
|
3097
|
-
|
|
3150
|
+
const ret = wasm.ship_accuracy(this.ptr);
|
|
3098
3151
|
return ret;
|
|
3099
3152
|
}
|
|
3100
3153
|
/**
|
|
3101
3154
|
* @returns {boolean}
|
|
3102
3155
|
*/
|
|
3103
3156
|
is_installation() {
|
|
3104
|
-
|
|
3157
|
+
const ret = wasm.ship_is_installation(this.ptr);
|
|
3105
3158
|
return ret !== 0;
|
|
3106
3159
|
}
|
|
3107
3160
|
/**
|
|
@@ -3109,7 +3162,7 @@ class Ship {
|
|
|
3109
3162
|
* @returns {number | undefined}
|
|
3110
3163
|
*/
|
|
3111
3164
|
get_slot_size(index) {
|
|
3112
|
-
|
|
3165
|
+
const ret = wasm.ship_get_slot_size(this.ptr, index);
|
|
3113
3166
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3114
3167
|
}
|
|
3115
3168
|
/**
|
|
@@ -3117,21 +3170,21 @@ class Ship {
|
|
|
3117
3170
|
* @returns {number | undefined}
|
|
3118
3171
|
*/
|
|
3119
3172
|
get_max_slot_size(index) {
|
|
3120
|
-
|
|
3173
|
+
const ret = wasm.ship_get_max_slot_size(this.ptr, index);
|
|
3121
3174
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3122
3175
|
}
|
|
3123
3176
|
/**
|
|
3124
3177
|
* @returns {number}
|
|
3125
3178
|
*/
|
|
3126
3179
|
remaining_ammo_mod() {
|
|
3127
|
-
|
|
3180
|
+
const ret = wasm.ship_remaining_ammo_mod(this.ptr);
|
|
3128
3181
|
return ret;
|
|
3129
3182
|
}
|
|
3130
3183
|
/**
|
|
3131
3184
|
* @returns {number}
|
|
3132
3185
|
*/
|
|
3133
3186
|
remaining_fuel_mod() {
|
|
3134
|
-
|
|
3187
|
+
const ret = wasm.ship_remaining_fuel_mod(this.ptr);
|
|
3135
3188
|
return ret;
|
|
3136
3189
|
}
|
|
3137
3190
|
/**
|
|
@@ -3167,14 +3220,14 @@ class Ship {
|
|
|
3167
3220
|
* @returns {number}
|
|
3168
3221
|
*/
|
|
3169
3222
|
fleet_anti_air() {
|
|
3170
|
-
|
|
3223
|
+
const ret = wasm.ship_fleet_anti_air(this.ptr);
|
|
3171
3224
|
return ret;
|
|
3172
3225
|
}
|
|
3173
3226
|
/**
|
|
3174
3227
|
* @returns {number}
|
|
3175
3228
|
*/
|
|
3176
3229
|
cruiser_fit_bonus() {
|
|
3177
|
-
|
|
3230
|
+
const ret = wasm.ship_cruiser_fit_bonus(this.ptr);
|
|
3178
3231
|
return ret;
|
|
3179
3232
|
}
|
|
3180
3233
|
/**
|
|
@@ -3182,7 +3235,7 @@ class Ship {
|
|
|
3182
3235
|
* @returns {number}
|
|
3183
3236
|
*/
|
|
3184
3237
|
fit_gun_bonus(is_night) {
|
|
3185
|
-
|
|
3238
|
+
const ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3186
3239
|
return ret;
|
|
3187
3240
|
}
|
|
3188
3241
|
/**
|
|
@@ -3246,26 +3299,10 @@ class Ship {
|
|
|
3246
3299
|
}
|
|
3247
3300
|
}
|
|
3248
3301
|
/**
|
|
3249
|
-
* @returns {Uint8Array}
|
|
3250
|
-
*/
|
|
3251
|
-
get_possible_anti_air_cutin_ids() {
|
|
3252
|
-
try {
|
|
3253
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3254
|
-
wasm.ship_get_possible_anti_air_cutin_ids(retptr, this.ptr);
|
|
3255
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3256
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
3257
|
-
var v0 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3258
|
-
wasm.__wbindgen_free(r0, r1 * 1);
|
|
3259
|
-
return v0;
|
|
3260
|
-
} finally {
|
|
3261
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3262
|
-
}
|
|
3263
|
-
}
|
|
3264
|
-
/**
|
|
3265
3302
|
* @returns {number}
|
|
3266
3303
|
*/
|
|
3267
3304
|
transport_point() {
|
|
3268
|
-
|
|
3305
|
+
const ret = wasm.ship_transport_point(this.ptr);
|
|
3269
3306
|
return ret;
|
|
3270
3307
|
}
|
|
3271
3308
|
/**
|
|
@@ -3292,42 +3329,42 @@ class Ship {
|
|
|
3292
3329
|
}
|
|
3293
3330
|
module.exports.Ship = Ship;
|
|
3294
3331
|
|
|
3332
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3333
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3334
|
+
return addHeapObject(ret);
|
|
3335
|
+
};
|
|
3336
|
+
|
|
3295
3337
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3296
3338
|
takeObject(arg0);
|
|
3297
3339
|
};
|
|
3298
3340
|
|
|
3299
3341
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
3300
3342
|
const obj = getObject(arg1);
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3343
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
3344
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3345
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3304
3346
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3305
3347
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3306
3348
|
};
|
|
3307
3349
|
|
|
3308
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3309
|
-
var ret = getStringFromWasm0(arg0, arg1);
|
|
3310
|
-
return addHeapObject(ret);
|
|
3311
|
-
};
|
|
3312
|
-
|
|
3313
3350
|
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
3314
|
-
|
|
3351
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3315
3352
|
return addHeapObject(ret);
|
|
3316
3353
|
};
|
|
3317
3354
|
|
|
3318
|
-
module.exports.
|
|
3355
|
+
module.exports.__wbg_error_8ff19d586a987aef = function(arg0) {
|
|
3319
3356
|
console.error(getObject(arg0));
|
|
3320
3357
|
};
|
|
3321
3358
|
|
|
3322
3359
|
module.exports.__wbg_new_693216e109162396 = function() {
|
|
3323
|
-
|
|
3360
|
+
const ret = new Error();
|
|
3324
3361
|
return addHeapObject(ret);
|
|
3325
3362
|
};
|
|
3326
3363
|
|
|
3327
3364
|
module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3365
|
+
const ret = getObject(arg1).stack;
|
|
3366
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3367
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3331
3368
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3332
3369
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3333
3370
|
};
|
|
@@ -3340,138 +3377,138 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
|
3340
3377
|
}
|
|
3341
3378
|
};
|
|
3342
3379
|
|
|
3343
|
-
module.exports.__wbg_getRandomValues_fb6b088efb6bead2 = function() { return handleError(function (arg0, arg1) {
|
|
3344
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3345
|
-
}, arguments) };
|
|
3346
|
-
|
|
3347
3380
|
module.exports.__wbg_randomFillSync_654a7797990fb8db = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3348
3381
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3349
3382
|
}, arguments) };
|
|
3350
3383
|
|
|
3384
|
+
module.exports.__wbg_getRandomValues_fb6b088efb6bead2 = function() { return handleError(function (arg0, arg1) {
|
|
3385
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3386
|
+
}, arguments) };
|
|
3387
|
+
|
|
3351
3388
|
module.exports.__wbg_process_70251ed1291754d5 = function(arg0) {
|
|
3352
|
-
|
|
3389
|
+
const ret = getObject(arg0).process;
|
|
3353
3390
|
return addHeapObject(ret);
|
|
3354
3391
|
};
|
|
3355
3392
|
|
|
3356
3393
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
3357
3394
|
const val = getObject(arg0);
|
|
3358
|
-
|
|
3395
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3359
3396
|
return ret;
|
|
3360
3397
|
};
|
|
3361
3398
|
|
|
3362
3399
|
module.exports.__wbg_versions_b23f2588cdb2ddbb = function(arg0) {
|
|
3363
|
-
|
|
3400
|
+
const ret = getObject(arg0).versions;
|
|
3364
3401
|
return addHeapObject(ret);
|
|
3365
3402
|
};
|
|
3366
3403
|
|
|
3367
3404
|
module.exports.__wbg_node_61b8c9a82499895d = function(arg0) {
|
|
3368
|
-
|
|
3405
|
+
const ret = getObject(arg0).node;
|
|
3369
3406
|
return addHeapObject(ret);
|
|
3370
3407
|
};
|
|
3371
3408
|
|
|
3372
3409
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
3373
|
-
|
|
3410
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
3374
3411
|
return ret;
|
|
3375
3412
|
};
|
|
3376
3413
|
|
|
3377
3414
|
module.exports.__wbg_static_accessor_NODE_MODULE_33b45247c55045b0 = function() {
|
|
3378
|
-
|
|
3415
|
+
const ret = module;
|
|
3379
3416
|
return addHeapObject(ret);
|
|
3380
3417
|
};
|
|
3381
3418
|
|
|
3382
3419
|
module.exports.__wbg_require_2a93bc09fee45aca = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3383
|
-
|
|
3420
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3384
3421
|
return addHeapObject(ret);
|
|
3385
3422
|
}, arguments) };
|
|
3386
3423
|
|
|
3387
3424
|
module.exports.__wbg_crypto_2f56257a38275dbd = function(arg0) {
|
|
3388
|
-
|
|
3425
|
+
const ret = getObject(arg0).crypto;
|
|
3389
3426
|
return addHeapObject(ret);
|
|
3390
3427
|
};
|
|
3391
3428
|
|
|
3392
3429
|
module.exports.__wbg_msCrypto_d07655bf62361f21 = function(arg0) {
|
|
3393
|
-
|
|
3430
|
+
const ret = getObject(arg0).msCrypto;
|
|
3394
3431
|
return addHeapObject(ret);
|
|
3395
3432
|
};
|
|
3396
3433
|
|
|
3397
|
-
module.exports.
|
|
3398
|
-
|
|
3434
|
+
module.exports.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) {
|
|
3435
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3399
3436
|
return addHeapObject(ret);
|
|
3400
3437
|
};
|
|
3401
3438
|
|
|
3402
|
-
module.exports.
|
|
3403
|
-
|
|
3439
|
+
module.exports.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) {
|
|
3440
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
3404
3441
|
return addHeapObject(ret);
|
|
3405
3442
|
}, arguments) };
|
|
3406
3443
|
|
|
3407
3444
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
3408
|
-
|
|
3445
|
+
const ret = getObject(arg0);
|
|
3409
3446
|
return addHeapObject(ret);
|
|
3410
3447
|
};
|
|
3411
3448
|
|
|
3412
|
-
module.exports.
|
|
3413
|
-
|
|
3449
|
+
module.exports.__wbg_call_a19d3173f3e1d3c5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3450
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3414
3451
|
return addHeapObject(ret);
|
|
3415
3452
|
}, arguments) };
|
|
3416
3453
|
|
|
3417
|
-
module.exports.
|
|
3418
|
-
|
|
3454
|
+
module.exports.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
|
|
3455
|
+
const ret = self.self;
|
|
3419
3456
|
return addHeapObject(ret);
|
|
3420
3457
|
}, arguments) };
|
|
3421
3458
|
|
|
3422
|
-
module.exports.
|
|
3423
|
-
|
|
3459
|
+
module.exports.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () {
|
|
3460
|
+
const ret = window.window;
|
|
3424
3461
|
return addHeapObject(ret);
|
|
3425
3462
|
}, arguments) };
|
|
3426
3463
|
|
|
3427
|
-
module.exports.
|
|
3428
|
-
|
|
3464
|
+
module.exports.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () {
|
|
3465
|
+
const ret = globalThis.globalThis;
|
|
3429
3466
|
return addHeapObject(ret);
|
|
3430
3467
|
}, arguments) };
|
|
3431
3468
|
|
|
3432
|
-
module.exports.
|
|
3433
|
-
|
|
3469
|
+
module.exports.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () {
|
|
3470
|
+
const ret = global.global;
|
|
3434
3471
|
return addHeapObject(ret);
|
|
3435
3472
|
}, arguments) };
|
|
3436
3473
|
|
|
3437
3474
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
3438
|
-
|
|
3475
|
+
const ret = getObject(arg0) === undefined;
|
|
3439
3476
|
return ret;
|
|
3440
3477
|
};
|
|
3441
3478
|
|
|
3442
|
-
module.exports.
|
|
3443
|
-
|
|
3479
|
+
module.exports.__wbg_buffer_7af23f65f6c64548 = function(arg0) {
|
|
3480
|
+
const ret = getObject(arg0).buffer;
|
|
3444
3481
|
return addHeapObject(ret);
|
|
3445
3482
|
};
|
|
3446
3483
|
|
|
3447
|
-
module.exports.
|
|
3448
|
-
|
|
3484
|
+
module.exports.__wbg_new_cc9018bd6f283b6f = function(arg0) {
|
|
3485
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
3449
3486
|
return addHeapObject(ret);
|
|
3450
3487
|
};
|
|
3451
3488
|
|
|
3452
|
-
module.exports.
|
|
3489
|
+
module.exports.__wbg_set_f25e869e4565d2a2 = function(arg0, arg1, arg2) {
|
|
3453
3490
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3454
3491
|
};
|
|
3455
3492
|
|
|
3456
|
-
module.exports.
|
|
3457
|
-
|
|
3493
|
+
module.exports.__wbg_length_0acb1cf9bbaf8519 = function(arg0) {
|
|
3494
|
+
const ret = getObject(arg0).length;
|
|
3458
3495
|
return ret;
|
|
3459
3496
|
};
|
|
3460
3497
|
|
|
3461
|
-
module.exports.
|
|
3462
|
-
|
|
3498
|
+
module.exports.__wbg_newwithlength_8f0657faca9f1422 = function(arg0) {
|
|
3499
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3463
3500
|
return addHeapObject(ret);
|
|
3464
3501
|
};
|
|
3465
3502
|
|
|
3466
|
-
module.exports.
|
|
3467
|
-
|
|
3503
|
+
module.exports.__wbg_subarray_da527dbd24eafb6b = function(arg0, arg1, arg2) {
|
|
3504
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3468
3505
|
return addHeapObject(ret);
|
|
3469
3506
|
};
|
|
3470
3507
|
|
|
3471
3508
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3509
|
+
const ret = debugString(getObject(arg1));
|
|
3510
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3511
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3475
3512
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3476
3513
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3477
3514
|
};
|
|
@@ -3481,7 +3518,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
3481
3518
|
};
|
|
3482
3519
|
|
|
3483
3520
|
module.exports.__wbindgen_memory = function() {
|
|
3484
|
-
|
|
3521
|
+
const ret = wasm.memory;
|
|
3485
3522
|
return addHeapObject(ret);
|
|
3486
3523
|
};
|
|
3487
3524
|
|