fleethub-core 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/fleethub_core.d.ts +144 -144
- package/node/fleethub_core.js +389 -389
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +96 -96
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +144 -144
- package/pkg/fleethub_core_bg.js +389 -389
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +96 -96
package/node/fleethub_core.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
heap.push(undefined, null, true, false);
|
|
9
|
-
|
|
10
|
-
function getObject(idx) { return heap[idx]; }
|
|
6
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
11
7
|
|
|
12
|
-
|
|
8
|
+
cachedTextDecoder.decode();
|
|
13
9
|
|
|
14
10
|
let cachegetUint8Memory0 = null;
|
|
15
11
|
function getUint8Memory0() {
|
|
@@ -19,6 +15,41 @@ function getUint8Memory0() {
|
|
|
19
15
|
return cachegetUint8Memory0;
|
|
20
16
|
}
|
|
21
17
|
|
|
18
|
+
function getStringFromWasm0(ptr, len) {
|
|
19
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const heap = new Array(32).fill(undefined);
|
|
23
|
+
|
|
24
|
+
heap.push(undefined, null, true, false);
|
|
25
|
+
|
|
26
|
+
let heap_next = heap.length;
|
|
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
|
+
|
|
39
|
+
function dropObject(idx) {
|
|
40
|
+
if (idx < 36) return;
|
|
41
|
+
heap[idx] = heap_next;
|
|
42
|
+
heap_next = idx;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function takeObject(idx) {
|
|
46
|
+
const ret = getObject(idx);
|
|
47
|
+
dropObject(idx);
|
|
48
|
+
return ret;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
let WASM_VECTOR_LEN = 0;
|
|
52
|
+
|
|
22
53
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
23
54
|
|
|
24
55
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -80,37 +111,6 @@ function getInt32Memory0() {
|
|
|
80
111
|
return cachegetInt32Memory0;
|
|
81
112
|
}
|
|
82
113
|
|
|
83
|
-
let heap_next = heap.length;
|
|
84
|
-
|
|
85
|
-
function dropObject(idx) {
|
|
86
|
-
if (idx < 36) return;
|
|
87
|
-
heap[idx] = heap_next;
|
|
88
|
-
heap_next = idx;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function takeObject(idx) {
|
|
92
|
-
const ret = getObject(idx);
|
|
93
|
-
dropObject(idx);
|
|
94
|
-
return ret;
|
|
95
|
-
}
|
|
96
|
-
|
|
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;
|
|
@@ -180,21 +180,6 @@ const u32CvtShim = new Uint32Array(2);
|
|
|
180
180
|
|
|
181
181
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
182
182
|
|
|
183
|
-
function _assertClass(instance, klass) {
|
|
184
|
-
if (!(instance instanceof klass)) {
|
|
185
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
186
|
-
}
|
|
187
|
-
return instance.ptr;
|
|
188
|
-
}
|
|
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
|
-
|
|
198
183
|
function isLikeNone(x) {
|
|
199
184
|
return x === undefined || x === null;
|
|
200
185
|
}
|
|
@@ -217,6 +202,14 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
217
202
|
return result;
|
|
218
203
|
}
|
|
219
204
|
|
|
205
|
+
let cachegetFloat64Memory0 = null;
|
|
206
|
+
function getFloat64Memory0() {
|
|
207
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
208
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
209
|
+
}
|
|
210
|
+
return cachegetFloat64Memory0;
|
|
211
|
+
}
|
|
212
|
+
|
|
220
213
|
let cachegetUint16Memory0 = null;
|
|
221
214
|
function getUint16Memory0() {
|
|
222
215
|
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -228,22 +221,35 @@ function getUint16Memory0() {
|
|
|
228
221
|
function getArrayU16FromWasm0(ptr, len) {
|
|
229
222
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
230
223
|
}
|
|
224
|
+
|
|
225
|
+
function _assertClass(instance, klass) {
|
|
226
|
+
if (!(instance instanceof klass)) {
|
|
227
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
228
|
+
}
|
|
229
|
+
return instance.ptr;
|
|
230
|
+
}
|
|
231
231
|
/**
|
|
232
232
|
* @param {Gear} gear
|
|
233
233
|
* @returns {boolean}
|
|
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
|
+
/**
|
|
242
|
+
*/
|
|
243
|
+
module.exports.set_panic_hook = function() {
|
|
244
|
+
wasm.set_panic_hook();
|
|
245
|
+
};
|
|
246
|
+
|
|
241
247
|
/**
|
|
242
248
|
* @param {OrgType} org_type
|
|
243
249
|
* @returns {boolean}
|
|
244
250
|
*/
|
|
245
251
|
module.exports.org_type_is_single = function(org_type) {
|
|
246
|
-
|
|
252
|
+
const ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
247
253
|
return ret !== 0;
|
|
248
254
|
};
|
|
249
255
|
|
|
@@ -252,7 +258,7 @@ module.exports.org_type_is_single = function(org_type) {
|
|
|
252
258
|
* @returns {Formation}
|
|
253
259
|
*/
|
|
254
260
|
module.exports.org_type_default_formation = function(org_type) {
|
|
255
|
-
|
|
261
|
+
const ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
256
262
|
return takeObject(ret);
|
|
257
263
|
};
|
|
258
264
|
|
|
@@ -261,7 +267,7 @@ module.exports.org_type_default_formation = function(org_type) {
|
|
|
261
267
|
* @returns {boolean}
|
|
262
268
|
*/
|
|
263
269
|
module.exports.org_type_is_player = function(org_type) {
|
|
264
|
-
|
|
270
|
+
const ret = wasm.org_type_is_player(addHeapObject(org_type));
|
|
265
271
|
return ret !== 0;
|
|
266
272
|
};
|
|
267
273
|
|
|
@@ -270,16 +276,10 @@ module.exports.org_type_is_player = function(org_type) {
|
|
|
270
276
|
* @returns {Side}
|
|
271
277
|
*/
|
|
272
278
|
module.exports.org_type_side = function(org_type) {
|
|
273
|
-
|
|
279
|
+
const ret = wasm.org_type_side(addHeapObject(org_type));
|
|
274
280
|
return takeObject(ret);
|
|
275
281
|
};
|
|
276
282
|
|
|
277
|
-
/**
|
|
278
|
-
*/
|
|
279
|
-
module.exports.set_panic_hook = function() {
|
|
280
|
-
wasm.set_panic_hook();
|
|
281
|
-
};
|
|
282
|
-
|
|
283
283
|
function passArray16ToWasm0(arg, malloc) {
|
|
284
284
|
const ptr = malloc(arg.length * 2);
|
|
285
285
|
getUint16Memory0().set(arg, ptr / 2);
|
|
@@ -340,8 +340,8 @@ class AirSquadron {
|
|
|
340
340
|
* @param {string} arg0
|
|
341
341
|
*/
|
|
342
342
|
set id(arg0) {
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
+
const len0 = WASM_VECTOR_LEN;
|
|
345
345
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
@@ -372,7 +372,7 @@ class AirSquadron {
|
|
|
372
372
|
/**
|
|
373
373
|
*/
|
|
374
374
|
get mode() {
|
|
375
|
-
|
|
375
|
+
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
376
376
|
return takeObject(ret);
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
@@ -386,9 +386,9 @@ class AirSquadron {
|
|
|
386
386
|
* @returns {Gear | undefined}
|
|
387
387
|
*/
|
|
388
388
|
get_gear(key) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
389
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
390
|
+
const len0 = WASM_VECTOR_LEN;
|
|
391
|
+
const ret = wasm.airsquadron_get_gear(this.ptr, ptr0, len0);
|
|
392
392
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
393
393
|
}
|
|
394
394
|
/**
|
|
@@ -397,7 +397,7 @@ class AirSquadron {
|
|
|
397
397
|
*/
|
|
398
398
|
can_equip(gear) {
|
|
399
399
|
_assertClass(gear, Gear);
|
|
400
|
-
|
|
400
|
+
const ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
401
401
|
return ret !== 0;
|
|
402
402
|
}
|
|
403
403
|
/**
|
|
@@ -442,14 +442,14 @@ class AirSquadron {
|
|
|
442
442
|
* @returns {number}
|
|
443
443
|
*/
|
|
444
444
|
fighter_power() {
|
|
445
|
-
|
|
445
|
+
const ret = wasm.airsquadron_fighter_power(this.ptr);
|
|
446
446
|
return ret;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @returns {number}
|
|
450
450
|
*/
|
|
451
451
|
interception_power() {
|
|
452
|
-
|
|
452
|
+
const ret = wasm.airsquadron_interception_power(this.ptr);
|
|
453
453
|
return ret;
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
@@ -457,7 +457,7 @@ class AirSquadron {
|
|
|
457
457
|
* @returns {number}
|
|
458
458
|
*/
|
|
459
459
|
radius() {
|
|
460
|
-
|
|
460
|
+
const ret = wasm.airsquadron_radius(this.ptr);
|
|
461
461
|
return ret;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
@@ -496,7 +496,7 @@ class Analyzer {
|
|
|
496
496
|
*/
|
|
497
497
|
analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
498
498
|
_assertClass(comp, Comp);
|
|
499
|
-
|
|
499
|
+
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);
|
|
500
500
|
return takeObject(ret);
|
|
501
501
|
}
|
|
502
502
|
/**
|
|
@@ -505,7 +505,7 @@ class Analyzer {
|
|
|
505
505
|
*/
|
|
506
506
|
analyze_day_cutin(comp) {
|
|
507
507
|
_assertClass(comp, Comp);
|
|
508
|
-
|
|
508
|
+
const ret = wasm.analyzer_analyze_day_cutin(this.ptr, comp.ptr);
|
|
509
509
|
return takeObject(ret);
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
@@ -516,7 +516,7 @@ class Analyzer {
|
|
|
516
516
|
*/
|
|
517
517
|
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
518
518
|
_assertClass(comp, Comp);
|
|
519
|
-
|
|
519
|
+
const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
|
|
520
520
|
return takeObject(ret);
|
|
521
521
|
}
|
|
522
522
|
/**
|
|
@@ -525,7 +525,7 @@ class Analyzer {
|
|
|
525
525
|
*/
|
|
526
526
|
analyze_contact_chance(comp) {
|
|
527
527
|
_assertClass(comp, Comp);
|
|
528
|
-
|
|
528
|
+
const ret = wasm.analyzer_analyze_contact_chance(this.ptr, comp.ptr);
|
|
529
529
|
return takeObject(ret);
|
|
530
530
|
}
|
|
531
531
|
/**
|
|
@@ -537,7 +537,7 @@ class Analyzer {
|
|
|
537
537
|
analyze_warfare(params, attacker, target) {
|
|
538
538
|
_assertClass(attacker, Ship);
|
|
539
539
|
_assertClass(target, Ship);
|
|
540
|
-
|
|
540
|
+
const ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
541
541
|
return takeObject(ret);
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
@@ -547,7 +547,7 @@ class Analyzer {
|
|
|
547
547
|
*/
|
|
548
548
|
analyze_fleet_cutin(comp, engagement) {
|
|
549
549
|
_assertClass(comp, Comp);
|
|
550
|
-
|
|
550
|
+
const ret = wasm.analyzer_analyze_fleet_cutin(this.ptr, comp.ptr, addHeapObject(engagement));
|
|
551
551
|
return takeObject(ret);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -579,7 +579,7 @@ class Comp {
|
|
|
579
579
|
/**
|
|
580
580
|
*/
|
|
581
581
|
get org_type() {
|
|
582
|
-
|
|
582
|
+
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
583
583
|
return takeObject(ret);
|
|
584
584
|
}
|
|
585
585
|
/**
|
|
@@ -591,7 +591,7 @@ class Comp {
|
|
|
591
591
|
/**
|
|
592
592
|
*/
|
|
593
593
|
get hq_level() {
|
|
594
|
-
|
|
594
|
+
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
595
595
|
return ret;
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
@@ -603,7 +603,7 @@ class Comp {
|
|
|
603
603
|
/**
|
|
604
604
|
*/
|
|
605
605
|
get main() {
|
|
606
|
-
|
|
606
|
+
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
607
607
|
return Fleet.__wrap(ret);
|
|
608
608
|
}
|
|
609
609
|
/**
|
|
@@ -618,7 +618,7 @@ class Comp {
|
|
|
618
618
|
/**
|
|
619
619
|
*/
|
|
620
620
|
get escort() {
|
|
621
|
-
|
|
621
|
+
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
622
622
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
623
623
|
}
|
|
624
624
|
/**
|
|
@@ -636,7 +636,7 @@ class Comp {
|
|
|
636
636
|
/**
|
|
637
637
|
*/
|
|
638
638
|
get route_sup() {
|
|
639
|
-
|
|
639
|
+
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
640
640
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
641
641
|
}
|
|
642
642
|
/**
|
|
@@ -654,7 +654,7 @@ class Comp {
|
|
|
654
654
|
/**
|
|
655
655
|
*/
|
|
656
656
|
get boss_sup() {
|
|
657
|
-
|
|
657
|
+
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
658
658
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
659
659
|
}
|
|
660
660
|
/**
|
|
@@ -673,35 +673,35 @@ class Comp {
|
|
|
673
673
|
* @returns {Side}
|
|
674
674
|
*/
|
|
675
675
|
side() {
|
|
676
|
-
|
|
676
|
+
const ret = wasm.comp_side(this.ptr);
|
|
677
677
|
return takeObject(ret);
|
|
678
678
|
}
|
|
679
679
|
/**
|
|
680
680
|
* @returns {boolean}
|
|
681
681
|
*/
|
|
682
682
|
is_combined() {
|
|
683
|
-
|
|
683
|
+
const ret = wasm.comp_is_combined(this.ptr);
|
|
684
684
|
return ret !== 0;
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
687
|
* @returns {boolean}
|
|
688
688
|
*/
|
|
689
689
|
is_player() {
|
|
690
|
-
|
|
690
|
+
const ret = wasm.comp_is_player(this.ptr);
|
|
691
691
|
return ret !== 0;
|
|
692
692
|
}
|
|
693
693
|
/**
|
|
694
694
|
* @returns {boolean}
|
|
695
695
|
*/
|
|
696
696
|
is_enemy() {
|
|
697
|
-
|
|
697
|
+
const ret = wasm.comp_is_enemy(this.ptr);
|
|
698
698
|
return ret !== 0;
|
|
699
699
|
}
|
|
700
700
|
/**
|
|
701
701
|
* @returns {CompMeta}
|
|
702
702
|
*/
|
|
703
703
|
meta() {
|
|
704
|
-
|
|
704
|
+
const ret = wasm.comp_meta(this.ptr);
|
|
705
705
|
return takeObject(ret);
|
|
706
706
|
}
|
|
707
707
|
/**
|
|
@@ -730,9 +730,9 @@ class Comp {
|
|
|
730
730
|
* @returns {Ship | undefined}
|
|
731
731
|
*/
|
|
732
732
|
get_ship_with_clone(ft, key) {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
733
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
734
|
+
const len0 = WASM_VECTOR_LEN;
|
|
735
|
+
const ret = wasm.comp_get_ship_with_clone(this.ptr, addHeapObject(ft), ptr0, len0);
|
|
736
736
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
737
737
|
}
|
|
738
738
|
/**
|
|
@@ -743,8 +743,8 @@ class Comp {
|
|
|
743
743
|
get_ship_entity_id(ft, key) {
|
|
744
744
|
try {
|
|
745
745
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
746
|
-
|
|
747
|
-
|
|
746
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
747
|
+
const len0 = WASM_VECTOR_LEN;
|
|
748
748
|
wasm.comp_get_ship_entity_id(retptr, this.ptr, addHeapObject(ft), ptr0, len0);
|
|
749
749
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
750
750
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -763,16 +763,16 @@ class Comp {
|
|
|
763
763
|
* @returns {Ship | undefined}
|
|
764
764
|
*/
|
|
765
765
|
get_ship_by_eid_with_clone(id) {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
766
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
767
|
+
const len0 = WASM_VECTOR_LEN;
|
|
768
|
+
const ret = wasm.comp_get_ship_by_eid_with_clone(this.ptr, ptr0, len0);
|
|
769
769
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
770
770
|
}
|
|
771
771
|
/**
|
|
772
772
|
* @returns {Formation}
|
|
773
773
|
*/
|
|
774
774
|
default_formation() {
|
|
775
|
-
|
|
775
|
+
const ret = wasm.comp_default_formation(this.ptr);
|
|
776
776
|
return takeObject(ret);
|
|
777
777
|
}
|
|
778
778
|
/**
|
|
@@ -781,7 +781,7 @@ class Comp {
|
|
|
781
781
|
* @returns {number}
|
|
782
782
|
*/
|
|
783
783
|
fleet_anti_air(formation_mod) {
|
|
784
|
-
|
|
784
|
+
const ret = wasm.comp_fleet_anti_air(this.ptr, formation_mod);
|
|
785
785
|
return ret;
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
@@ -822,7 +822,7 @@ class Comp {
|
|
|
822
822
|
* @returns {number}
|
|
823
823
|
*/
|
|
824
824
|
transport_point() {
|
|
825
|
-
|
|
825
|
+
const ret = wasm.comp_transport_point(this.ptr);
|
|
826
826
|
return ret;
|
|
827
827
|
}
|
|
828
828
|
/**
|
|
@@ -832,7 +832,7 @@ class Comp {
|
|
|
832
832
|
*/
|
|
833
833
|
create_warfare_ship_environment(ship, formation) {
|
|
834
834
|
_assertClass(ship, Ship);
|
|
835
|
-
|
|
835
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
836
836
|
return takeObject(ret);
|
|
837
837
|
}
|
|
838
838
|
}
|
|
@@ -885,7 +885,7 @@ class FhCore {
|
|
|
885
885
|
* @returns {Gear | undefined}
|
|
886
886
|
*/
|
|
887
887
|
create_gear(input) {
|
|
888
|
-
|
|
888
|
+
const ret = wasm.fhcore_create_gear(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
889
889
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
890
890
|
}
|
|
891
891
|
/**
|
|
@@ -893,7 +893,7 @@ class FhCore {
|
|
|
893
893
|
* @returns {Ship | undefined}
|
|
894
894
|
*/
|
|
895
895
|
create_ship(input) {
|
|
896
|
-
|
|
896
|
+
const ret = wasm.fhcore_create_ship(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
897
897
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
898
898
|
}
|
|
899
899
|
/**
|
|
@@ -901,7 +901,7 @@ class FhCore {
|
|
|
901
901
|
* @returns {AirSquadron}
|
|
902
902
|
*/
|
|
903
903
|
create_air_squadron(input) {
|
|
904
|
-
|
|
904
|
+
const ret = wasm.fhcore_create_air_squadron(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
905
905
|
return AirSquadron.__wrap(ret);
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
@@ -909,7 +909,7 @@ class FhCore {
|
|
|
909
909
|
* @returns {Fleet}
|
|
910
910
|
*/
|
|
911
911
|
create_fleet(input) {
|
|
912
|
-
|
|
912
|
+
const ret = wasm.fhcore_create_fleet(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
913
913
|
return Fleet.__wrap(ret);
|
|
914
914
|
}
|
|
915
915
|
/**
|
|
@@ -917,7 +917,7 @@ class FhCore {
|
|
|
917
917
|
* @returns {Org | undefined}
|
|
918
918
|
*/
|
|
919
919
|
create_org(input) {
|
|
920
|
-
|
|
920
|
+
const ret = wasm.fhcore_create_org(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
921
921
|
return ret === 0 ? undefined : Org.__wrap(ret);
|
|
922
922
|
}
|
|
923
923
|
/**
|
|
@@ -925,7 +925,7 @@ class FhCore {
|
|
|
925
925
|
* @returns {Ship | undefined}
|
|
926
926
|
*/
|
|
927
927
|
create_ship_by_id(ship_id) {
|
|
928
|
-
|
|
928
|
+
const ret = wasm.fhcore_create_ship_by_id(this.ptr, ship_id);
|
|
929
929
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
930
930
|
}
|
|
931
931
|
/**
|
|
@@ -934,25 +934,25 @@ class FhCore {
|
|
|
934
934
|
* @returns {Comp}
|
|
935
935
|
*/
|
|
936
936
|
create_comp_by_map_enemy(main, escort) {
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
const ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
938
|
+
const len0 = WASM_VECTOR_LEN;
|
|
939
939
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
940
940
|
var len1 = WASM_VECTOR_LEN;
|
|
941
|
-
|
|
941
|
+
const ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
942
942
|
return Comp.__wrap(ret);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* @returns {Ship}
|
|
946
946
|
*/
|
|
947
947
|
create_default_ship() {
|
|
948
|
-
|
|
948
|
+
const ret = wasm.fhcore_create_default_ship(this.ptr);
|
|
949
949
|
return Ship.__wrap(ret);
|
|
950
950
|
}
|
|
951
951
|
/**
|
|
952
952
|
* @returns {Analyzer}
|
|
953
953
|
*/
|
|
954
954
|
create_analyzer() {
|
|
955
|
-
|
|
955
|
+
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
956
956
|
return Analyzer.__wrap(ret);
|
|
957
957
|
}
|
|
958
958
|
/**
|
|
@@ -1023,8 +1023,8 @@ class Fleet {
|
|
|
1023
1023
|
* @param {string} arg0
|
|
1024
1024
|
*/
|
|
1025
1025
|
set id(arg0) {
|
|
1026
|
-
|
|
1027
|
-
|
|
1026
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1027
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1028
1028
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
1029
1029
|
}
|
|
1030
1030
|
/**
|
|
@@ -1055,7 +1055,7 @@ class Fleet {
|
|
|
1055
1055
|
/**
|
|
1056
1056
|
*/
|
|
1057
1057
|
get len() {
|
|
1058
|
-
|
|
1058
|
+
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
1059
1059
|
return ret >>> 0;
|
|
1060
1060
|
}
|
|
1061
1061
|
/**
|
|
@@ -1068,7 +1068,7 @@ class Fleet {
|
|
|
1068
1068
|
* @returns {FleetMeta}
|
|
1069
1069
|
*/
|
|
1070
1070
|
meta() {
|
|
1071
|
-
|
|
1071
|
+
const ret = wasm.fleet_meta(this.ptr);
|
|
1072
1072
|
return takeObject(ret);
|
|
1073
1073
|
}
|
|
1074
1074
|
/**
|
|
@@ -1141,9 +1141,9 @@ class Fleet {
|
|
|
1141
1141
|
* @returns {number | undefined}
|
|
1142
1142
|
*/
|
|
1143
1143
|
get_damage_bound(id, state) {
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1144
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1145
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1146
|
+
const ret = wasm.fleet_get_damage_bound(this.ptr, ptr0, len0, addHeapObject(state));
|
|
1147
1147
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
@@ -1153,9 +1153,9 @@ class Fleet {
|
|
|
1153
1153
|
* @returns {number | undefined}
|
|
1154
1154
|
*/
|
|
1155
1155
|
get_remaining_fuel(id, rate, ceil) {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1156
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1157
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1158
|
+
const ret = wasm.fleet_get_remaining_fuel(this.ptr, ptr0, len0, rate, ceil);
|
|
1159
1159
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1160
1160
|
}
|
|
1161
1161
|
/**
|
|
@@ -1165,16 +1165,16 @@ class Fleet {
|
|
|
1165
1165
|
* @returns {number | undefined}
|
|
1166
1166
|
*/
|
|
1167
1167
|
get_remaining_ammo(id, rate, ceil) {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1168
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1169
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1170
|
+
const ret = wasm.fleet_get_remaining_ammo(this.ptr, ptr0, len0, rate, ceil);
|
|
1171
1171
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1172
1172
|
}
|
|
1173
1173
|
/**
|
|
1174
1174
|
* @returns {number}
|
|
1175
1175
|
*/
|
|
1176
1176
|
count_ships() {
|
|
1177
|
-
|
|
1177
|
+
const ret = wasm.fleet_count_ships(this.ptr);
|
|
1178
1178
|
return ret >>> 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
/**
|
|
@@ -1182,9 +1182,9 @@ class Fleet {
|
|
|
1182
1182
|
* @returns {Ship | undefined}
|
|
1183
1183
|
*/
|
|
1184
1184
|
get_ship(key) {
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1185
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1186
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1187
|
+
const ret = wasm.fleet_get_ship(this.ptr, ptr0, len0);
|
|
1188
1188
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1189
1189
|
}
|
|
1190
1190
|
/**
|
|
@@ -1253,7 +1253,7 @@ class Fleet {
|
|
|
1253
1253
|
* @returns {number}
|
|
1254
1254
|
*/
|
|
1255
1255
|
expedition_bonus() {
|
|
1256
|
-
|
|
1256
|
+
const ret = wasm.fleet_expedition_bonus(this.ptr);
|
|
1257
1257
|
return ret;
|
|
1258
1258
|
}
|
|
1259
1259
|
/**
|
|
@@ -1263,8 +1263,8 @@ class Fleet {
|
|
|
1263
1263
|
sum_ship_stat_by(key) {
|
|
1264
1264
|
try {
|
|
1265
1265
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1266
|
-
|
|
1267
|
-
|
|
1266
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1267
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1268
1268
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1269
1269
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1270
1270
|
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
@@ -1322,8 +1322,8 @@ class Gear {
|
|
|
1322
1322
|
* @param {string} arg0
|
|
1323
1323
|
*/
|
|
1324
1324
|
set id(arg0) {
|
|
1325
|
-
|
|
1326
|
-
|
|
1325
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1326
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1327
1327
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1328
1328
|
}
|
|
1329
1329
|
/**
|
|
@@ -1354,7 +1354,7 @@ class Gear {
|
|
|
1354
1354
|
/**
|
|
1355
1355
|
*/
|
|
1356
1356
|
get gear_id() {
|
|
1357
|
-
|
|
1357
|
+
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1358
1358
|
return ret;
|
|
1359
1359
|
}
|
|
1360
1360
|
/**
|
|
@@ -1366,7 +1366,7 @@ class Gear {
|
|
|
1366
1366
|
/**
|
|
1367
1367
|
*/
|
|
1368
1368
|
get stars() {
|
|
1369
|
-
|
|
1369
|
+
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1370
1370
|
return ret;
|
|
1371
1371
|
}
|
|
1372
1372
|
/**
|
|
@@ -1378,7 +1378,7 @@ class Gear {
|
|
|
1378
1378
|
/**
|
|
1379
1379
|
*/
|
|
1380
1380
|
get exp() {
|
|
1381
|
-
|
|
1381
|
+
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1382
1382
|
return ret;
|
|
1383
1383
|
}
|
|
1384
1384
|
/**
|
|
@@ -1390,7 +1390,7 @@ class Gear {
|
|
|
1390
1390
|
/**
|
|
1391
1391
|
*/
|
|
1392
1392
|
get default_exp() {
|
|
1393
|
-
|
|
1393
|
+
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1394
1394
|
return ret;
|
|
1395
1395
|
}
|
|
1396
1396
|
/**
|
|
@@ -1417,14 +1417,14 @@ class Gear {
|
|
|
1417
1417
|
* @param {string} arg0
|
|
1418
1418
|
*/
|
|
1419
1419
|
set name(arg0) {
|
|
1420
|
-
|
|
1421
|
-
|
|
1420
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1421
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1422
1422
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1423
1423
|
}
|
|
1424
1424
|
/**
|
|
1425
1425
|
*/
|
|
1426
1426
|
get gear_type() {
|
|
1427
|
-
|
|
1427
|
+
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1428
1428
|
return takeObject(ret);
|
|
1429
1429
|
}
|
|
1430
1430
|
/**
|
|
@@ -1436,7 +1436,7 @@ class Gear {
|
|
|
1436
1436
|
/**
|
|
1437
1437
|
*/
|
|
1438
1438
|
get max_hp() {
|
|
1439
|
-
|
|
1439
|
+
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1440
1440
|
return ret;
|
|
1441
1441
|
}
|
|
1442
1442
|
/**
|
|
@@ -1448,7 +1448,7 @@ class Gear {
|
|
|
1448
1448
|
/**
|
|
1449
1449
|
*/
|
|
1450
1450
|
get firepower() {
|
|
1451
|
-
|
|
1451
|
+
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1452
1452
|
return ret;
|
|
1453
1453
|
}
|
|
1454
1454
|
/**
|
|
@@ -1460,7 +1460,7 @@ class Gear {
|
|
|
1460
1460
|
/**
|
|
1461
1461
|
*/
|
|
1462
1462
|
get armor() {
|
|
1463
|
-
|
|
1463
|
+
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1464
1464
|
return ret;
|
|
1465
1465
|
}
|
|
1466
1466
|
/**
|
|
@@ -1472,7 +1472,7 @@ class Gear {
|
|
|
1472
1472
|
/**
|
|
1473
1473
|
*/
|
|
1474
1474
|
get torpedo() {
|
|
1475
|
-
|
|
1475
|
+
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1476
1476
|
return ret;
|
|
1477
1477
|
}
|
|
1478
1478
|
/**
|
|
@@ -1484,7 +1484,7 @@ class Gear {
|
|
|
1484
1484
|
/**
|
|
1485
1485
|
*/
|
|
1486
1486
|
get anti_air() {
|
|
1487
|
-
|
|
1487
|
+
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1488
1488
|
return ret;
|
|
1489
1489
|
}
|
|
1490
1490
|
/**
|
|
@@ -1496,7 +1496,7 @@ class Gear {
|
|
|
1496
1496
|
/**
|
|
1497
1497
|
*/
|
|
1498
1498
|
get speed() {
|
|
1499
|
-
|
|
1499
|
+
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1500
1500
|
return ret;
|
|
1501
1501
|
}
|
|
1502
1502
|
/**
|
|
@@ -1508,7 +1508,7 @@ class Gear {
|
|
|
1508
1508
|
/**
|
|
1509
1509
|
*/
|
|
1510
1510
|
get bombing() {
|
|
1511
|
-
|
|
1511
|
+
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1512
1512
|
return ret;
|
|
1513
1513
|
}
|
|
1514
1514
|
/**
|
|
@@ -1520,7 +1520,7 @@ class Gear {
|
|
|
1520
1520
|
/**
|
|
1521
1521
|
*/
|
|
1522
1522
|
get asw() {
|
|
1523
|
-
|
|
1523
|
+
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1524
1524
|
return ret;
|
|
1525
1525
|
}
|
|
1526
1526
|
/**
|
|
@@ -1532,7 +1532,7 @@ class Gear {
|
|
|
1532
1532
|
/**
|
|
1533
1533
|
*/
|
|
1534
1534
|
get los() {
|
|
1535
|
-
|
|
1535
|
+
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1536
1536
|
return ret;
|
|
1537
1537
|
}
|
|
1538
1538
|
/**
|
|
@@ -1544,7 +1544,7 @@ class Gear {
|
|
|
1544
1544
|
/**
|
|
1545
1545
|
*/
|
|
1546
1546
|
get luck() {
|
|
1547
|
-
|
|
1547
|
+
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1548
1548
|
return ret;
|
|
1549
1549
|
}
|
|
1550
1550
|
/**
|
|
@@ -1556,7 +1556,7 @@ class Gear {
|
|
|
1556
1556
|
/**
|
|
1557
1557
|
*/
|
|
1558
1558
|
get accuracy() {
|
|
1559
|
-
|
|
1559
|
+
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1560
1560
|
return ret;
|
|
1561
1561
|
}
|
|
1562
1562
|
/**
|
|
@@ -1568,7 +1568,7 @@ class Gear {
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
*/
|
|
1570
1570
|
get evasion() {
|
|
1571
|
-
|
|
1571
|
+
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1572
1572
|
return ret;
|
|
1573
1573
|
}
|
|
1574
1574
|
/**
|
|
@@ -1580,7 +1580,7 @@ class Gear {
|
|
|
1580
1580
|
/**
|
|
1581
1581
|
*/
|
|
1582
1582
|
get range() {
|
|
1583
|
-
|
|
1583
|
+
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1584
1584
|
return ret;
|
|
1585
1585
|
}
|
|
1586
1586
|
/**
|
|
@@ -1592,7 +1592,7 @@ class Gear {
|
|
|
1592
1592
|
/**
|
|
1593
1593
|
*/
|
|
1594
1594
|
get radius() {
|
|
1595
|
-
|
|
1595
|
+
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1596
1596
|
return ret;
|
|
1597
1597
|
}
|
|
1598
1598
|
/**
|
|
@@ -1604,7 +1604,7 @@ class Gear {
|
|
|
1604
1604
|
/**
|
|
1605
1605
|
*/
|
|
1606
1606
|
get cost() {
|
|
1607
|
-
|
|
1607
|
+
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1608
1608
|
return ret;
|
|
1609
1609
|
}
|
|
1610
1610
|
/**
|
|
@@ -1616,7 +1616,7 @@ class Gear {
|
|
|
1616
1616
|
/**
|
|
1617
1617
|
*/
|
|
1618
1618
|
get improvable() {
|
|
1619
|
-
|
|
1619
|
+
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1620
1620
|
return ret !== 0;
|
|
1621
1621
|
}
|
|
1622
1622
|
/**
|
|
@@ -1628,7 +1628,7 @@ class Gear {
|
|
|
1628
1628
|
/**
|
|
1629
1629
|
*/
|
|
1630
1630
|
get adjusted_anti_air_resistance() {
|
|
1631
|
-
|
|
1631
|
+
const ret = wasm.__wbg_get_gear_adjusted_anti_air_resistance(this.ptr);
|
|
1632
1632
|
return ret;
|
|
1633
1633
|
}
|
|
1634
1634
|
/**
|
|
@@ -1640,7 +1640,7 @@ class Gear {
|
|
|
1640
1640
|
/**
|
|
1641
1641
|
*/
|
|
1642
1642
|
get fleet_anti_air_resistance() {
|
|
1643
|
-
|
|
1643
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1644
1644
|
return ret;
|
|
1645
1645
|
}
|
|
1646
1646
|
/**
|
|
@@ -1653,35 +1653,35 @@ class Gear {
|
|
|
1653
1653
|
* @returns {Gear}
|
|
1654
1654
|
*/
|
|
1655
1655
|
static default() {
|
|
1656
|
-
|
|
1656
|
+
const ret = wasm.gear_default();
|
|
1657
1657
|
return Gear.__wrap(ret);
|
|
1658
1658
|
}
|
|
1659
1659
|
/**
|
|
1660
1660
|
* @returns {any}
|
|
1661
1661
|
*/
|
|
1662
1662
|
get types() {
|
|
1663
|
-
|
|
1663
|
+
const ret = wasm.gear_types(this.ptr);
|
|
1664
1664
|
return takeObject(ret);
|
|
1665
1665
|
}
|
|
1666
1666
|
/**
|
|
1667
1667
|
* @returns {number}
|
|
1668
1668
|
*/
|
|
1669
1669
|
get gear_type_id() {
|
|
1670
|
-
|
|
1670
|
+
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1671
1671
|
return ret;
|
|
1672
1672
|
}
|
|
1673
1673
|
/**
|
|
1674
1674
|
* @returns {number}
|
|
1675
1675
|
*/
|
|
1676
1676
|
get special_type_id() {
|
|
1677
|
-
|
|
1677
|
+
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1678
1678
|
return ret;
|
|
1679
1679
|
}
|
|
1680
1680
|
/**
|
|
1681
1681
|
* @returns {number}
|
|
1682
1682
|
*/
|
|
1683
1683
|
get icon_id() {
|
|
1684
|
-
|
|
1684
|
+
const ret = wasm.gear_icon_id(this.ptr);
|
|
1685
1685
|
return ret;
|
|
1686
1686
|
}
|
|
1687
1687
|
/**
|
|
@@ -1689,63 +1689,63 @@ class Gear {
|
|
|
1689
1689
|
* @returns {boolean}
|
|
1690
1690
|
*/
|
|
1691
1691
|
has_attr(attr) {
|
|
1692
|
-
|
|
1692
|
+
const ret = wasm.gear_has_attr(this.ptr, addHeapObject(attr));
|
|
1693
1693
|
return ret !== 0;
|
|
1694
1694
|
}
|
|
1695
1695
|
/**
|
|
1696
1696
|
* @returns {GearCategory}
|
|
1697
1697
|
*/
|
|
1698
1698
|
category() {
|
|
1699
|
-
|
|
1699
|
+
const ret = wasm.gear_category(this.ptr);
|
|
1700
1700
|
return takeObject(ret);
|
|
1701
1701
|
}
|
|
1702
1702
|
/**
|
|
1703
1703
|
* @returns {number}
|
|
1704
1704
|
*/
|
|
1705
1705
|
get ace() {
|
|
1706
|
-
|
|
1706
|
+
const ret = wasm.gear_ace(this.ptr);
|
|
1707
1707
|
return ret;
|
|
1708
1708
|
}
|
|
1709
1709
|
/**
|
|
1710
1710
|
* @returns {number}
|
|
1711
1711
|
*/
|
|
1712
1712
|
get anti_bomber() {
|
|
1713
|
-
|
|
1713
|
+
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1714
1714
|
return ret;
|
|
1715
1715
|
}
|
|
1716
1716
|
/**
|
|
1717
1717
|
* @returns {number}
|
|
1718
1718
|
*/
|
|
1719
1719
|
get interception() {
|
|
1720
|
-
|
|
1720
|
+
const ret = wasm.gear_interception(this.ptr);
|
|
1721
1721
|
return ret;
|
|
1722
1722
|
}
|
|
1723
1723
|
/**
|
|
1724
1724
|
* @returns {boolean}
|
|
1725
1725
|
*/
|
|
1726
1726
|
is_carrier_shelling_plane() {
|
|
1727
|
-
|
|
1727
|
+
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1728
1728
|
return ret !== 0;
|
|
1729
1729
|
}
|
|
1730
1730
|
/**
|
|
1731
1731
|
* @returns {boolean}
|
|
1732
1732
|
*/
|
|
1733
1733
|
has_proficiency() {
|
|
1734
|
-
|
|
1734
|
+
const ret = wasm.gear_has_proficiency(this.ptr);
|
|
1735
1735
|
return ret !== 0;
|
|
1736
1736
|
}
|
|
1737
1737
|
/**
|
|
1738
1738
|
* @returns {boolean}
|
|
1739
1739
|
*/
|
|
1740
1740
|
max_exp_eq_120() {
|
|
1741
|
-
|
|
1741
|
+
const ret = wasm.gear_max_exp_eq_120(this.ptr);
|
|
1742
1742
|
return ret !== 0;
|
|
1743
1743
|
}
|
|
1744
1744
|
/**
|
|
1745
1745
|
* @returns {number}
|
|
1746
1746
|
*/
|
|
1747
1747
|
proficiency_critical_power_mod() {
|
|
1748
|
-
|
|
1748
|
+
const ret = wasm.gear_proficiency_critical_power_mod(this.ptr);
|
|
1749
1749
|
return ret;
|
|
1750
1750
|
}
|
|
1751
1751
|
/**
|
|
@@ -1753,7 +1753,7 @@ class Gear {
|
|
|
1753
1753
|
* @returns {number}
|
|
1754
1754
|
*/
|
|
1755
1755
|
calc_fighter_power(slot_size) {
|
|
1756
|
-
|
|
1756
|
+
const ret = wasm.gear_calc_fighter_power(this.ptr, slot_size);
|
|
1757
1757
|
return ret;
|
|
1758
1758
|
}
|
|
1759
1759
|
/**
|
|
@@ -1761,21 +1761,21 @@ class Gear {
|
|
|
1761
1761
|
* @returns {number}
|
|
1762
1762
|
*/
|
|
1763
1763
|
calc_interception_power(slot_size) {
|
|
1764
|
-
|
|
1764
|
+
const ret = wasm.gear_calc_interception_power(this.ptr, slot_size);
|
|
1765
1765
|
return ret;
|
|
1766
1766
|
}
|
|
1767
1767
|
/**
|
|
1768
1768
|
* @returns {number}
|
|
1769
1769
|
*/
|
|
1770
1770
|
fleet_anti_air() {
|
|
1771
|
-
|
|
1771
|
+
const ret = wasm.gear_fleet_anti_air(this.ptr);
|
|
1772
1772
|
return ret;
|
|
1773
1773
|
}
|
|
1774
1774
|
/**
|
|
1775
1775
|
* @returns {number}
|
|
1776
1776
|
*/
|
|
1777
1777
|
adjusted_anti_air() {
|
|
1778
|
-
|
|
1778
|
+
const ret = wasm.gear_adjusted_anti_air(this.ptr);
|
|
1779
1779
|
return ret;
|
|
1780
1780
|
}
|
|
1781
1781
|
/**
|
|
@@ -1783,7 +1783,7 @@ class Gear {
|
|
|
1783
1783
|
* @returns {number}
|
|
1784
1784
|
*/
|
|
1785
1785
|
calc_contact_trigger_factor(slot_size) {
|
|
1786
|
-
|
|
1786
|
+
const ret = wasm.gear_calc_contact_trigger_factor(this.ptr, slot_size);
|
|
1787
1787
|
return ret;
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
@@ -1791,7 +1791,7 @@ class Gear {
|
|
|
1791
1791
|
* @returns {number}
|
|
1792
1792
|
*/
|
|
1793
1793
|
contact_selection_rate(rank) {
|
|
1794
|
-
|
|
1794
|
+
const ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1795
1795
|
return ret;
|
|
1796
1796
|
}
|
|
1797
1797
|
/**
|
|
@@ -1799,14 +1799,14 @@ class Gear {
|
|
|
1799
1799
|
* @returns {number}
|
|
1800
1800
|
*/
|
|
1801
1801
|
night_contact_rate(level) {
|
|
1802
|
-
|
|
1802
|
+
const ret = wasm.gear_night_contact_rate(this.ptr, level);
|
|
1803
1803
|
return ret;
|
|
1804
1804
|
}
|
|
1805
1805
|
/**
|
|
1806
1806
|
* @returns {boolean}
|
|
1807
1807
|
*/
|
|
1808
1808
|
is_night_plane() {
|
|
1809
|
-
|
|
1809
|
+
const ret = wasm.gear_is_night_plane(this.ptr);
|
|
1810
1810
|
return ret !== 0;
|
|
1811
1811
|
}
|
|
1812
1812
|
/**
|
|
@@ -1815,42 +1815,42 @@ class Gear {
|
|
|
1815
1815
|
* @returns {number}
|
|
1816
1816
|
*/
|
|
1817
1817
|
night_plane_power(slot_size, anti_inst) {
|
|
1818
|
-
|
|
1818
|
+
const ret = wasm.gear_night_plane_power(this.ptr, slot_size, anti_inst);
|
|
1819
1819
|
return ret;
|
|
1820
1820
|
}
|
|
1821
1821
|
/**
|
|
1822
1822
|
* @returns {number}
|
|
1823
1823
|
*/
|
|
1824
1824
|
elos() {
|
|
1825
|
-
|
|
1825
|
+
const ret = wasm.gear_elos(this.ptr);
|
|
1826
1826
|
return ret;
|
|
1827
1827
|
}
|
|
1828
1828
|
/**
|
|
1829
1829
|
* @returns {boolean}
|
|
1830
1830
|
*/
|
|
1831
1831
|
is_abyssal() {
|
|
1832
|
-
|
|
1832
|
+
const ret = wasm.gear_is_abyssal(this.ptr);
|
|
1833
1833
|
return ret !== 0;
|
|
1834
1834
|
}
|
|
1835
1835
|
/**
|
|
1836
1836
|
* @returns {boolean}
|
|
1837
1837
|
*/
|
|
1838
1838
|
is_abyssal_cuttlefish_torpedo() {
|
|
1839
|
-
|
|
1839
|
+
const ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1840
1840
|
return ret !== 0;
|
|
1841
1841
|
}
|
|
1842
1842
|
/**
|
|
1843
1843
|
* @returns {boolean}
|
|
1844
1844
|
*/
|
|
1845
1845
|
is_abyssal_patrolling_attack_hawk() {
|
|
1846
|
-
|
|
1846
|
+
const ret = wasm.gear_is_abyssal_patrolling_attack_hawk(this.ptr);
|
|
1847
1847
|
return ret !== 0;
|
|
1848
1848
|
}
|
|
1849
1849
|
/**
|
|
1850
1850
|
* @returns {number}
|
|
1851
1851
|
*/
|
|
1852
1852
|
expedition_bonus() {
|
|
1853
|
-
|
|
1853
|
+
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1854
1854
|
return ret;
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
@@ -1875,7 +1875,7 @@ class IBonuses {
|
|
|
1875
1875
|
/**
|
|
1876
1876
|
*/
|
|
1877
1877
|
get shelling_power() {
|
|
1878
|
-
|
|
1878
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1879
1879
|
return ret;
|
|
1880
1880
|
}
|
|
1881
1881
|
/**
|
|
@@ -1887,7 +1887,7 @@ class IBonuses {
|
|
|
1887
1887
|
/**
|
|
1888
1888
|
*/
|
|
1889
1889
|
get carrier_shelling_power() {
|
|
1890
|
-
|
|
1890
|
+
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1891
1891
|
return ret;
|
|
1892
1892
|
}
|
|
1893
1893
|
/**
|
|
@@ -1899,7 +1899,7 @@ class IBonuses {
|
|
|
1899
1899
|
/**
|
|
1900
1900
|
*/
|
|
1901
1901
|
get shelling_accuracy() {
|
|
1902
|
-
|
|
1902
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1903
1903
|
return ret;
|
|
1904
1904
|
}
|
|
1905
1905
|
/**
|
|
@@ -1911,7 +1911,7 @@ class IBonuses {
|
|
|
1911
1911
|
/**
|
|
1912
1912
|
*/
|
|
1913
1913
|
get torpedo_power() {
|
|
1914
|
-
|
|
1914
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1915
1915
|
return ret;
|
|
1916
1916
|
}
|
|
1917
1917
|
/**
|
|
@@ -1923,7 +1923,7 @@ class IBonuses {
|
|
|
1923
1923
|
/**
|
|
1924
1924
|
*/
|
|
1925
1925
|
get torpedo_accuracy() {
|
|
1926
|
-
|
|
1926
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1927
1927
|
return ret;
|
|
1928
1928
|
}
|
|
1929
1929
|
/**
|
|
@@ -1935,7 +1935,7 @@ class IBonuses {
|
|
|
1935
1935
|
/**
|
|
1936
1936
|
*/
|
|
1937
1937
|
get torpedo_evasion() {
|
|
1938
|
-
|
|
1938
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1939
1939
|
return ret;
|
|
1940
1940
|
}
|
|
1941
1941
|
/**
|
|
@@ -1947,7 +1947,7 @@ class IBonuses {
|
|
|
1947
1947
|
/**
|
|
1948
1948
|
*/
|
|
1949
1949
|
get asw_power() {
|
|
1950
|
-
|
|
1950
|
+
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1951
1951
|
return ret;
|
|
1952
1952
|
}
|
|
1953
1953
|
/**
|
|
@@ -1959,7 +1959,7 @@ class IBonuses {
|
|
|
1959
1959
|
/**
|
|
1960
1960
|
*/
|
|
1961
1961
|
get asw_accuracy() {
|
|
1962
|
-
|
|
1962
|
+
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1963
1963
|
return ret;
|
|
1964
1964
|
}
|
|
1965
1965
|
/**
|
|
@@ -1971,7 +1971,7 @@ class IBonuses {
|
|
|
1971
1971
|
/**
|
|
1972
1972
|
*/
|
|
1973
1973
|
get night_power() {
|
|
1974
|
-
|
|
1974
|
+
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1975
1975
|
return ret;
|
|
1976
1976
|
}
|
|
1977
1977
|
/**
|
|
@@ -1983,7 +1983,7 @@ class IBonuses {
|
|
|
1983
1983
|
/**
|
|
1984
1984
|
*/
|
|
1985
1985
|
get night_accuracy() {
|
|
1986
|
-
|
|
1986
|
+
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1987
1987
|
return ret;
|
|
1988
1988
|
}
|
|
1989
1989
|
/**
|
|
@@ -1995,7 +1995,7 @@ class IBonuses {
|
|
|
1995
1995
|
/**
|
|
1996
1996
|
*/
|
|
1997
1997
|
get defense_power() {
|
|
1998
|
-
|
|
1998
|
+
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1999
1999
|
return ret;
|
|
2000
2000
|
}
|
|
2001
2001
|
/**
|
|
@@ -2007,7 +2007,7 @@ class IBonuses {
|
|
|
2007
2007
|
/**
|
|
2008
2008
|
*/
|
|
2009
2009
|
get contact_selection() {
|
|
2010
|
-
|
|
2010
|
+
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
2011
2011
|
return ret;
|
|
2012
2012
|
}
|
|
2013
2013
|
/**
|
|
@@ -2019,7 +2019,7 @@ class IBonuses {
|
|
|
2019
2019
|
/**
|
|
2020
2020
|
*/
|
|
2021
2021
|
get fighter_power() {
|
|
2022
|
-
|
|
2022
|
+
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
2023
2023
|
return ret;
|
|
2024
2024
|
}
|
|
2025
2025
|
/**
|
|
@@ -2031,7 +2031,7 @@ class IBonuses {
|
|
|
2031
2031
|
/**
|
|
2032
2032
|
*/
|
|
2033
2033
|
get adjusted_anti_air() {
|
|
2034
|
-
|
|
2034
|
+
const ret = wasm.__wbg_get_ibonuses_adjusted_anti_air(this.ptr);
|
|
2035
2035
|
return ret;
|
|
2036
2036
|
}
|
|
2037
2037
|
/**
|
|
@@ -2043,7 +2043,7 @@ class IBonuses {
|
|
|
2043
2043
|
/**
|
|
2044
2044
|
*/
|
|
2045
2045
|
get fleet_anti_air() {
|
|
2046
|
-
|
|
2046
|
+
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
2047
2047
|
return ret;
|
|
2048
2048
|
}
|
|
2049
2049
|
/**
|
|
@@ -2055,7 +2055,7 @@ class IBonuses {
|
|
|
2055
2055
|
/**
|
|
2056
2056
|
*/
|
|
2057
2057
|
get elos() {
|
|
2058
|
-
|
|
2058
|
+
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
2059
2059
|
return ret;
|
|
2060
2060
|
}
|
|
2061
2061
|
/**
|
|
@@ -2108,8 +2108,8 @@ class Org {
|
|
|
2108
2108
|
* @param {string} arg0
|
|
2109
2109
|
*/
|
|
2110
2110
|
set id(arg0) {
|
|
2111
|
-
|
|
2112
|
-
|
|
2111
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2112
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2113
2113
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
2114
2114
|
}
|
|
2115
2115
|
/**
|
|
@@ -2140,7 +2140,7 @@ class Org {
|
|
|
2140
2140
|
/**
|
|
2141
2141
|
*/
|
|
2142
2142
|
get hq_level() {
|
|
2143
|
-
|
|
2143
|
+
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2144
2144
|
return ret;
|
|
2145
2145
|
}
|
|
2146
2146
|
/**
|
|
@@ -2152,7 +2152,7 @@ class Org {
|
|
|
2152
2152
|
/**
|
|
2153
2153
|
*/
|
|
2154
2154
|
get org_type() {
|
|
2155
|
-
|
|
2155
|
+
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2156
2156
|
return takeObject(ret);
|
|
2157
2157
|
}
|
|
2158
2158
|
/**
|
|
@@ -2179,8 +2179,8 @@ class Org {
|
|
|
2179
2179
|
* @param {string} arg0
|
|
2180
2180
|
*/
|
|
2181
2181
|
set sortie(arg0) {
|
|
2182
|
-
|
|
2183
|
-
|
|
2182
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2183
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2184
2184
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2185
2185
|
}
|
|
2186
2186
|
/**
|
|
@@ -2240,7 +2240,7 @@ class Org {
|
|
|
2240
2240
|
* @returns {number}
|
|
2241
2241
|
*/
|
|
2242
2242
|
fleet_len(role) {
|
|
2243
|
-
|
|
2243
|
+
const ret = wasm.org_fleet_len(this.ptr, addHeapObject(role));
|
|
2244
2244
|
return ret >>> 0;
|
|
2245
2245
|
}
|
|
2246
2246
|
/**
|
|
@@ -2251,8 +2251,8 @@ class Org {
|
|
|
2251
2251
|
get_ship_entity_id(role, key) {
|
|
2252
2252
|
try {
|
|
2253
2253
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2254
|
-
|
|
2255
|
-
|
|
2254
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2256
2256
|
wasm.org_get_ship_entity_id(retptr, this.ptr, addHeapObject(role), ptr0, len0);
|
|
2257
2257
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2258
2258
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2334,9 +2334,9 @@ class Org {
|
|
|
2334
2334
|
* @returns {Fleet}
|
|
2335
2335
|
*/
|
|
2336
2336
|
clone_fleet(key) {
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2337
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2338
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2339
|
+
const ret = wasm.org_clone_fleet(this.ptr, ptr0, len0);
|
|
2340
2340
|
return Fleet.__wrap(ret);
|
|
2341
2341
|
}
|
|
2342
2342
|
/**
|
|
@@ -2345,9 +2345,9 @@ class Org {
|
|
|
2345
2345
|
* @returns {Ship | undefined}
|
|
2346
2346
|
*/
|
|
2347
2347
|
get_ship(role, key) {
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2348
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2349
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2350
|
+
const ret = wasm.org_get_ship(this.ptr, addHeapObject(role), ptr0, len0);
|
|
2351
2351
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2352
2352
|
}
|
|
2353
2353
|
/**
|
|
@@ -2355,9 +2355,9 @@ class Org {
|
|
|
2355
2355
|
* @returns {Ship | undefined}
|
|
2356
2356
|
*/
|
|
2357
2357
|
get_ship_by_id(id) {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2358
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2359
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2360
|
+
const ret = wasm.org_get_ship_by_id(this.ptr, ptr0, len0);
|
|
2361
2361
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2362
2362
|
}
|
|
2363
2363
|
/**
|
|
@@ -2380,7 +2380,7 @@ class Org {
|
|
|
2380
2380
|
* @returns {Comp}
|
|
2381
2381
|
*/
|
|
2382
2382
|
create_comp() {
|
|
2383
|
-
|
|
2383
|
+
const ret = wasm.org_create_comp(this.ptr);
|
|
2384
2384
|
return Comp.__wrap(ret);
|
|
2385
2385
|
}
|
|
2386
2386
|
/**
|
|
@@ -2388,9 +2388,9 @@ class Org {
|
|
|
2388
2388
|
* @returns {Comp}
|
|
2389
2389
|
*/
|
|
2390
2390
|
create_comp_by_key(key) {
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2391
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2392
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2393
|
+
const ret = wasm.org_create_comp_by_key(this.ptr, ptr0, len0);
|
|
2394
2394
|
return Comp.__wrap(ret);
|
|
2395
2395
|
}
|
|
2396
2396
|
/**
|
|
@@ -2400,8 +2400,8 @@ class Org {
|
|
|
2400
2400
|
get_air_squadron(key) {
|
|
2401
2401
|
try {
|
|
2402
2402
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2403
|
-
|
|
2404
|
-
|
|
2403
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2404
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2405
2405
|
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2406
2406
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2407
2407
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2450,35 +2450,35 @@ class Org {
|
|
|
2450
2450
|
* @returns {Side}
|
|
2451
2451
|
*/
|
|
2452
2452
|
side() {
|
|
2453
|
-
|
|
2453
|
+
const ret = wasm.org_side(this.ptr);
|
|
2454
2454
|
return takeObject(ret);
|
|
2455
2455
|
}
|
|
2456
2456
|
/**
|
|
2457
2457
|
* @returns {boolean}
|
|
2458
2458
|
*/
|
|
2459
2459
|
is_player() {
|
|
2460
|
-
|
|
2460
|
+
const ret = wasm.org_is_player(this.ptr);
|
|
2461
2461
|
return ret !== 0;
|
|
2462
2462
|
}
|
|
2463
2463
|
/**
|
|
2464
2464
|
* @returns {boolean}
|
|
2465
2465
|
*/
|
|
2466
2466
|
is_enemy() {
|
|
2467
|
-
|
|
2467
|
+
const ret = wasm.org_is_enemy(this.ptr);
|
|
2468
2468
|
return ret !== 0;
|
|
2469
2469
|
}
|
|
2470
2470
|
/**
|
|
2471
2471
|
* @returns {boolean}
|
|
2472
2472
|
*/
|
|
2473
2473
|
is_single() {
|
|
2474
|
-
|
|
2474
|
+
const ret = wasm.org_is_single(this.ptr);
|
|
2475
2475
|
return ret !== 0;
|
|
2476
2476
|
}
|
|
2477
2477
|
/**
|
|
2478
2478
|
* @returns {boolean}
|
|
2479
2479
|
*/
|
|
2480
2480
|
is_combined() {
|
|
2481
|
-
|
|
2481
|
+
const ret = wasm.org_is_combined(this.ptr);
|
|
2482
2482
|
return ret !== 0;
|
|
2483
2483
|
}
|
|
2484
2484
|
/**
|
|
@@ -2486,7 +2486,7 @@ class Org {
|
|
|
2486
2486
|
* @returns {number}
|
|
2487
2487
|
*/
|
|
2488
2488
|
interception_power() {
|
|
2489
|
-
|
|
2489
|
+
const ret = wasm.org_interception_power(this.ptr);
|
|
2490
2490
|
return ret;
|
|
2491
2491
|
}
|
|
2492
2492
|
/**
|
|
@@ -2494,7 +2494,7 @@ class Org {
|
|
|
2494
2494
|
* @returns {number}
|
|
2495
2495
|
*/
|
|
2496
2496
|
high_altitude_interception_power() {
|
|
2497
|
-
|
|
2497
|
+
const ret = wasm.org_high_altitude_interception_power(this.ptr);
|
|
2498
2498
|
return ret;
|
|
2499
2499
|
}
|
|
2500
2500
|
/**
|
|
@@ -2504,14 +2504,14 @@ class Org {
|
|
|
2504
2504
|
*/
|
|
2505
2505
|
create_warfare_ship_environment(ship, formation) {
|
|
2506
2506
|
_assertClass(ship, Ship);
|
|
2507
|
-
|
|
2507
|
+
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2508
2508
|
return takeObject(ret);
|
|
2509
2509
|
}
|
|
2510
2510
|
/**
|
|
2511
2511
|
* @returns {Org}
|
|
2512
2512
|
*/
|
|
2513
2513
|
static default() {
|
|
2514
|
-
|
|
2514
|
+
const ret = wasm.org_default();
|
|
2515
2515
|
return Org.__wrap(ret);
|
|
2516
2516
|
}
|
|
2517
2517
|
}
|
|
@@ -2558,8 +2558,8 @@ class Ship {
|
|
|
2558
2558
|
* @param {string} arg0
|
|
2559
2559
|
*/
|
|
2560
2560
|
set id(arg0) {
|
|
2561
|
-
|
|
2562
|
-
|
|
2561
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2562
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2563
2563
|
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2564
2564
|
}
|
|
2565
2565
|
/**
|
|
@@ -2590,7 +2590,7 @@ class Ship {
|
|
|
2590
2590
|
/**
|
|
2591
2591
|
*/
|
|
2592
2592
|
get ship_id() {
|
|
2593
|
-
|
|
2593
|
+
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2594
2594
|
return ret;
|
|
2595
2595
|
}
|
|
2596
2596
|
/**
|
|
@@ -2602,7 +2602,7 @@ class Ship {
|
|
|
2602
2602
|
/**
|
|
2603
2603
|
*/
|
|
2604
2604
|
get level() {
|
|
2605
|
-
|
|
2605
|
+
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2606
2606
|
return ret;
|
|
2607
2607
|
}
|
|
2608
2608
|
/**
|
|
@@ -2614,7 +2614,7 @@ class Ship {
|
|
|
2614
2614
|
/**
|
|
2615
2615
|
*/
|
|
2616
2616
|
get current_hp() {
|
|
2617
|
-
|
|
2617
|
+
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2618
2618
|
return ret;
|
|
2619
2619
|
}
|
|
2620
2620
|
/**
|
|
@@ -2626,7 +2626,7 @@ class Ship {
|
|
|
2626
2626
|
/**
|
|
2627
2627
|
*/
|
|
2628
2628
|
get morale() {
|
|
2629
|
-
|
|
2629
|
+
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2630
2630
|
return ret;
|
|
2631
2631
|
}
|
|
2632
2632
|
/**
|
|
@@ -2638,7 +2638,7 @@ class Ship {
|
|
|
2638
2638
|
/**
|
|
2639
2639
|
*/
|
|
2640
2640
|
get ammo() {
|
|
2641
|
-
|
|
2641
|
+
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2642
2642
|
return ret;
|
|
2643
2643
|
}
|
|
2644
2644
|
/**
|
|
@@ -2650,7 +2650,7 @@ class Ship {
|
|
|
2650
2650
|
/**
|
|
2651
2651
|
*/
|
|
2652
2652
|
get fuel() {
|
|
2653
|
-
|
|
2653
|
+
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2654
2654
|
return ret;
|
|
2655
2655
|
}
|
|
2656
2656
|
/**
|
|
@@ -2662,7 +2662,7 @@ class Ship {
|
|
|
2662
2662
|
/**
|
|
2663
2663
|
*/
|
|
2664
2664
|
get ship_type() {
|
|
2665
|
-
|
|
2665
|
+
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2666
2666
|
return takeObject(ret);
|
|
2667
2667
|
}
|
|
2668
2668
|
/**
|
|
@@ -2674,7 +2674,7 @@ class Ship {
|
|
|
2674
2674
|
/**
|
|
2675
2675
|
*/
|
|
2676
2676
|
get ctype() {
|
|
2677
|
-
|
|
2677
|
+
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2678
2678
|
return ret;
|
|
2679
2679
|
}
|
|
2680
2680
|
/**
|
|
@@ -2687,105 +2687,105 @@ class Ship {
|
|
|
2687
2687
|
* @returns {number | undefined}
|
|
2688
2688
|
*/
|
|
2689
2689
|
get naked_firepower() {
|
|
2690
|
-
|
|
2690
|
+
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2691
2691
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2692
2692
|
}
|
|
2693
2693
|
/**
|
|
2694
2694
|
* @returns {number | undefined}
|
|
2695
2695
|
*/
|
|
2696
2696
|
get naked_torpedo() {
|
|
2697
|
-
|
|
2697
|
+
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2698
2698
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2699
2699
|
}
|
|
2700
2700
|
/**
|
|
2701
2701
|
* @returns {number | undefined}
|
|
2702
2702
|
*/
|
|
2703
2703
|
get naked_armor() {
|
|
2704
|
-
|
|
2704
|
+
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2705
2705
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2706
2706
|
}
|
|
2707
2707
|
/**
|
|
2708
2708
|
* @returns {number | undefined}
|
|
2709
2709
|
*/
|
|
2710
2710
|
get naked_anti_air() {
|
|
2711
|
-
|
|
2711
|
+
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2712
2712
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2713
2713
|
}
|
|
2714
2714
|
/**
|
|
2715
2715
|
* @returns {number | undefined}
|
|
2716
2716
|
*/
|
|
2717
2717
|
get naked_evasion() {
|
|
2718
|
-
|
|
2718
|
+
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2719
2719
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2720
2720
|
}
|
|
2721
2721
|
/**
|
|
2722
2722
|
* @returns {number | undefined}
|
|
2723
2723
|
*/
|
|
2724
2724
|
get naked_asw() {
|
|
2725
|
-
|
|
2725
|
+
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2726
2726
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2727
2727
|
}
|
|
2728
2728
|
/**
|
|
2729
2729
|
* @returns {number | undefined}
|
|
2730
2730
|
*/
|
|
2731
2731
|
get naked_los() {
|
|
2732
|
-
|
|
2732
|
+
const ret = wasm.ship_naked_los(this.ptr);
|
|
2733
2733
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2734
2734
|
}
|
|
2735
2735
|
/**
|
|
2736
2736
|
* @returns {number | undefined}
|
|
2737
2737
|
*/
|
|
2738
2738
|
get firepower() {
|
|
2739
|
-
|
|
2739
|
+
const ret = wasm.ship_firepower(this.ptr);
|
|
2740
2740
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2741
2741
|
}
|
|
2742
2742
|
/**
|
|
2743
2743
|
* @returns {number | undefined}
|
|
2744
2744
|
*/
|
|
2745
2745
|
get torpedo() {
|
|
2746
|
-
|
|
2746
|
+
const ret = wasm.ship_torpedo(this.ptr);
|
|
2747
2747
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2748
2748
|
}
|
|
2749
2749
|
/**
|
|
2750
2750
|
* @returns {number | undefined}
|
|
2751
2751
|
*/
|
|
2752
2752
|
get armor() {
|
|
2753
|
-
|
|
2753
|
+
const ret = wasm.ship_armor(this.ptr);
|
|
2754
2754
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2755
2755
|
}
|
|
2756
2756
|
/**
|
|
2757
2757
|
* @returns {number | undefined}
|
|
2758
2758
|
*/
|
|
2759
2759
|
get anti_air() {
|
|
2760
|
-
|
|
2760
|
+
const ret = wasm.ship_anti_air(this.ptr);
|
|
2761
2761
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2762
2762
|
}
|
|
2763
2763
|
/**
|
|
2764
2764
|
* @returns {number | undefined}
|
|
2765
2765
|
*/
|
|
2766
2766
|
get evasion() {
|
|
2767
|
-
|
|
2767
|
+
const ret = wasm.ship_evasion(this.ptr);
|
|
2768
2768
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2769
2769
|
}
|
|
2770
2770
|
/**
|
|
2771
2771
|
* @returns {number | undefined}
|
|
2772
2772
|
*/
|
|
2773
2773
|
get asw() {
|
|
2774
|
-
|
|
2774
|
+
const ret = wasm.ship_asw(this.ptr);
|
|
2775
2775
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2776
2776
|
}
|
|
2777
2777
|
/**
|
|
2778
2778
|
* @returns {number | undefined}
|
|
2779
2779
|
*/
|
|
2780
2780
|
get los() {
|
|
2781
|
-
|
|
2781
|
+
const ret = wasm.ship_los(this.ptr);
|
|
2782
2782
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2783
2783
|
}
|
|
2784
2784
|
/**
|
|
2785
2785
|
* @returns {Ship}
|
|
2786
2786
|
*/
|
|
2787
2787
|
static default() {
|
|
2788
|
-
|
|
2788
|
+
const ret = wasm.ship_default();
|
|
2789
2789
|
return Ship.__wrap(ret);
|
|
2790
2790
|
}
|
|
2791
2791
|
/**
|
|
@@ -2793,23 +2793,23 @@ class Ship {
|
|
|
2793
2793
|
* @returns {boolean}
|
|
2794
2794
|
*/
|
|
2795
2795
|
eq_id(id) {
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2796
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2797
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2798
|
+
const ret = wasm.ship_eq_id(this.ptr, ptr0, len0);
|
|
2799
2799
|
return ret !== 0;
|
|
2800
2800
|
}
|
|
2801
2801
|
/**
|
|
2802
2802
|
* @returns {ShipState}
|
|
2803
2803
|
*/
|
|
2804
2804
|
state() {
|
|
2805
|
-
|
|
2805
|
+
const ret = wasm.ship_state(this.ptr);
|
|
2806
2806
|
return takeObject(ret);
|
|
2807
2807
|
}
|
|
2808
2808
|
/**
|
|
2809
2809
|
* @returns {ShipMeta}
|
|
2810
2810
|
*/
|
|
2811
2811
|
meta() {
|
|
2812
|
-
|
|
2812
|
+
const ret = wasm.ship_meta(this.ptr);
|
|
2813
2813
|
return takeObject(ret);
|
|
2814
2814
|
}
|
|
2815
2815
|
/**
|
|
@@ -2846,63 +2846,63 @@ class Ship {
|
|
|
2846
2846
|
* @returns {number}
|
|
2847
2847
|
*/
|
|
2848
2848
|
get stype() {
|
|
2849
|
-
|
|
2849
|
+
const ret = wasm.ship_stype(this.ptr);
|
|
2850
2850
|
return ret;
|
|
2851
2851
|
}
|
|
2852
2852
|
/**
|
|
2853
2853
|
* @returns {number}
|
|
2854
2854
|
*/
|
|
2855
2855
|
get sort_id() {
|
|
2856
|
-
|
|
2856
|
+
const ret = wasm.ship_sort_id(this.ptr);
|
|
2857
2857
|
return ret;
|
|
2858
2858
|
}
|
|
2859
2859
|
/**
|
|
2860
2860
|
* @returns {number}
|
|
2861
2861
|
*/
|
|
2862
2862
|
remodel_rank() {
|
|
2863
|
-
|
|
2863
|
+
const ret = wasm.ship_remodel_rank(this.ptr);
|
|
2864
2864
|
return ret;
|
|
2865
2865
|
}
|
|
2866
2866
|
/**
|
|
2867
2867
|
* @returns {number}
|
|
2868
2868
|
*/
|
|
2869
2869
|
get slotnum() {
|
|
2870
|
-
|
|
2870
|
+
const ret = wasm.ship_slotnum(this.ptr);
|
|
2871
2871
|
return ret >>> 0;
|
|
2872
2872
|
}
|
|
2873
2873
|
/**
|
|
2874
2874
|
* @returns {number}
|
|
2875
2875
|
*/
|
|
2876
2876
|
get next_id() {
|
|
2877
|
-
|
|
2877
|
+
const ret = wasm.ship_next_id(this.ptr);
|
|
2878
2878
|
return ret;
|
|
2879
2879
|
}
|
|
2880
2880
|
/**
|
|
2881
2881
|
* @returns {boolean}
|
|
2882
2882
|
*/
|
|
2883
2883
|
get useful() {
|
|
2884
|
-
|
|
2884
|
+
const ret = wasm.ship_useful(this.ptr);
|
|
2885
2885
|
return ret !== 0;
|
|
2886
2886
|
}
|
|
2887
2887
|
/**
|
|
2888
2888
|
* @returns {DamageState}
|
|
2889
2889
|
*/
|
|
2890
2890
|
damage_state() {
|
|
2891
|
-
|
|
2891
|
+
const ret = wasm.ship_damage_state(this.ptr);
|
|
2892
2892
|
return takeObject(ret);
|
|
2893
2893
|
}
|
|
2894
2894
|
/**
|
|
2895
2895
|
* @returns {MoraleState}
|
|
2896
2896
|
*/
|
|
2897
2897
|
morale_state() {
|
|
2898
|
-
|
|
2898
|
+
const ret = wasm.ship_morale_state(this.ptr);
|
|
2899
2899
|
return takeObject(ret);
|
|
2900
2900
|
}
|
|
2901
2901
|
/**
|
|
2902
2902
|
* @returns {ShipCategory}
|
|
2903
2903
|
*/
|
|
2904
2904
|
category() {
|
|
2905
|
-
|
|
2905
|
+
const ret = wasm.ship_category(this.ptr);
|
|
2906
2906
|
return takeObject(ret);
|
|
2907
2907
|
}
|
|
2908
2908
|
/**
|
|
@@ -2910,14 +2910,14 @@ class Ship {
|
|
|
2910
2910
|
* @returns {boolean}
|
|
2911
2911
|
*/
|
|
2912
2912
|
has_attr(attr) {
|
|
2913
|
-
|
|
2913
|
+
const ret = wasm.ship_has_attr(this.ptr, addHeapObject(attr));
|
|
2914
2914
|
return ret !== 0;
|
|
2915
2915
|
}
|
|
2916
2916
|
/**
|
|
2917
2917
|
* @returns {any}
|
|
2918
2918
|
*/
|
|
2919
2919
|
gear_keys() {
|
|
2920
|
-
|
|
2920
|
+
const ret = wasm.ship_gear_keys(this.ptr);
|
|
2921
2921
|
return takeObject(ret);
|
|
2922
2922
|
}
|
|
2923
2923
|
/**
|
|
@@ -2925,9 +2925,9 @@ class Ship {
|
|
|
2925
2925
|
* @returns {Gear | undefined}
|
|
2926
2926
|
*/
|
|
2927
2927
|
get_gear(key) {
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2928
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2929
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2930
|
+
const ret = wasm.ship_get_gear(this.ptr, ptr0, len0);
|
|
2931
2931
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2932
2932
|
}
|
|
2933
2933
|
/**
|
|
@@ -2935,7 +2935,7 @@ class Ship {
|
|
|
2935
2935
|
* @returns {number | undefined}
|
|
2936
2936
|
*/
|
|
2937
2937
|
get_damage_bound(state) {
|
|
2938
|
-
|
|
2938
|
+
const ret = wasm.ship_get_damage_bound(this.ptr, addHeapObject(state));
|
|
2939
2939
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2940
2940
|
}
|
|
2941
2941
|
/**
|
|
@@ -2944,7 +2944,7 @@ class Ship {
|
|
|
2944
2944
|
* @returns {number}
|
|
2945
2945
|
*/
|
|
2946
2946
|
get_remaining_fuel(rate, ceil) {
|
|
2947
|
-
|
|
2947
|
+
const ret = wasm.ship_get_remaining_fuel(this.ptr, rate, ceil);
|
|
2948
2948
|
return ret;
|
|
2949
2949
|
}
|
|
2950
2950
|
/**
|
|
@@ -2953,7 +2953,7 @@ class Ship {
|
|
|
2953
2953
|
* @returns {number}
|
|
2954
2954
|
*/
|
|
2955
2955
|
get_remaining_ammo(rate, ceil) {
|
|
2956
|
-
|
|
2956
|
+
const ret = wasm.ship_get_remaining_ammo(this.ptr, rate, ceil);
|
|
2957
2957
|
return ret;
|
|
2958
2958
|
}
|
|
2959
2959
|
/**
|
|
@@ -2961,9 +2961,9 @@ class Ship {
|
|
|
2961
2961
|
* @returns {boolean}
|
|
2962
2962
|
*/
|
|
2963
2963
|
has_unknown_stat(key) {
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2964
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2965
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2966
|
+
const ret = wasm.ship_has_unknown_stat(this.ptr, ptr0, len0);
|
|
2967
2967
|
return ret !== 0;
|
|
2968
2968
|
}
|
|
2969
2969
|
/**
|
|
@@ -2971,9 +2971,9 @@ class Ship {
|
|
|
2971
2971
|
* @returns {number | undefined}
|
|
2972
2972
|
*/
|
|
2973
2973
|
get_naked_stat(key) {
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2974
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2975
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2976
|
+
const ret = wasm.ship_get_naked_stat(this.ptr, ptr0, len0);
|
|
2977
2977
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2978
2978
|
}
|
|
2979
2979
|
/**
|
|
@@ -2981,9 +2981,9 @@ class Ship {
|
|
|
2981
2981
|
* @returns {number | undefined}
|
|
2982
2982
|
*/
|
|
2983
2983
|
get_stat_interval_left(key) {
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2984
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2985
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2986
|
+
const ret = wasm.ship_get_stat_interval_left(this.ptr, ptr0, len0);
|
|
2987
2987
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2988
2988
|
}
|
|
2989
2989
|
/**
|
|
@@ -2991,9 +2991,9 @@ class Ship {
|
|
|
2991
2991
|
* @returns {number | undefined}
|
|
2992
2992
|
*/
|
|
2993
2993
|
get_stat_interval_right(key) {
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2994
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2995
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2996
|
+
const ret = wasm.ship_get_stat_interval_right(this.ptr, ptr0, len0);
|
|
2997
2997
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2998
2998
|
}
|
|
2999
2999
|
/**
|
|
@@ -3001,9 +3001,9 @@ class Ship {
|
|
|
3001
3001
|
* @returns {number}
|
|
3002
3002
|
*/
|
|
3003
3003
|
get_gear_stat(key) {
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3004
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3005
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3006
|
+
const ret = wasm.ship_get_gear_stat(this.ptr, ptr0, len0);
|
|
3007
3007
|
return ret;
|
|
3008
3008
|
}
|
|
3009
3009
|
/**
|
|
@@ -3011,9 +3011,9 @@ class Ship {
|
|
|
3011
3011
|
* @returns {number}
|
|
3012
3012
|
*/
|
|
3013
3013
|
get_ebonus(key) {
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3014
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3015
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3016
|
+
const ret = wasm.ship_get_ebonus(this.ptr, ptr0, len0);
|
|
3017
3017
|
return ret;
|
|
3018
3018
|
}
|
|
3019
3019
|
/**
|
|
@@ -3021,23 +3021,23 @@ class Ship {
|
|
|
3021
3021
|
* @returns {number | undefined}
|
|
3022
3022
|
*/
|
|
3023
3023
|
get_stat_mod(key) {
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3024
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3025
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3026
|
+
const ret = wasm.ship_get_stat_mod(this.ptr, ptr0, len0);
|
|
3027
3027
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3028
3028
|
}
|
|
3029
3029
|
/**
|
|
3030
3030
|
* @returns {boolean}
|
|
3031
3031
|
*/
|
|
3032
3032
|
is_abyssal() {
|
|
3033
|
-
|
|
3033
|
+
const ret = wasm.ship_is_abyssal(this.ptr);
|
|
3034
3034
|
return ret !== 0;
|
|
3035
3035
|
}
|
|
3036
3036
|
/**
|
|
3037
3037
|
* @returns {boolean}
|
|
3038
3038
|
*/
|
|
3039
3039
|
is_submarine() {
|
|
3040
|
-
|
|
3040
|
+
const ret = wasm.ship_is_submarine(this.ptr);
|
|
3041
3041
|
return ret !== 0;
|
|
3042
3042
|
}
|
|
3043
3043
|
/**
|
|
@@ -3047,79 +3047,79 @@ class Ship {
|
|
|
3047
3047
|
*/
|
|
3048
3048
|
can_equip(gear, key) {
|
|
3049
3049
|
_assertClass(gear, Gear);
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3050
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3051
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3052
|
+
const ret = wasm.ship_can_equip(this.ptr, gear.ptr, ptr0, len0);
|
|
3053
3053
|
return ret !== 0;
|
|
3054
3054
|
}
|
|
3055
3055
|
/**
|
|
3056
3056
|
* @returns {number | undefined}
|
|
3057
3057
|
*/
|
|
3058
3058
|
get max_hp() {
|
|
3059
|
-
|
|
3059
|
+
const ret = wasm.ship_max_hp(this.ptr);
|
|
3060
3060
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3061
3061
|
}
|
|
3062
3062
|
/**
|
|
3063
3063
|
* @returns {number}
|
|
3064
3064
|
*/
|
|
3065
3065
|
get max_ammo() {
|
|
3066
|
-
|
|
3066
|
+
const ret = wasm.ship_max_ammo(this.ptr);
|
|
3067
3067
|
return ret;
|
|
3068
3068
|
}
|
|
3069
3069
|
/**
|
|
3070
3070
|
* @returns {number}
|
|
3071
3071
|
*/
|
|
3072
3072
|
get max_fuel() {
|
|
3073
|
-
|
|
3073
|
+
const ret = wasm.ship_max_fuel(this.ptr);
|
|
3074
3074
|
return ret;
|
|
3075
3075
|
}
|
|
3076
3076
|
/**
|
|
3077
3077
|
* @returns {number | undefined}
|
|
3078
3078
|
*/
|
|
3079
3079
|
get naked_range() {
|
|
3080
|
-
|
|
3080
|
+
const ret = wasm.ship_naked_range(this.ptr);
|
|
3081
3081
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3082
3082
|
}
|
|
3083
3083
|
/**
|
|
3084
3084
|
* @returns {number}
|
|
3085
3085
|
*/
|
|
3086
3086
|
get naked_speed() {
|
|
3087
|
-
|
|
3087
|
+
const ret = wasm.ship_naked_speed(this.ptr);
|
|
3088
3088
|
return ret;
|
|
3089
3089
|
}
|
|
3090
3090
|
/**
|
|
3091
3091
|
* @returns {number | undefined}
|
|
3092
3092
|
*/
|
|
3093
3093
|
get luck() {
|
|
3094
|
-
|
|
3094
|
+
const ret = wasm.ship_luck(this.ptr);
|
|
3095
3095
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3096
3096
|
}
|
|
3097
3097
|
/**
|
|
3098
3098
|
* @returns {number | undefined}
|
|
3099
3099
|
*/
|
|
3100
3100
|
get range() {
|
|
3101
|
-
|
|
3101
|
+
const ret = wasm.ship_range(this.ptr);
|
|
3102
3102
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3103
3103
|
}
|
|
3104
3104
|
/**
|
|
3105
3105
|
* @returns {number}
|
|
3106
3106
|
*/
|
|
3107
3107
|
get speed() {
|
|
3108
|
-
|
|
3108
|
+
const ret = wasm.ship_speed(this.ptr);
|
|
3109
3109
|
return ret;
|
|
3110
3110
|
}
|
|
3111
3111
|
/**
|
|
3112
3112
|
* @returns {number}
|
|
3113
3113
|
*/
|
|
3114
3114
|
get accuracy() {
|
|
3115
|
-
|
|
3115
|
+
const ret = wasm.ship_accuracy(this.ptr);
|
|
3116
3116
|
return ret;
|
|
3117
3117
|
}
|
|
3118
3118
|
/**
|
|
3119
3119
|
* @returns {boolean}
|
|
3120
3120
|
*/
|
|
3121
3121
|
is_installation() {
|
|
3122
|
-
|
|
3122
|
+
const ret = wasm.ship_is_installation(this.ptr);
|
|
3123
3123
|
return ret !== 0;
|
|
3124
3124
|
}
|
|
3125
3125
|
/**
|
|
@@ -3127,7 +3127,7 @@ class Ship {
|
|
|
3127
3127
|
* @returns {number | undefined}
|
|
3128
3128
|
*/
|
|
3129
3129
|
get_slot_size(index) {
|
|
3130
|
-
|
|
3130
|
+
const ret = wasm.ship_get_slot_size(this.ptr, index);
|
|
3131
3131
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3132
3132
|
}
|
|
3133
3133
|
/**
|
|
@@ -3135,21 +3135,21 @@ class Ship {
|
|
|
3135
3135
|
* @returns {number | undefined}
|
|
3136
3136
|
*/
|
|
3137
3137
|
get_max_slot_size(index) {
|
|
3138
|
-
|
|
3138
|
+
const ret = wasm.ship_get_max_slot_size(this.ptr, index);
|
|
3139
3139
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3140
3140
|
}
|
|
3141
3141
|
/**
|
|
3142
3142
|
* @returns {number}
|
|
3143
3143
|
*/
|
|
3144
3144
|
remaining_ammo_mod() {
|
|
3145
|
-
|
|
3145
|
+
const ret = wasm.ship_remaining_ammo_mod(this.ptr);
|
|
3146
3146
|
return ret;
|
|
3147
3147
|
}
|
|
3148
3148
|
/**
|
|
3149
3149
|
* @returns {number}
|
|
3150
3150
|
*/
|
|
3151
3151
|
remaining_fuel_mod() {
|
|
3152
|
-
|
|
3152
|
+
const ret = wasm.ship_remaining_fuel_mod(this.ptr);
|
|
3153
3153
|
return ret;
|
|
3154
3154
|
}
|
|
3155
3155
|
/**
|
|
@@ -3185,14 +3185,14 @@ class Ship {
|
|
|
3185
3185
|
* @returns {number}
|
|
3186
3186
|
*/
|
|
3187
3187
|
fleet_anti_air() {
|
|
3188
|
-
|
|
3188
|
+
const ret = wasm.ship_fleet_anti_air(this.ptr);
|
|
3189
3189
|
return ret;
|
|
3190
3190
|
}
|
|
3191
3191
|
/**
|
|
3192
3192
|
* @returns {number}
|
|
3193
3193
|
*/
|
|
3194
3194
|
cruiser_fit_bonus() {
|
|
3195
|
-
|
|
3195
|
+
const ret = wasm.ship_cruiser_fit_bonus(this.ptr);
|
|
3196
3196
|
return ret;
|
|
3197
3197
|
}
|
|
3198
3198
|
/**
|
|
@@ -3200,7 +3200,7 @@ class Ship {
|
|
|
3200
3200
|
* @returns {number}
|
|
3201
3201
|
*/
|
|
3202
3202
|
fit_gun_bonus(is_night) {
|
|
3203
|
-
|
|
3203
|
+
const ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3204
3204
|
return ret;
|
|
3205
3205
|
}
|
|
3206
3206
|
/**
|
|
@@ -3267,7 +3267,7 @@ class Ship {
|
|
|
3267
3267
|
* @returns {number}
|
|
3268
3268
|
*/
|
|
3269
3269
|
transport_point() {
|
|
3270
|
-
|
|
3270
|
+
const ret = wasm.ship_transport_point(this.ptr);
|
|
3271
3271
|
return ret;
|
|
3272
3272
|
}
|
|
3273
3273
|
/**
|
|
@@ -3294,42 +3294,42 @@ class Ship {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
module.exports.Ship = Ship;
|
|
3296
3296
|
|
|
3297
|
-
module.exports.
|
|
3298
|
-
const
|
|
3299
|
-
|
|
3300
|
-
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3301
|
-
var len0 = WASM_VECTOR_LEN;
|
|
3302
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3303
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3297
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3298
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3299
|
+
return addHeapObject(ret);
|
|
3304
3300
|
};
|
|
3305
3301
|
|
|
3306
3302
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3307
3303
|
takeObject(arg0);
|
|
3308
3304
|
};
|
|
3309
3305
|
|
|
3310
|
-
module.exports.
|
|
3311
|
-
|
|
3312
|
-
|
|
3306
|
+
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
3307
|
+
const obj = getObject(arg1);
|
|
3308
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
3309
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3310
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3311
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3312
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3313
3313
|
};
|
|
3314
3314
|
|
|
3315
3315
|
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
3316
|
-
|
|
3316
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3317
3317
|
return addHeapObject(ret);
|
|
3318
3318
|
};
|
|
3319
3319
|
|
|
3320
|
-
module.exports.
|
|
3320
|
+
module.exports.__wbg_error_8ff19d586a987aef = function(arg0) {
|
|
3321
3321
|
console.error(getObject(arg0));
|
|
3322
3322
|
};
|
|
3323
3323
|
|
|
3324
3324
|
module.exports.__wbg_new_693216e109162396 = function() {
|
|
3325
|
-
|
|
3325
|
+
const ret = new Error();
|
|
3326
3326
|
return addHeapObject(ret);
|
|
3327
3327
|
};
|
|
3328
3328
|
|
|
3329
3329
|
module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3330
|
+
const ret = getObject(arg1).stack;
|
|
3331
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3332
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3333
3333
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3334
3334
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3335
3335
|
};
|
|
@@ -3342,138 +3342,138 @@ module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
|
3342
3342
|
}
|
|
3343
3343
|
};
|
|
3344
3344
|
|
|
3345
|
-
module.exports.__wbg_getRandomValues_fb6b088efb6bead2 = function() { return handleError(function (arg0, arg1) {
|
|
3346
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3347
|
-
}, arguments) };
|
|
3348
|
-
|
|
3349
3345
|
module.exports.__wbg_randomFillSync_654a7797990fb8db = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3350
3346
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3351
3347
|
}, arguments) };
|
|
3352
3348
|
|
|
3349
|
+
module.exports.__wbg_getRandomValues_fb6b088efb6bead2 = function() { return handleError(function (arg0, arg1) {
|
|
3350
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3351
|
+
}, arguments) };
|
|
3352
|
+
|
|
3353
3353
|
module.exports.__wbg_process_70251ed1291754d5 = function(arg0) {
|
|
3354
|
-
|
|
3354
|
+
const ret = getObject(arg0).process;
|
|
3355
3355
|
return addHeapObject(ret);
|
|
3356
3356
|
};
|
|
3357
3357
|
|
|
3358
3358
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
3359
3359
|
const val = getObject(arg0);
|
|
3360
|
-
|
|
3360
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3361
3361
|
return ret;
|
|
3362
3362
|
};
|
|
3363
3363
|
|
|
3364
3364
|
module.exports.__wbg_versions_b23f2588cdb2ddbb = function(arg0) {
|
|
3365
|
-
|
|
3365
|
+
const ret = getObject(arg0).versions;
|
|
3366
3366
|
return addHeapObject(ret);
|
|
3367
3367
|
};
|
|
3368
3368
|
|
|
3369
3369
|
module.exports.__wbg_node_61b8c9a82499895d = function(arg0) {
|
|
3370
|
-
|
|
3370
|
+
const ret = getObject(arg0).node;
|
|
3371
3371
|
return addHeapObject(ret);
|
|
3372
3372
|
};
|
|
3373
3373
|
|
|
3374
3374
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
3375
|
-
|
|
3375
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
3376
3376
|
return ret;
|
|
3377
3377
|
};
|
|
3378
3378
|
|
|
3379
3379
|
module.exports.__wbg_static_accessor_NODE_MODULE_33b45247c55045b0 = function() {
|
|
3380
|
-
|
|
3380
|
+
const ret = module;
|
|
3381
3381
|
return addHeapObject(ret);
|
|
3382
3382
|
};
|
|
3383
3383
|
|
|
3384
3384
|
module.exports.__wbg_require_2a93bc09fee45aca = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3385
|
-
|
|
3385
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3386
3386
|
return addHeapObject(ret);
|
|
3387
3387
|
}, arguments) };
|
|
3388
3388
|
|
|
3389
3389
|
module.exports.__wbg_crypto_2f56257a38275dbd = function(arg0) {
|
|
3390
|
-
|
|
3390
|
+
const ret = getObject(arg0).crypto;
|
|
3391
3391
|
return addHeapObject(ret);
|
|
3392
3392
|
};
|
|
3393
3393
|
|
|
3394
3394
|
module.exports.__wbg_msCrypto_d07655bf62361f21 = function(arg0) {
|
|
3395
|
-
|
|
3395
|
+
const ret = getObject(arg0).msCrypto;
|
|
3396
3396
|
return addHeapObject(ret);
|
|
3397
3397
|
};
|
|
3398
3398
|
|
|
3399
|
-
module.exports.
|
|
3400
|
-
|
|
3399
|
+
module.exports.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) {
|
|
3400
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3401
3401
|
return addHeapObject(ret);
|
|
3402
3402
|
};
|
|
3403
3403
|
|
|
3404
|
-
module.exports.
|
|
3405
|
-
|
|
3404
|
+
module.exports.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) {
|
|
3405
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
3406
3406
|
return addHeapObject(ret);
|
|
3407
3407
|
}, arguments) };
|
|
3408
3408
|
|
|
3409
3409
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
3410
|
-
|
|
3410
|
+
const ret = getObject(arg0);
|
|
3411
3411
|
return addHeapObject(ret);
|
|
3412
3412
|
};
|
|
3413
3413
|
|
|
3414
|
-
module.exports.
|
|
3415
|
-
|
|
3414
|
+
module.exports.__wbg_call_a19d3173f3e1d3c5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3415
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3416
3416
|
return addHeapObject(ret);
|
|
3417
3417
|
}, arguments) };
|
|
3418
3418
|
|
|
3419
|
-
module.exports.
|
|
3420
|
-
|
|
3419
|
+
module.exports.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
|
|
3420
|
+
const ret = self.self;
|
|
3421
3421
|
return addHeapObject(ret);
|
|
3422
3422
|
}, arguments) };
|
|
3423
3423
|
|
|
3424
|
-
module.exports.
|
|
3425
|
-
|
|
3424
|
+
module.exports.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () {
|
|
3425
|
+
const ret = window.window;
|
|
3426
3426
|
return addHeapObject(ret);
|
|
3427
3427
|
}, arguments) };
|
|
3428
3428
|
|
|
3429
|
-
module.exports.
|
|
3430
|
-
|
|
3429
|
+
module.exports.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () {
|
|
3430
|
+
const ret = globalThis.globalThis;
|
|
3431
3431
|
return addHeapObject(ret);
|
|
3432
3432
|
}, arguments) };
|
|
3433
3433
|
|
|
3434
|
-
module.exports.
|
|
3435
|
-
|
|
3434
|
+
module.exports.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () {
|
|
3435
|
+
const ret = global.global;
|
|
3436
3436
|
return addHeapObject(ret);
|
|
3437
3437
|
}, arguments) };
|
|
3438
3438
|
|
|
3439
3439
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
3440
|
-
|
|
3440
|
+
const ret = getObject(arg0) === undefined;
|
|
3441
3441
|
return ret;
|
|
3442
3442
|
};
|
|
3443
3443
|
|
|
3444
|
-
module.exports.
|
|
3445
|
-
|
|
3444
|
+
module.exports.__wbg_buffer_7af23f65f6c64548 = function(arg0) {
|
|
3445
|
+
const ret = getObject(arg0).buffer;
|
|
3446
3446
|
return addHeapObject(ret);
|
|
3447
3447
|
};
|
|
3448
3448
|
|
|
3449
|
-
module.exports.
|
|
3450
|
-
|
|
3449
|
+
module.exports.__wbg_new_cc9018bd6f283b6f = function(arg0) {
|
|
3450
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
3451
3451
|
return addHeapObject(ret);
|
|
3452
3452
|
};
|
|
3453
3453
|
|
|
3454
|
-
module.exports.
|
|
3454
|
+
module.exports.__wbg_set_f25e869e4565d2a2 = function(arg0, arg1, arg2) {
|
|
3455
3455
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3456
3456
|
};
|
|
3457
3457
|
|
|
3458
|
-
module.exports.
|
|
3459
|
-
|
|
3458
|
+
module.exports.__wbg_length_0acb1cf9bbaf8519 = function(arg0) {
|
|
3459
|
+
const ret = getObject(arg0).length;
|
|
3460
3460
|
return ret;
|
|
3461
3461
|
};
|
|
3462
3462
|
|
|
3463
|
-
module.exports.
|
|
3464
|
-
|
|
3463
|
+
module.exports.__wbg_newwithlength_8f0657faca9f1422 = function(arg0) {
|
|
3464
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3465
3465
|
return addHeapObject(ret);
|
|
3466
3466
|
};
|
|
3467
3467
|
|
|
3468
|
-
module.exports.
|
|
3469
|
-
|
|
3468
|
+
module.exports.__wbg_subarray_da527dbd24eafb6b = function(arg0, arg1, arg2) {
|
|
3469
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3470
3470
|
return addHeapObject(ret);
|
|
3471
3471
|
};
|
|
3472
3472
|
|
|
3473
3473
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3474
|
+
const ret = debugString(getObject(arg1));
|
|
3475
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3476
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3477
3477
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3478
3478
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3479
3479
|
};
|
|
@@ -3483,7 +3483,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
3483
3483
|
};
|
|
3484
3484
|
|
|
3485
3485
|
module.exports.__wbindgen_memory = function() {
|
|
3486
|
-
|
|
3486
|
+
const ret = wasm.memory;
|
|
3487
3487
|
return addHeapObject(ret);
|
|
3488
3488
|
};
|
|
3489
3489
|
|