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/pkg/fleethub_core_bg.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as wasm from './fleethub_core_bg.wasm';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
heap.push(undefined, null, true, false);
|
|
3
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
cachedTextDecoder.decode();
|
|
10
8
|
|
|
11
9
|
let cachegetUint8Memory0 = null;
|
|
12
10
|
function getUint8Memory0() {
|
|
@@ -16,6 +14,41 @@ function getUint8Memory0() {
|
|
|
16
14
|
return cachegetUint8Memory0;
|
|
17
15
|
}
|
|
18
16
|
|
|
17
|
+
function getStringFromWasm0(ptr, len) {
|
|
18
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const heap = new Array(32).fill(undefined);
|
|
22
|
+
|
|
23
|
+
heap.push(undefined, null, true, false);
|
|
24
|
+
|
|
25
|
+
let heap_next = heap.length;
|
|
26
|
+
|
|
27
|
+
function addHeapObject(obj) {
|
|
28
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
+
const idx = heap_next;
|
|
30
|
+
heap_next = heap[idx];
|
|
31
|
+
|
|
32
|
+
heap[idx] = obj;
|
|
33
|
+
return idx;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function getObject(idx) { return heap[idx]; }
|
|
37
|
+
|
|
38
|
+
function dropObject(idx) {
|
|
39
|
+
if (idx < 36) return;
|
|
40
|
+
heap[idx] = heap_next;
|
|
41
|
+
heap_next = idx;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function takeObject(idx) {
|
|
45
|
+
const ret = getObject(idx);
|
|
46
|
+
dropObject(idx);
|
|
47
|
+
return ret;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
let WASM_VECTOR_LEN = 0;
|
|
51
|
+
|
|
19
52
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
20
53
|
|
|
21
54
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
@@ -79,39 +112,6 @@ function getInt32Memory0() {
|
|
|
79
112
|
return cachegetInt32Memory0;
|
|
80
113
|
}
|
|
81
114
|
|
|
82
|
-
let heap_next = heap.length;
|
|
83
|
-
|
|
84
|
-
function dropObject(idx) {
|
|
85
|
-
if (idx < 36) return;
|
|
86
|
-
heap[idx] = heap_next;
|
|
87
|
-
heap_next = idx;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function takeObject(idx) {
|
|
91
|
-
const ret = getObject(idx);
|
|
92
|
-
dropObject(idx);
|
|
93
|
-
return ret;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
97
|
-
|
|
98
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
99
|
-
|
|
100
|
-
cachedTextDecoder.decode();
|
|
101
|
-
|
|
102
|
-
function getStringFromWasm0(ptr, len) {
|
|
103
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function addHeapObject(obj) {
|
|
107
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
108
|
-
const idx = heap_next;
|
|
109
|
-
heap_next = heap[idx];
|
|
110
|
-
|
|
111
|
-
heap[idx] = obj;
|
|
112
|
-
return idx;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
115
|
function debugString(val) {
|
|
116
116
|
// primitive types
|
|
117
117
|
const type = typeof val;
|
|
@@ -181,21 +181,6 @@ const u32CvtShim = new Uint32Array(2);
|
|
|
181
181
|
|
|
182
182
|
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
183
183
|
|
|
184
|
-
function _assertClass(instance, klass) {
|
|
185
|
-
if (!(instance instanceof klass)) {
|
|
186
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
187
|
-
}
|
|
188
|
-
return instance.ptr;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
let cachegetFloat64Memory0 = null;
|
|
192
|
-
function getFloat64Memory0() {
|
|
193
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
194
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
195
|
-
}
|
|
196
|
-
return cachegetFloat64Memory0;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
184
|
function isLikeNone(x) {
|
|
200
185
|
return x === undefined || x === null;
|
|
201
186
|
}
|
|
@@ -218,6 +203,14 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
218
203
|
return result;
|
|
219
204
|
}
|
|
220
205
|
|
|
206
|
+
let cachegetFloat64Memory0 = null;
|
|
207
|
+
function getFloat64Memory0() {
|
|
208
|
+
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
209
|
+
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
210
|
+
}
|
|
211
|
+
return cachegetFloat64Memory0;
|
|
212
|
+
}
|
|
213
|
+
|
|
221
214
|
let cachegetUint16Memory0 = null;
|
|
222
215
|
function getUint16Memory0() {
|
|
223
216
|
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -229,22 +222,35 @@ function getUint16Memory0() {
|
|
|
229
222
|
function getArrayU16FromWasm0(ptr, len) {
|
|
230
223
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
231
224
|
}
|
|
225
|
+
|
|
226
|
+
function _assertClass(instance, klass) {
|
|
227
|
+
if (!(instance instanceof klass)) {
|
|
228
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
229
|
+
}
|
|
230
|
+
return instance.ptr;
|
|
231
|
+
}
|
|
232
232
|
/**
|
|
233
233
|
* @param {Gear} gear
|
|
234
234
|
* @returns {boolean}
|
|
235
235
|
*/
|
|
236
236
|
export function air_squadron_can_equip(gear) {
|
|
237
237
|
_assertClass(gear, Gear);
|
|
238
|
-
|
|
238
|
+
const ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
239
239
|
return ret !== 0;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
+
/**
|
|
243
|
+
*/
|
|
244
|
+
export function set_panic_hook() {
|
|
245
|
+
wasm.set_panic_hook();
|
|
246
|
+
}
|
|
247
|
+
|
|
242
248
|
/**
|
|
243
249
|
* @param {OrgType} org_type
|
|
244
250
|
* @returns {boolean}
|
|
245
251
|
*/
|
|
246
252
|
export function org_type_is_single(org_type) {
|
|
247
|
-
|
|
253
|
+
const ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
248
254
|
return ret !== 0;
|
|
249
255
|
}
|
|
250
256
|
|
|
@@ -253,7 +259,7 @@ export function org_type_is_single(org_type) {
|
|
|
253
259
|
* @returns {Formation}
|
|
254
260
|
*/
|
|
255
261
|
export function org_type_default_formation(org_type) {
|
|
256
|
-
|
|
262
|
+
const ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
257
263
|
return takeObject(ret);
|
|
258
264
|
}
|
|
259
265
|
|
|
@@ -262,7 +268,7 @@ export function org_type_default_formation(org_type) {
|
|
|
262
268
|
* @returns {boolean}
|
|
263
269
|
*/
|
|
264
270
|
export function org_type_is_player(org_type) {
|
|
265
|
-
|
|
271
|
+
const ret = wasm.org_type_is_player(addHeapObject(org_type));
|
|
266
272
|
return ret !== 0;
|
|
267
273
|
}
|
|
268
274
|
|
|
@@ -271,16 +277,10 @@ export function org_type_is_player(org_type) {
|
|
|
271
277
|
* @returns {Side}
|
|
272
278
|
*/
|
|
273
279
|
export function org_type_side(org_type) {
|
|
274
|
-
|
|
280
|
+
const ret = wasm.org_type_side(addHeapObject(org_type));
|
|
275
281
|
return takeObject(ret);
|
|
276
282
|
}
|
|
277
283
|
|
|
278
|
-
/**
|
|
279
|
-
*/
|
|
280
|
-
export function set_panic_hook() {
|
|
281
|
-
wasm.set_panic_hook();
|
|
282
|
-
}
|
|
283
|
-
|
|
284
284
|
function passArray16ToWasm0(arg, malloc) {
|
|
285
285
|
const ptr = malloc(arg.length * 2);
|
|
286
286
|
getUint16Memory0().set(arg, ptr / 2);
|
|
@@ -341,8 +341,8 @@ export class AirSquadron {
|
|
|
341
341
|
* @param {string} arg0
|
|
342
342
|
*/
|
|
343
343
|
set id(arg0) {
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
345
|
+
const len0 = WASM_VECTOR_LEN;
|
|
346
346
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
@@ -373,7 +373,7 @@ export class AirSquadron {
|
|
|
373
373
|
/**
|
|
374
374
|
*/
|
|
375
375
|
get mode() {
|
|
376
|
-
|
|
376
|
+
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
377
377
|
return takeObject(ret);
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
@@ -387,9 +387,9 @@ export class AirSquadron {
|
|
|
387
387
|
* @returns {Gear | undefined}
|
|
388
388
|
*/
|
|
389
389
|
get_gear(key) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
390
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
391
|
+
const len0 = WASM_VECTOR_LEN;
|
|
392
|
+
const ret = wasm.airsquadron_get_gear(this.ptr, ptr0, len0);
|
|
393
393
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
@@ -398,7 +398,7 @@ export class AirSquadron {
|
|
|
398
398
|
*/
|
|
399
399
|
can_equip(gear) {
|
|
400
400
|
_assertClass(gear, Gear);
|
|
401
|
-
|
|
401
|
+
const ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
402
402
|
return ret !== 0;
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
@@ -443,14 +443,14 @@ export class AirSquadron {
|
|
|
443
443
|
* @returns {number}
|
|
444
444
|
*/
|
|
445
445
|
fighter_power() {
|
|
446
|
-
|
|
446
|
+
const ret = wasm.airsquadron_fighter_power(this.ptr);
|
|
447
447
|
return ret;
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
450
450
|
* @returns {number}
|
|
451
451
|
*/
|
|
452
452
|
interception_power() {
|
|
453
|
-
|
|
453
|
+
const ret = wasm.airsquadron_interception_power(this.ptr);
|
|
454
454
|
return ret;
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
@@ -458,7 +458,7 @@ export class AirSquadron {
|
|
|
458
458
|
* @returns {number}
|
|
459
459
|
*/
|
|
460
460
|
radius() {
|
|
461
|
-
|
|
461
|
+
const ret = wasm.airsquadron_radius(this.ptr);
|
|
462
462
|
return ret;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
@@ -496,7 +496,7 @@ export 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 @@ export 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 @@ export 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 @@ export 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 @@ export 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 @@ export 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
|
}
|
|
@@ -578,7 +578,7 @@ export class Comp {
|
|
|
578
578
|
/**
|
|
579
579
|
*/
|
|
580
580
|
get org_type() {
|
|
581
|
-
|
|
581
|
+
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
582
582
|
return takeObject(ret);
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
@@ -590,7 +590,7 @@ export class Comp {
|
|
|
590
590
|
/**
|
|
591
591
|
*/
|
|
592
592
|
get hq_level() {
|
|
593
|
-
|
|
593
|
+
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
594
594
|
return ret;
|
|
595
595
|
}
|
|
596
596
|
/**
|
|
@@ -602,7 +602,7 @@ export class Comp {
|
|
|
602
602
|
/**
|
|
603
603
|
*/
|
|
604
604
|
get main() {
|
|
605
|
-
|
|
605
|
+
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
606
606
|
return Fleet.__wrap(ret);
|
|
607
607
|
}
|
|
608
608
|
/**
|
|
@@ -617,7 +617,7 @@ export class Comp {
|
|
|
617
617
|
/**
|
|
618
618
|
*/
|
|
619
619
|
get escort() {
|
|
620
|
-
|
|
620
|
+
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
621
621
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
622
622
|
}
|
|
623
623
|
/**
|
|
@@ -635,7 +635,7 @@ export class Comp {
|
|
|
635
635
|
/**
|
|
636
636
|
*/
|
|
637
637
|
get route_sup() {
|
|
638
|
-
|
|
638
|
+
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
639
639
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
640
640
|
}
|
|
641
641
|
/**
|
|
@@ -653,7 +653,7 @@ export class Comp {
|
|
|
653
653
|
/**
|
|
654
654
|
*/
|
|
655
655
|
get boss_sup() {
|
|
656
|
-
|
|
656
|
+
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
657
657
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
658
658
|
}
|
|
659
659
|
/**
|
|
@@ -672,35 +672,35 @@ export class Comp {
|
|
|
672
672
|
* @returns {Side}
|
|
673
673
|
*/
|
|
674
674
|
side() {
|
|
675
|
-
|
|
675
|
+
const ret = wasm.comp_side(this.ptr);
|
|
676
676
|
return takeObject(ret);
|
|
677
677
|
}
|
|
678
678
|
/**
|
|
679
679
|
* @returns {boolean}
|
|
680
680
|
*/
|
|
681
681
|
is_combined() {
|
|
682
|
-
|
|
682
|
+
const ret = wasm.comp_is_combined(this.ptr);
|
|
683
683
|
return ret !== 0;
|
|
684
684
|
}
|
|
685
685
|
/**
|
|
686
686
|
* @returns {boolean}
|
|
687
687
|
*/
|
|
688
688
|
is_player() {
|
|
689
|
-
|
|
689
|
+
const ret = wasm.comp_is_player(this.ptr);
|
|
690
690
|
return ret !== 0;
|
|
691
691
|
}
|
|
692
692
|
/**
|
|
693
693
|
* @returns {boolean}
|
|
694
694
|
*/
|
|
695
695
|
is_enemy() {
|
|
696
|
-
|
|
696
|
+
const ret = wasm.comp_is_enemy(this.ptr);
|
|
697
697
|
return ret !== 0;
|
|
698
698
|
}
|
|
699
699
|
/**
|
|
700
700
|
* @returns {CompMeta}
|
|
701
701
|
*/
|
|
702
702
|
meta() {
|
|
703
|
-
|
|
703
|
+
const ret = wasm.comp_meta(this.ptr);
|
|
704
704
|
return takeObject(ret);
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
@@ -729,9 +729,9 @@ export class Comp {
|
|
|
729
729
|
* @returns {Ship | undefined}
|
|
730
730
|
*/
|
|
731
731
|
get_ship_with_clone(ft, key) {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
732
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
733
|
+
const len0 = WASM_VECTOR_LEN;
|
|
734
|
+
const ret = wasm.comp_get_ship_with_clone(this.ptr, addHeapObject(ft), ptr0, len0);
|
|
735
735
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
736
736
|
}
|
|
737
737
|
/**
|
|
@@ -742,8 +742,8 @@ export class Comp {
|
|
|
742
742
|
get_ship_entity_id(ft, key) {
|
|
743
743
|
try {
|
|
744
744
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
746
|
+
const len0 = WASM_VECTOR_LEN;
|
|
747
747
|
wasm.comp_get_ship_entity_id(retptr, this.ptr, addHeapObject(ft), ptr0, len0);
|
|
748
748
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
749
749
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -762,16 +762,16 @@ export class Comp {
|
|
|
762
762
|
* @returns {Ship | undefined}
|
|
763
763
|
*/
|
|
764
764
|
get_ship_by_eid_with_clone(id) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
765
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
766
|
+
const len0 = WASM_VECTOR_LEN;
|
|
767
|
+
const ret = wasm.comp_get_ship_by_eid_with_clone(this.ptr, ptr0, len0);
|
|
768
768
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
769
769
|
}
|
|
770
770
|
/**
|
|
771
771
|
* @returns {Formation}
|
|
772
772
|
*/
|
|
773
773
|
default_formation() {
|
|
774
|
-
|
|
774
|
+
const ret = wasm.comp_default_formation(this.ptr);
|
|
775
775
|
return takeObject(ret);
|
|
776
776
|
}
|
|
777
777
|
/**
|
|
@@ -780,7 +780,7 @@ export class Comp {
|
|
|
780
780
|
* @returns {number}
|
|
781
781
|
*/
|
|
782
782
|
fleet_anti_air(formation_mod) {
|
|
783
|
-
|
|
783
|
+
const ret = wasm.comp_fleet_anti_air(this.ptr, formation_mod);
|
|
784
784
|
return ret;
|
|
785
785
|
}
|
|
786
786
|
/**
|
|
@@ -821,7 +821,7 @@ export class Comp {
|
|
|
821
821
|
* @returns {number}
|
|
822
822
|
*/
|
|
823
823
|
transport_point() {
|
|
824
|
-
|
|
824
|
+
const ret = wasm.comp_transport_point(this.ptr);
|
|
825
825
|
return ret;
|
|
826
826
|
}
|
|
827
827
|
/**
|
|
@@ -831,7 +831,7 @@ export class Comp {
|
|
|
831
831
|
*/
|
|
832
832
|
create_warfare_ship_environment(ship, formation) {
|
|
833
833
|
_assertClass(ship, Ship);
|
|
834
|
-
|
|
834
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
835
835
|
return takeObject(ret);
|
|
836
836
|
}
|
|
837
837
|
}
|
|
@@ -883,7 +883,7 @@ export class FhCore {
|
|
|
883
883
|
* @returns {Gear | undefined}
|
|
884
884
|
*/
|
|
885
885
|
create_gear(input) {
|
|
886
|
-
|
|
886
|
+
const ret = wasm.fhcore_create_gear(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
887
887
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
888
888
|
}
|
|
889
889
|
/**
|
|
@@ -891,7 +891,7 @@ export class FhCore {
|
|
|
891
891
|
* @returns {Ship | undefined}
|
|
892
892
|
*/
|
|
893
893
|
create_ship(input) {
|
|
894
|
-
|
|
894
|
+
const ret = wasm.fhcore_create_ship(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
895
895
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
@@ -899,7 +899,7 @@ export class FhCore {
|
|
|
899
899
|
* @returns {AirSquadron}
|
|
900
900
|
*/
|
|
901
901
|
create_air_squadron(input) {
|
|
902
|
-
|
|
902
|
+
const ret = wasm.fhcore_create_air_squadron(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
903
903
|
return AirSquadron.__wrap(ret);
|
|
904
904
|
}
|
|
905
905
|
/**
|
|
@@ -907,7 +907,7 @@ export class FhCore {
|
|
|
907
907
|
* @returns {Fleet}
|
|
908
908
|
*/
|
|
909
909
|
create_fleet(input) {
|
|
910
|
-
|
|
910
|
+
const ret = wasm.fhcore_create_fleet(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
911
911
|
return Fleet.__wrap(ret);
|
|
912
912
|
}
|
|
913
913
|
/**
|
|
@@ -915,7 +915,7 @@ export class FhCore {
|
|
|
915
915
|
* @returns {Org | undefined}
|
|
916
916
|
*/
|
|
917
917
|
create_org(input) {
|
|
918
|
-
|
|
918
|
+
const ret = wasm.fhcore_create_org(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
919
919
|
return ret === 0 ? undefined : Org.__wrap(ret);
|
|
920
920
|
}
|
|
921
921
|
/**
|
|
@@ -923,7 +923,7 @@ export class FhCore {
|
|
|
923
923
|
* @returns {Ship | undefined}
|
|
924
924
|
*/
|
|
925
925
|
create_ship_by_id(ship_id) {
|
|
926
|
-
|
|
926
|
+
const ret = wasm.fhcore_create_ship_by_id(this.ptr, ship_id);
|
|
927
927
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
@@ -932,25 +932,25 @@ export class FhCore {
|
|
|
932
932
|
* @returns {Comp}
|
|
933
933
|
*/
|
|
934
934
|
create_comp_by_map_enemy(main, escort) {
|
|
935
|
-
|
|
936
|
-
|
|
935
|
+
const ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
936
|
+
const len0 = WASM_VECTOR_LEN;
|
|
937
937
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
938
938
|
var len1 = WASM_VECTOR_LEN;
|
|
939
|
-
|
|
939
|
+
const ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
940
940
|
return Comp.__wrap(ret);
|
|
941
941
|
}
|
|
942
942
|
/**
|
|
943
943
|
* @returns {Ship}
|
|
944
944
|
*/
|
|
945
945
|
create_default_ship() {
|
|
946
|
-
|
|
946
|
+
const ret = wasm.fhcore_create_default_ship(this.ptr);
|
|
947
947
|
return Ship.__wrap(ret);
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
950
950
|
* @returns {Analyzer}
|
|
951
951
|
*/
|
|
952
952
|
create_analyzer() {
|
|
953
|
-
|
|
953
|
+
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
954
954
|
return Analyzer.__wrap(ret);
|
|
955
955
|
}
|
|
956
956
|
/**
|
|
@@ -1020,8 +1020,8 @@ export class Fleet {
|
|
|
1020
1020
|
* @param {string} arg0
|
|
1021
1021
|
*/
|
|
1022
1022
|
set id(arg0) {
|
|
1023
|
-
|
|
1024
|
-
|
|
1023
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1024
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1025
1025
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
1026
1026
|
}
|
|
1027
1027
|
/**
|
|
@@ -1052,7 +1052,7 @@ export class Fleet {
|
|
|
1052
1052
|
/**
|
|
1053
1053
|
*/
|
|
1054
1054
|
get len() {
|
|
1055
|
-
|
|
1055
|
+
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
1056
1056
|
return ret >>> 0;
|
|
1057
1057
|
}
|
|
1058
1058
|
/**
|
|
@@ -1065,7 +1065,7 @@ export class Fleet {
|
|
|
1065
1065
|
* @returns {FleetMeta}
|
|
1066
1066
|
*/
|
|
1067
1067
|
meta() {
|
|
1068
|
-
|
|
1068
|
+
const ret = wasm.fleet_meta(this.ptr);
|
|
1069
1069
|
return takeObject(ret);
|
|
1070
1070
|
}
|
|
1071
1071
|
/**
|
|
@@ -1138,9 +1138,9 @@ export class Fleet {
|
|
|
1138
1138
|
* @returns {number | undefined}
|
|
1139
1139
|
*/
|
|
1140
1140
|
get_damage_bound(id, state) {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1141
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1142
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1143
|
+
const ret = wasm.fleet_get_damage_bound(this.ptr, ptr0, len0, addHeapObject(state));
|
|
1144
1144
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1145
1145
|
}
|
|
1146
1146
|
/**
|
|
@@ -1150,9 +1150,9 @@ export class Fleet {
|
|
|
1150
1150
|
* @returns {number | undefined}
|
|
1151
1151
|
*/
|
|
1152
1152
|
get_remaining_fuel(id, rate, ceil) {
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1154
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1155
|
+
const ret = wasm.fleet_get_remaining_fuel(this.ptr, ptr0, len0, rate, ceil);
|
|
1156
1156
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1157
1157
|
}
|
|
1158
1158
|
/**
|
|
@@ -1162,16 +1162,16 @@ export class Fleet {
|
|
|
1162
1162
|
* @returns {number | undefined}
|
|
1163
1163
|
*/
|
|
1164
1164
|
get_remaining_ammo(id, rate, ceil) {
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1165
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1166
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1167
|
+
const ret = wasm.fleet_get_remaining_ammo(this.ptr, ptr0, len0, rate, ceil);
|
|
1168
1168
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1169
1169
|
}
|
|
1170
1170
|
/**
|
|
1171
1171
|
* @returns {number}
|
|
1172
1172
|
*/
|
|
1173
1173
|
count_ships() {
|
|
1174
|
-
|
|
1174
|
+
const ret = wasm.fleet_count_ships(this.ptr);
|
|
1175
1175
|
return ret >>> 0;
|
|
1176
1176
|
}
|
|
1177
1177
|
/**
|
|
@@ -1179,9 +1179,9 @@ export class Fleet {
|
|
|
1179
1179
|
* @returns {Ship | undefined}
|
|
1180
1180
|
*/
|
|
1181
1181
|
get_ship(key) {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1182
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1183
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1184
|
+
const ret = wasm.fleet_get_ship(this.ptr, ptr0, len0);
|
|
1185
1185
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1186
1186
|
}
|
|
1187
1187
|
/**
|
|
@@ -1250,7 +1250,7 @@ export class Fleet {
|
|
|
1250
1250
|
* @returns {number}
|
|
1251
1251
|
*/
|
|
1252
1252
|
expedition_bonus() {
|
|
1253
|
-
|
|
1253
|
+
const ret = wasm.fleet_expedition_bonus(this.ptr);
|
|
1254
1254
|
return ret;
|
|
1255
1255
|
}
|
|
1256
1256
|
/**
|
|
@@ -1260,8 +1260,8 @@ export class Fleet {
|
|
|
1260
1260
|
sum_ship_stat_by(key) {
|
|
1261
1261
|
try {
|
|
1262
1262
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1263
|
-
|
|
1264
|
-
|
|
1263
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1264
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1265
1265
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1266
1266
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1267
1267
|
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
@@ -1318,8 +1318,8 @@ export class Gear {
|
|
|
1318
1318
|
* @param {string} arg0
|
|
1319
1319
|
*/
|
|
1320
1320
|
set id(arg0) {
|
|
1321
|
-
|
|
1322
|
-
|
|
1321
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1322
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1323
1323
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1324
1324
|
}
|
|
1325
1325
|
/**
|
|
@@ -1350,7 +1350,7 @@ export class Gear {
|
|
|
1350
1350
|
/**
|
|
1351
1351
|
*/
|
|
1352
1352
|
get gear_id() {
|
|
1353
|
-
|
|
1353
|
+
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1354
1354
|
return ret;
|
|
1355
1355
|
}
|
|
1356
1356
|
/**
|
|
@@ -1362,7 +1362,7 @@ export class Gear {
|
|
|
1362
1362
|
/**
|
|
1363
1363
|
*/
|
|
1364
1364
|
get stars() {
|
|
1365
|
-
|
|
1365
|
+
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1366
1366
|
return ret;
|
|
1367
1367
|
}
|
|
1368
1368
|
/**
|
|
@@ -1374,7 +1374,7 @@ export class Gear {
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
*/
|
|
1376
1376
|
get exp() {
|
|
1377
|
-
|
|
1377
|
+
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1378
1378
|
return ret;
|
|
1379
1379
|
}
|
|
1380
1380
|
/**
|
|
@@ -1386,7 +1386,7 @@ export class Gear {
|
|
|
1386
1386
|
/**
|
|
1387
1387
|
*/
|
|
1388
1388
|
get default_exp() {
|
|
1389
|
-
|
|
1389
|
+
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1390
1390
|
return ret;
|
|
1391
1391
|
}
|
|
1392
1392
|
/**
|
|
@@ -1413,14 +1413,14 @@ export class Gear {
|
|
|
1413
1413
|
* @param {string} arg0
|
|
1414
1414
|
*/
|
|
1415
1415
|
set name(arg0) {
|
|
1416
|
-
|
|
1417
|
-
|
|
1416
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1417
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1418
1418
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1419
1419
|
}
|
|
1420
1420
|
/**
|
|
1421
1421
|
*/
|
|
1422
1422
|
get gear_type() {
|
|
1423
|
-
|
|
1423
|
+
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1424
1424
|
return takeObject(ret);
|
|
1425
1425
|
}
|
|
1426
1426
|
/**
|
|
@@ -1432,7 +1432,7 @@ export class Gear {
|
|
|
1432
1432
|
/**
|
|
1433
1433
|
*/
|
|
1434
1434
|
get max_hp() {
|
|
1435
|
-
|
|
1435
|
+
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1436
1436
|
return ret;
|
|
1437
1437
|
}
|
|
1438
1438
|
/**
|
|
@@ -1444,7 +1444,7 @@ export class Gear {
|
|
|
1444
1444
|
/**
|
|
1445
1445
|
*/
|
|
1446
1446
|
get firepower() {
|
|
1447
|
-
|
|
1447
|
+
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1448
1448
|
return ret;
|
|
1449
1449
|
}
|
|
1450
1450
|
/**
|
|
@@ -1456,7 +1456,7 @@ export class Gear {
|
|
|
1456
1456
|
/**
|
|
1457
1457
|
*/
|
|
1458
1458
|
get armor() {
|
|
1459
|
-
|
|
1459
|
+
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1460
1460
|
return ret;
|
|
1461
1461
|
}
|
|
1462
1462
|
/**
|
|
@@ -1468,7 +1468,7 @@ export class Gear {
|
|
|
1468
1468
|
/**
|
|
1469
1469
|
*/
|
|
1470
1470
|
get torpedo() {
|
|
1471
|
-
|
|
1471
|
+
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1472
1472
|
return ret;
|
|
1473
1473
|
}
|
|
1474
1474
|
/**
|
|
@@ -1480,7 +1480,7 @@ export class Gear {
|
|
|
1480
1480
|
/**
|
|
1481
1481
|
*/
|
|
1482
1482
|
get anti_air() {
|
|
1483
|
-
|
|
1483
|
+
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1484
1484
|
return ret;
|
|
1485
1485
|
}
|
|
1486
1486
|
/**
|
|
@@ -1492,7 +1492,7 @@ export class Gear {
|
|
|
1492
1492
|
/**
|
|
1493
1493
|
*/
|
|
1494
1494
|
get speed() {
|
|
1495
|
-
|
|
1495
|
+
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1496
1496
|
return ret;
|
|
1497
1497
|
}
|
|
1498
1498
|
/**
|
|
@@ -1504,7 +1504,7 @@ export class Gear {
|
|
|
1504
1504
|
/**
|
|
1505
1505
|
*/
|
|
1506
1506
|
get bombing() {
|
|
1507
|
-
|
|
1507
|
+
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1508
1508
|
return ret;
|
|
1509
1509
|
}
|
|
1510
1510
|
/**
|
|
@@ -1516,7 +1516,7 @@ export class Gear {
|
|
|
1516
1516
|
/**
|
|
1517
1517
|
*/
|
|
1518
1518
|
get asw() {
|
|
1519
|
-
|
|
1519
|
+
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1520
1520
|
return ret;
|
|
1521
1521
|
}
|
|
1522
1522
|
/**
|
|
@@ -1528,7 +1528,7 @@ export class Gear {
|
|
|
1528
1528
|
/**
|
|
1529
1529
|
*/
|
|
1530
1530
|
get los() {
|
|
1531
|
-
|
|
1531
|
+
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1532
1532
|
return ret;
|
|
1533
1533
|
}
|
|
1534
1534
|
/**
|
|
@@ -1540,7 +1540,7 @@ export class Gear {
|
|
|
1540
1540
|
/**
|
|
1541
1541
|
*/
|
|
1542
1542
|
get luck() {
|
|
1543
|
-
|
|
1543
|
+
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1544
1544
|
return ret;
|
|
1545
1545
|
}
|
|
1546
1546
|
/**
|
|
@@ -1552,7 +1552,7 @@ export class Gear {
|
|
|
1552
1552
|
/**
|
|
1553
1553
|
*/
|
|
1554
1554
|
get accuracy() {
|
|
1555
|
-
|
|
1555
|
+
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1556
1556
|
return ret;
|
|
1557
1557
|
}
|
|
1558
1558
|
/**
|
|
@@ -1564,7 +1564,7 @@ export class Gear {
|
|
|
1564
1564
|
/**
|
|
1565
1565
|
*/
|
|
1566
1566
|
get evasion() {
|
|
1567
|
-
|
|
1567
|
+
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1568
1568
|
return ret;
|
|
1569
1569
|
}
|
|
1570
1570
|
/**
|
|
@@ -1576,7 +1576,7 @@ export class Gear {
|
|
|
1576
1576
|
/**
|
|
1577
1577
|
*/
|
|
1578
1578
|
get range() {
|
|
1579
|
-
|
|
1579
|
+
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1580
1580
|
return ret;
|
|
1581
1581
|
}
|
|
1582
1582
|
/**
|
|
@@ -1588,7 +1588,7 @@ export class Gear {
|
|
|
1588
1588
|
/**
|
|
1589
1589
|
*/
|
|
1590
1590
|
get radius() {
|
|
1591
|
-
|
|
1591
|
+
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1592
1592
|
return ret;
|
|
1593
1593
|
}
|
|
1594
1594
|
/**
|
|
@@ -1600,7 +1600,7 @@ export class Gear {
|
|
|
1600
1600
|
/**
|
|
1601
1601
|
*/
|
|
1602
1602
|
get cost() {
|
|
1603
|
-
|
|
1603
|
+
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1604
1604
|
return ret;
|
|
1605
1605
|
}
|
|
1606
1606
|
/**
|
|
@@ -1612,7 +1612,7 @@ export class Gear {
|
|
|
1612
1612
|
/**
|
|
1613
1613
|
*/
|
|
1614
1614
|
get improvable() {
|
|
1615
|
-
|
|
1615
|
+
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1616
1616
|
return ret !== 0;
|
|
1617
1617
|
}
|
|
1618
1618
|
/**
|
|
@@ -1624,7 +1624,7 @@ export class Gear {
|
|
|
1624
1624
|
/**
|
|
1625
1625
|
*/
|
|
1626
1626
|
get adjusted_anti_air_resistance() {
|
|
1627
|
-
|
|
1627
|
+
const ret = wasm.__wbg_get_gear_adjusted_anti_air_resistance(this.ptr);
|
|
1628
1628
|
return ret;
|
|
1629
1629
|
}
|
|
1630
1630
|
/**
|
|
@@ -1636,7 +1636,7 @@ export class Gear {
|
|
|
1636
1636
|
/**
|
|
1637
1637
|
*/
|
|
1638
1638
|
get fleet_anti_air_resistance() {
|
|
1639
|
-
|
|
1639
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1640
1640
|
return ret;
|
|
1641
1641
|
}
|
|
1642
1642
|
/**
|
|
@@ -1649,35 +1649,35 @@ export class Gear {
|
|
|
1649
1649
|
* @returns {Gear}
|
|
1650
1650
|
*/
|
|
1651
1651
|
static default() {
|
|
1652
|
-
|
|
1652
|
+
const ret = wasm.gear_default();
|
|
1653
1653
|
return Gear.__wrap(ret);
|
|
1654
1654
|
}
|
|
1655
1655
|
/**
|
|
1656
1656
|
* @returns {any}
|
|
1657
1657
|
*/
|
|
1658
1658
|
get types() {
|
|
1659
|
-
|
|
1659
|
+
const ret = wasm.gear_types(this.ptr);
|
|
1660
1660
|
return takeObject(ret);
|
|
1661
1661
|
}
|
|
1662
1662
|
/**
|
|
1663
1663
|
* @returns {number}
|
|
1664
1664
|
*/
|
|
1665
1665
|
get gear_type_id() {
|
|
1666
|
-
|
|
1666
|
+
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1667
1667
|
return ret;
|
|
1668
1668
|
}
|
|
1669
1669
|
/**
|
|
1670
1670
|
* @returns {number}
|
|
1671
1671
|
*/
|
|
1672
1672
|
get special_type_id() {
|
|
1673
|
-
|
|
1673
|
+
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1674
1674
|
return ret;
|
|
1675
1675
|
}
|
|
1676
1676
|
/**
|
|
1677
1677
|
* @returns {number}
|
|
1678
1678
|
*/
|
|
1679
1679
|
get icon_id() {
|
|
1680
|
-
|
|
1680
|
+
const ret = wasm.gear_icon_id(this.ptr);
|
|
1681
1681
|
return ret;
|
|
1682
1682
|
}
|
|
1683
1683
|
/**
|
|
@@ -1685,63 +1685,63 @@ export class Gear {
|
|
|
1685
1685
|
* @returns {boolean}
|
|
1686
1686
|
*/
|
|
1687
1687
|
has_attr(attr) {
|
|
1688
|
-
|
|
1688
|
+
const ret = wasm.gear_has_attr(this.ptr, addHeapObject(attr));
|
|
1689
1689
|
return ret !== 0;
|
|
1690
1690
|
}
|
|
1691
1691
|
/**
|
|
1692
1692
|
* @returns {GearCategory}
|
|
1693
1693
|
*/
|
|
1694
1694
|
category() {
|
|
1695
|
-
|
|
1695
|
+
const ret = wasm.gear_category(this.ptr);
|
|
1696
1696
|
return takeObject(ret);
|
|
1697
1697
|
}
|
|
1698
1698
|
/**
|
|
1699
1699
|
* @returns {number}
|
|
1700
1700
|
*/
|
|
1701
1701
|
get ace() {
|
|
1702
|
-
|
|
1702
|
+
const ret = wasm.gear_ace(this.ptr);
|
|
1703
1703
|
return ret;
|
|
1704
1704
|
}
|
|
1705
1705
|
/**
|
|
1706
1706
|
* @returns {number}
|
|
1707
1707
|
*/
|
|
1708
1708
|
get anti_bomber() {
|
|
1709
|
-
|
|
1709
|
+
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1710
1710
|
return ret;
|
|
1711
1711
|
}
|
|
1712
1712
|
/**
|
|
1713
1713
|
* @returns {number}
|
|
1714
1714
|
*/
|
|
1715
1715
|
get interception() {
|
|
1716
|
-
|
|
1716
|
+
const ret = wasm.gear_interception(this.ptr);
|
|
1717
1717
|
return ret;
|
|
1718
1718
|
}
|
|
1719
1719
|
/**
|
|
1720
1720
|
* @returns {boolean}
|
|
1721
1721
|
*/
|
|
1722
1722
|
is_carrier_shelling_plane() {
|
|
1723
|
-
|
|
1723
|
+
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1724
1724
|
return ret !== 0;
|
|
1725
1725
|
}
|
|
1726
1726
|
/**
|
|
1727
1727
|
* @returns {boolean}
|
|
1728
1728
|
*/
|
|
1729
1729
|
has_proficiency() {
|
|
1730
|
-
|
|
1730
|
+
const ret = wasm.gear_has_proficiency(this.ptr);
|
|
1731
1731
|
return ret !== 0;
|
|
1732
1732
|
}
|
|
1733
1733
|
/**
|
|
1734
1734
|
* @returns {boolean}
|
|
1735
1735
|
*/
|
|
1736
1736
|
max_exp_eq_120() {
|
|
1737
|
-
|
|
1737
|
+
const ret = wasm.gear_max_exp_eq_120(this.ptr);
|
|
1738
1738
|
return ret !== 0;
|
|
1739
1739
|
}
|
|
1740
1740
|
/**
|
|
1741
1741
|
* @returns {number}
|
|
1742
1742
|
*/
|
|
1743
1743
|
proficiency_critical_power_mod() {
|
|
1744
|
-
|
|
1744
|
+
const ret = wasm.gear_proficiency_critical_power_mod(this.ptr);
|
|
1745
1745
|
return ret;
|
|
1746
1746
|
}
|
|
1747
1747
|
/**
|
|
@@ -1749,7 +1749,7 @@ export class Gear {
|
|
|
1749
1749
|
* @returns {number}
|
|
1750
1750
|
*/
|
|
1751
1751
|
calc_fighter_power(slot_size) {
|
|
1752
|
-
|
|
1752
|
+
const ret = wasm.gear_calc_fighter_power(this.ptr, slot_size);
|
|
1753
1753
|
return ret;
|
|
1754
1754
|
}
|
|
1755
1755
|
/**
|
|
@@ -1757,21 +1757,21 @@ export class Gear {
|
|
|
1757
1757
|
* @returns {number}
|
|
1758
1758
|
*/
|
|
1759
1759
|
calc_interception_power(slot_size) {
|
|
1760
|
-
|
|
1760
|
+
const ret = wasm.gear_calc_interception_power(this.ptr, slot_size);
|
|
1761
1761
|
return ret;
|
|
1762
1762
|
}
|
|
1763
1763
|
/**
|
|
1764
1764
|
* @returns {number}
|
|
1765
1765
|
*/
|
|
1766
1766
|
fleet_anti_air() {
|
|
1767
|
-
|
|
1767
|
+
const ret = wasm.gear_fleet_anti_air(this.ptr);
|
|
1768
1768
|
return ret;
|
|
1769
1769
|
}
|
|
1770
1770
|
/**
|
|
1771
1771
|
* @returns {number}
|
|
1772
1772
|
*/
|
|
1773
1773
|
adjusted_anti_air() {
|
|
1774
|
-
|
|
1774
|
+
const ret = wasm.gear_adjusted_anti_air(this.ptr);
|
|
1775
1775
|
return ret;
|
|
1776
1776
|
}
|
|
1777
1777
|
/**
|
|
@@ -1779,7 +1779,7 @@ export class Gear {
|
|
|
1779
1779
|
* @returns {number}
|
|
1780
1780
|
*/
|
|
1781
1781
|
calc_contact_trigger_factor(slot_size) {
|
|
1782
|
-
|
|
1782
|
+
const ret = wasm.gear_calc_contact_trigger_factor(this.ptr, slot_size);
|
|
1783
1783
|
return ret;
|
|
1784
1784
|
}
|
|
1785
1785
|
/**
|
|
@@ -1787,7 +1787,7 @@ export class Gear {
|
|
|
1787
1787
|
* @returns {number}
|
|
1788
1788
|
*/
|
|
1789
1789
|
contact_selection_rate(rank) {
|
|
1790
|
-
|
|
1790
|
+
const ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1791
1791
|
return ret;
|
|
1792
1792
|
}
|
|
1793
1793
|
/**
|
|
@@ -1795,14 +1795,14 @@ export class Gear {
|
|
|
1795
1795
|
* @returns {number}
|
|
1796
1796
|
*/
|
|
1797
1797
|
night_contact_rate(level) {
|
|
1798
|
-
|
|
1798
|
+
const ret = wasm.gear_night_contact_rate(this.ptr, level);
|
|
1799
1799
|
return ret;
|
|
1800
1800
|
}
|
|
1801
1801
|
/**
|
|
1802
1802
|
* @returns {boolean}
|
|
1803
1803
|
*/
|
|
1804
1804
|
is_night_plane() {
|
|
1805
|
-
|
|
1805
|
+
const ret = wasm.gear_is_night_plane(this.ptr);
|
|
1806
1806
|
return ret !== 0;
|
|
1807
1807
|
}
|
|
1808
1808
|
/**
|
|
@@ -1811,42 +1811,42 @@ export class Gear {
|
|
|
1811
1811
|
* @returns {number}
|
|
1812
1812
|
*/
|
|
1813
1813
|
night_plane_power(slot_size, anti_inst) {
|
|
1814
|
-
|
|
1814
|
+
const ret = wasm.gear_night_plane_power(this.ptr, slot_size, anti_inst);
|
|
1815
1815
|
return ret;
|
|
1816
1816
|
}
|
|
1817
1817
|
/**
|
|
1818
1818
|
* @returns {number}
|
|
1819
1819
|
*/
|
|
1820
1820
|
elos() {
|
|
1821
|
-
|
|
1821
|
+
const ret = wasm.gear_elos(this.ptr);
|
|
1822
1822
|
return ret;
|
|
1823
1823
|
}
|
|
1824
1824
|
/**
|
|
1825
1825
|
* @returns {boolean}
|
|
1826
1826
|
*/
|
|
1827
1827
|
is_abyssal() {
|
|
1828
|
-
|
|
1828
|
+
const ret = wasm.gear_is_abyssal(this.ptr);
|
|
1829
1829
|
return ret !== 0;
|
|
1830
1830
|
}
|
|
1831
1831
|
/**
|
|
1832
1832
|
* @returns {boolean}
|
|
1833
1833
|
*/
|
|
1834
1834
|
is_abyssal_cuttlefish_torpedo() {
|
|
1835
|
-
|
|
1835
|
+
const ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1836
1836
|
return ret !== 0;
|
|
1837
1837
|
}
|
|
1838
1838
|
/**
|
|
1839
1839
|
* @returns {boolean}
|
|
1840
1840
|
*/
|
|
1841
1841
|
is_abyssal_patrolling_attack_hawk() {
|
|
1842
|
-
|
|
1842
|
+
const ret = wasm.gear_is_abyssal_patrolling_attack_hawk(this.ptr);
|
|
1843
1843
|
return ret !== 0;
|
|
1844
1844
|
}
|
|
1845
1845
|
/**
|
|
1846
1846
|
* @returns {number}
|
|
1847
1847
|
*/
|
|
1848
1848
|
expedition_bonus() {
|
|
1849
|
-
|
|
1849
|
+
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1850
1850
|
return ret;
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
@@ -1870,7 +1870,7 @@ export class IBonuses {
|
|
|
1870
1870
|
/**
|
|
1871
1871
|
*/
|
|
1872
1872
|
get shelling_power() {
|
|
1873
|
-
|
|
1873
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1874
1874
|
return ret;
|
|
1875
1875
|
}
|
|
1876
1876
|
/**
|
|
@@ -1882,7 +1882,7 @@ export class IBonuses {
|
|
|
1882
1882
|
/**
|
|
1883
1883
|
*/
|
|
1884
1884
|
get carrier_shelling_power() {
|
|
1885
|
-
|
|
1885
|
+
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1886
1886
|
return ret;
|
|
1887
1887
|
}
|
|
1888
1888
|
/**
|
|
@@ -1894,7 +1894,7 @@ export class IBonuses {
|
|
|
1894
1894
|
/**
|
|
1895
1895
|
*/
|
|
1896
1896
|
get shelling_accuracy() {
|
|
1897
|
-
|
|
1897
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1898
1898
|
return ret;
|
|
1899
1899
|
}
|
|
1900
1900
|
/**
|
|
@@ -1906,7 +1906,7 @@ export class IBonuses {
|
|
|
1906
1906
|
/**
|
|
1907
1907
|
*/
|
|
1908
1908
|
get torpedo_power() {
|
|
1909
|
-
|
|
1909
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1910
1910
|
return ret;
|
|
1911
1911
|
}
|
|
1912
1912
|
/**
|
|
@@ -1918,7 +1918,7 @@ export class IBonuses {
|
|
|
1918
1918
|
/**
|
|
1919
1919
|
*/
|
|
1920
1920
|
get torpedo_accuracy() {
|
|
1921
|
-
|
|
1921
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1922
1922
|
return ret;
|
|
1923
1923
|
}
|
|
1924
1924
|
/**
|
|
@@ -1930,7 +1930,7 @@ export class IBonuses {
|
|
|
1930
1930
|
/**
|
|
1931
1931
|
*/
|
|
1932
1932
|
get torpedo_evasion() {
|
|
1933
|
-
|
|
1933
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1934
1934
|
return ret;
|
|
1935
1935
|
}
|
|
1936
1936
|
/**
|
|
@@ -1942,7 +1942,7 @@ export class IBonuses {
|
|
|
1942
1942
|
/**
|
|
1943
1943
|
*/
|
|
1944
1944
|
get asw_power() {
|
|
1945
|
-
|
|
1945
|
+
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1946
1946
|
return ret;
|
|
1947
1947
|
}
|
|
1948
1948
|
/**
|
|
@@ -1954,7 +1954,7 @@ export class IBonuses {
|
|
|
1954
1954
|
/**
|
|
1955
1955
|
*/
|
|
1956
1956
|
get asw_accuracy() {
|
|
1957
|
-
|
|
1957
|
+
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1958
1958
|
return ret;
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
@@ -1966,7 +1966,7 @@ export class IBonuses {
|
|
|
1966
1966
|
/**
|
|
1967
1967
|
*/
|
|
1968
1968
|
get night_power() {
|
|
1969
|
-
|
|
1969
|
+
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1970
1970
|
return ret;
|
|
1971
1971
|
}
|
|
1972
1972
|
/**
|
|
@@ -1978,7 +1978,7 @@ export class IBonuses {
|
|
|
1978
1978
|
/**
|
|
1979
1979
|
*/
|
|
1980
1980
|
get night_accuracy() {
|
|
1981
|
-
|
|
1981
|
+
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1982
1982
|
return ret;
|
|
1983
1983
|
}
|
|
1984
1984
|
/**
|
|
@@ -1990,7 +1990,7 @@ export class IBonuses {
|
|
|
1990
1990
|
/**
|
|
1991
1991
|
*/
|
|
1992
1992
|
get defense_power() {
|
|
1993
|
-
|
|
1993
|
+
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1994
1994
|
return ret;
|
|
1995
1995
|
}
|
|
1996
1996
|
/**
|
|
@@ -2002,7 +2002,7 @@ export class IBonuses {
|
|
|
2002
2002
|
/**
|
|
2003
2003
|
*/
|
|
2004
2004
|
get contact_selection() {
|
|
2005
|
-
|
|
2005
|
+
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
2006
2006
|
return ret;
|
|
2007
2007
|
}
|
|
2008
2008
|
/**
|
|
@@ -2014,7 +2014,7 @@ export class IBonuses {
|
|
|
2014
2014
|
/**
|
|
2015
2015
|
*/
|
|
2016
2016
|
get fighter_power() {
|
|
2017
|
-
|
|
2017
|
+
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
2018
2018
|
return ret;
|
|
2019
2019
|
}
|
|
2020
2020
|
/**
|
|
@@ -2026,7 +2026,7 @@ export class IBonuses {
|
|
|
2026
2026
|
/**
|
|
2027
2027
|
*/
|
|
2028
2028
|
get adjusted_anti_air() {
|
|
2029
|
-
|
|
2029
|
+
const ret = wasm.__wbg_get_ibonuses_adjusted_anti_air(this.ptr);
|
|
2030
2030
|
return ret;
|
|
2031
2031
|
}
|
|
2032
2032
|
/**
|
|
@@ -2038,7 +2038,7 @@ export class IBonuses {
|
|
|
2038
2038
|
/**
|
|
2039
2039
|
*/
|
|
2040
2040
|
get fleet_anti_air() {
|
|
2041
|
-
|
|
2041
|
+
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
2042
2042
|
return ret;
|
|
2043
2043
|
}
|
|
2044
2044
|
/**
|
|
@@ -2050,7 +2050,7 @@ export class IBonuses {
|
|
|
2050
2050
|
/**
|
|
2051
2051
|
*/
|
|
2052
2052
|
get elos() {
|
|
2053
|
-
|
|
2053
|
+
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
2054
2054
|
return ret;
|
|
2055
2055
|
}
|
|
2056
2056
|
/**
|
|
@@ -2102,8 +2102,8 @@ export class Org {
|
|
|
2102
2102
|
* @param {string} arg0
|
|
2103
2103
|
*/
|
|
2104
2104
|
set id(arg0) {
|
|
2105
|
-
|
|
2106
|
-
|
|
2105
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2106
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2107
2107
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
2108
2108
|
}
|
|
2109
2109
|
/**
|
|
@@ -2134,7 +2134,7 @@ export class Org {
|
|
|
2134
2134
|
/**
|
|
2135
2135
|
*/
|
|
2136
2136
|
get hq_level() {
|
|
2137
|
-
|
|
2137
|
+
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2138
2138
|
return ret;
|
|
2139
2139
|
}
|
|
2140
2140
|
/**
|
|
@@ -2146,7 +2146,7 @@ export class Org {
|
|
|
2146
2146
|
/**
|
|
2147
2147
|
*/
|
|
2148
2148
|
get org_type() {
|
|
2149
|
-
|
|
2149
|
+
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2150
2150
|
return takeObject(ret);
|
|
2151
2151
|
}
|
|
2152
2152
|
/**
|
|
@@ -2173,8 +2173,8 @@ export class Org {
|
|
|
2173
2173
|
* @param {string} arg0
|
|
2174
2174
|
*/
|
|
2175
2175
|
set sortie(arg0) {
|
|
2176
|
-
|
|
2177
|
-
|
|
2176
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2177
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2178
2178
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2179
2179
|
}
|
|
2180
2180
|
/**
|
|
@@ -2234,7 +2234,7 @@ export class Org {
|
|
|
2234
2234
|
* @returns {number}
|
|
2235
2235
|
*/
|
|
2236
2236
|
fleet_len(role) {
|
|
2237
|
-
|
|
2237
|
+
const ret = wasm.org_fleet_len(this.ptr, addHeapObject(role));
|
|
2238
2238
|
return ret >>> 0;
|
|
2239
2239
|
}
|
|
2240
2240
|
/**
|
|
@@ -2245,8 +2245,8 @@ export class Org {
|
|
|
2245
2245
|
get_ship_entity_id(role, key) {
|
|
2246
2246
|
try {
|
|
2247
2247
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2248
|
-
|
|
2249
|
-
|
|
2248
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2249
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2250
2250
|
wasm.org_get_ship_entity_id(retptr, this.ptr, addHeapObject(role), ptr0, len0);
|
|
2251
2251
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2252
2252
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2328,9 +2328,9 @@ export class Org {
|
|
|
2328
2328
|
* @returns {Fleet}
|
|
2329
2329
|
*/
|
|
2330
2330
|
clone_fleet(key) {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2331
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2332
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2333
|
+
const ret = wasm.org_clone_fleet(this.ptr, ptr0, len0);
|
|
2334
2334
|
return Fleet.__wrap(ret);
|
|
2335
2335
|
}
|
|
2336
2336
|
/**
|
|
@@ -2339,9 +2339,9 @@ export class Org {
|
|
|
2339
2339
|
* @returns {Ship | undefined}
|
|
2340
2340
|
*/
|
|
2341
2341
|
get_ship(role, key) {
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2342
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2343
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2344
|
+
const ret = wasm.org_get_ship(this.ptr, addHeapObject(role), ptr0, len0);
|
|
2345
2345
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2346
2346
|
}
|
|
2347
2347
|
/**
|
|
@@ -2349,9 +2349,9 @@ export class Org {
|
|
|
2349
2349
|
* @returns {Ship | undefined}
|
|
2350
2350
|
*/
|
|
2351
2351
|
get_ship_by_id(id) {
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2352
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2353
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2354
|
+
const ret = wasm.org_get_ship_by_id(this.ptr, ptr0, len0);
|
|
2355
2355
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2356
2356
|
}
|
|
2357
2357
|
/**
|
|
@@ -2374,7 +2374,7 @@ export class Org {
|
|
|
2374
2374
|
* @returns {Comp}
|
|
2375
2375
|
*/
|
|
2376
2376
|
create_comp() {
|
|
2377
|
-
|
|
2377
|
+
const ret = wasm.org_create_comp(this.ptr);
|
|
2378
2378
|
return Comp.__wrap(ret);
|
|
2379
2379
|
}
|
|
2380
2380
|
/**
|
|
@@ -2382,9 +2382,9 @@ export class Org {
|
|
|
2382
2382
|
* @returns {Comp}
|
|
2383
2383
|
*/
|
|
2384
2384
|
create_comp_by_key(key) {
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2385
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2386
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2387
|
+
const ret = wasm.org_create_comp_by_key(this.ptr, ptr0, len0);
|
|
2388
2388
|
return Comp.__wrap(ret);
|
|
2389
2389
|
}
|
|
2390
2390
|
/**
|
|
@@ -2394,8 +2394,8 @@ export class Org {
|
|
|
2394
2394
|
get_air_squadron(key) {
|
|
2395
2395
|
try {
|
|
2396
2396
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2397
|
-
|
|
2398
|
-
|
|
2397
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2398
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2399
2399
|
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2400
2400
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2401
2401
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2444,35 +2444,35 @@ export class Org {
|
|
|
2444
2444
|
* @returns {Side}
|
|
2445
2445
|
*/
|
|
2446
2446
|
side() {
|
|
2447
|
-
|
|
2447
|
+
const ret = wasm.org_side(this.ptr);
|
|
2448
2448
|
return takeObject(ret);
|
|
2449
2449
|
}
|
|
2450
2450
|
/**
|
|
2451
2451
|
* @returns {boolean}
|
|
2452
2452
|
*/
|
|
2453
2453
|
is_player() {
|
|
2454
|
-
|
|
2454
|
+
const ret = wasm.org_is_player(this.ptr);
|
|
2455
2455
|
return ret !== 0;
|
|
2456
2456
|
}
|
|
2457
2457
|
/**
|
|
2458
2458
|
* @returns {boolean}
|
|
2459
2459
|
*/
|
|
2460
2460
|
is_enemy() {
|
|
2461
|
-
|
|
2461
|
+
const ret = wasm.org_is_enemy(this.ptr);
|
|
2462
2462
|
return ret !== 0;
|
|
2463
2463
|
}
|
|
2464
2464
|
/**
|
|
2465
2465
|
* @returns {boolean}
|
|
2466
2466
|
*/
|
|
2467
2467
|
is_single() {
|
|
2468
|
-
|
|
2468
|
+
const ret = wasm.org_is_single(this.ptr);
|
|
2469
2469
|
return ret !== 0;
|
|
2470
2470
|
}
|
|
2471
2471
|
/**
|
|
2472
2472
|
* @returns {boolean}
|
|
2473
2473
|
*/
|
|
2474
2474
|
is_combined() {
|
|
2475
|
-
|
|
2475
|
+
const ret = wasm.org_is_combined(this.ptr);
|
|
2476
2476
|
return ret !== 0;
|
|
2477
2477
|
}
|
|
2478
2478
|
/**
|
|
@@ -2480,7 +2480,7 @@ export class Org {
|
|
|
2480
2480
|
* @returns {number}
|
|
2481
2481
|
*/
|
|
2482
2482
|
interception_power() {
|
|
2483
|
-
|
|
2483
|
+
const ret = wasm.org_interception_power(this.ptr);
|
|
2484
2484
|
return ret;
|
|
2485
2485
|
}
|
|
2486
2486
|
/**
|
|
@@ -2488,7 +2488,7 @@ export class Org {
|
|
|
2488
2488
|
* @returns {number}
|
|
2489
2489
|
*/
|
|
2490
2490
|
high_altitude_interception_power() {
|
|
2491
|
-
|
|
2491
|
+
const ret = wasm.org_high_altitude_interception_power(this.ptr);
|
|
2492
2492
|
return ret;
|
|
2493
2493
|
}
|
|
2494
2494
|
/**
|
|
@@ -2498,14 +2498,14 @@ export class Org {
|
|
|
2498
2498
|
*/
|
|
2499
2499
|
create_warfare_ship_environment(ship, formation) {
|
|
2500
2500
|
_assertClass(ship, Ship);
|
|
2501
|
-
|
|
2501
|
+
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2502
2502
|
return takeObject(ret);
|
|
2503
2503
|
}
|
|
2504
2504
|
/**
|
|
2505
2505
|
* @returns {Org}
|
|
2506
2506
|
*/
|
|
2507
2507
|
static default() {
|
|
2508
|
-
|
|
2508
|
+
const ret = wasm.org_default();
|
|
2509
2509
|
return Org.__wrap(ret);
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
@@ -2551,8 +2551,8 @@ export class Ship {
|
|
|
2551
2551
|
* @param {string} arg0
|
|
2552
2552
|
*/
|
|
2553
2553
|
set id(arg0) {
|
|
2554
|
-
|
|
2555
|
-
|
|
2554
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2555
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2556
2556
|
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2557
2557
|
}
|
|
2558
2558
|
/**
|
|
@@ -2583,7 +2583,7 @@ export class Ship {
|
|
|
2583
2583
|
/**
|
|
2584
2584
|
*/
|
|
2585
2585
|
get ship_id() {
|
|
2586
|
-
|
|
2586
|
+
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2587
2587
|
return ret;
|
|
2588
2588
|
}
|
|
2589
2589
|
/**
|
|
@@ -2595,7 +2595,7 @@ export class Ship {
|
|
|
2595
2595
|
/**
|
|
2596
2596
|
*/
|
|
2597
2597
|
get level() {
|
|
2598
|
-
|
|
2598
|
+
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2599
2599
|
return ret;
|
|
2600
2600
|
}
|
|
2601
2601
|
/**
|
|
@@ -2607,7 +2607,7 @@ export class Ship {
|
|
|
2607
2607
|
/**
|
|
2608
2608
|
*/
|
|
2609
2609
|
get current_hp() {
|
|
2610
|
-
|
|
2610
|
+
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2611
2611
|
return ret;
|
|
2612
2612
|
}
|
|
2613
2613
|
/**
|
|
@@ -2619,7 +2619,7 @@ export class Ship {
|
|
|
2619
2619
|
/**
|
|
2620
2620
|
*/
|
|
2621
2621
|
get morale() {
|
|
2622
|
-
|
|
2622
|
+
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2623
2623
|
return ret;
|
|
2624
2624
|
}
|
|
2625
2625
|
/**
|
|
@@ -2631,7 +2631,7 @@ export class Ship {
|
|
|
2631
2631
|
/**
|
|
2632
2632
|
*/
|
|
2633
2633
|
get ammo() {
|
|
2634
|
-
|
|
2634
|
+
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2635
2635
|
return ret;
|
|
2636
2636
|
}
|
|
2637
2637
|
/**
|
|
@@ -2643,7 +2643,7 @@ export class Ship {
|
|
|
2643
2643
|
/**
|
|
2644
2644
|
*/
|
|
2645
2645
|
get fuel() {
|
|
2646
|
-
|
|
2646
|
+
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2647
2647
|
return ret;
|
|
2648
2648
|
}
|
|
2649
2649
|
/**
|
|
@@ -2655,7 +2655,7 @@ export class Ship {
|
|
|
2655
2655
|
/**
|
|
2656
2656
|
*/
|
|
2657
2657
|
get ship_type() {
|
|
2658
|
-
|
|
2658
|
+
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2659
2659
|
return takeObject(ret);
|
|
2660
2660
|
}
|
|
2661
2661
|
/**
|
|
@@ -2667,7 +2667,7 @@ export class Ship {
|
|
|
2667
2667
|
/**
|
|
2668
2668
|
*/
|
|
2669
2669
|
get ctype() {
|
|
2670
|
-
|
|
2670
|
+
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2671
2671
|
return ret;
|
|
2672
2672
|
}
|
|
2673
2673
|
/**
|
|
@@ -2680,105 +2680,105 @@ export class Ship {
|
|
|
2680
2680
|
* @returns {number | undefined}
|
|
2681
2681
|
*/
|
|
2682
2682
|
get naked_firepower() {
|
|
2683
|
-
|
|
2683
|
+
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2684
2684
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2685
2685
|
}
|
|
2686
2686
|
/**
|
|
2687
2687
|
* @returns {number | undefined}
|
|
2688
2688
|
*/
|
|
2689
2689
|
get naked_torpedo() {
|
|
2690
|
-
|
|
2690
|
+
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2691
2691
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2692
2692
|
}
|
|
2693
2693
|
/**
|
|
2694
2694
|
* @returns {number | undefined}
|
|
2695
2695
|
*/
|
|
2696
2696
|
get naked_armor() {
|
|
2697
|
-
|
|
2697
|
+
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2698
2698
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2699
2699
|
}
|
|
2700
2700
|
/**
|
|
2701
2701
|
* @returns {number | undefined}
|
|
2702
2702
|
*/
|
|
2703
2703
|
get naked_anti_air() {
|
|
2704
|
-
|
|
2704
|
+
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2705
2705
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2706
2706
|
}
|
|
2707
2707
|
/**
|
|
2708
2708
|
* @returns {number | undefined}
|
|
2709
2709
|
*/
|
|
2710
2710
|
get naked_evasion() {
|
|
2711
|
-
|
|
2711
|
+
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2712
2712
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2713
2713
|
}
|
|
2714
2714
|
/**
|
|
2715
2715
|
* @returns {number | undefined}
|
|
2716
2716
|
*/
|
|
2717
2717
|
get naked_asw() {
|
|
2718
|
-
|
|
2718
|
+
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2719
2719
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2720
2720
|
}
|
|
2721
2721
|
/**
|
|
2722
2722
|
* @returns {number | undefined}
|
|
2723
2723
|
*/
|
|
2724
2724
|
get naked_los() {
|
|
2725
|
-
|
|
2725
|
+
const ret = wasm.ship_naked_los(this.ptr);
|
|
2726
2726
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2727
2727
|
}
|
|
2728
2728
|
/**
|
|
2729
2729
|
* @returns {number | undefined}
|
|
2730
2730
|
*/
|
|
2731
2731
|
get firepower() {
|
|
2732
|
-
|
|
2732
|
+
const ret = wasm.ship_firepower(this.ptr);
|
|
2733
2733
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2734
2734
|
}
|
|
2735
2735
|
/**
|
|
2736
2736
|
* @returns {number | undefined}
|
|
2737
2737
|
*/
|
|
2738
2738
|
get torpedo() {
|
|
2739
|
-
|
|
2739
|
+
const ret = wasm.ship_torpedo(this.ptr);
|
|
2740
2740
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2741
2741
|
}
|
|
2742
2742
|
/**
|
|
2743
2743
|
* @returns {number | undefined}
|
|
2744
2744
|
*/
|
|
2745
2745
|
get armor() {
|
|
2746
|
-
|
|
2746
|
+
const ret = wasm.ship_armor(this.ptr);
|
|
2747
2747
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2748
2748
|
}
|
|
2749
2749
|
/**
|
|
2750
2750
|
* @returns {number | undefined}
|
|
2751
2751
|
*/
|
|
2752
2752
|
get anti_air() {
|
|
2753
|
-
|
|
2753
|
+
const ret = wasm.ship_anti_air(this.ptr);
|
|
2754
2754
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2755
2755
|
}
|
|
2756
2756
|
/**
|
|
2757
2757
|
* @returns {number | undefined}
|
|
2758
2758
|
*/
|
|
2759
2759
|
get evasion() {
|
|
2760
|
-
|
|
2760
|
+
const ret = wasm.ship_evasion(this.ptr);
|
|
2761
2761
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2762
2762
|
}
|
|
2763
2763
|
/**
|
|
2764
2764
|
* @returns {number | undefined}
|
|
2765
2765
|
*/
|
|
2766
2766
|
get asw() {
|
|
2767
|
-
|
|
2767
|
+
const ret = wasm.ship_asw(this.ptr);
|
|
2768
2768
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2769
2769
|
}
|
|
2770
2770
|
/**
|
|
2771
2771
|
* @returns {number | undefined}
|
|
2772
2772
|
*/
|
|
2773
2773
|
get los() {
|
|
2774
|
-
|
|
2774
|
+
const ret = wasm.ship_los(this.ptr);
|
|
2775
2775
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2776
2776
|
}
|
|
2777
2777
|
/**
|
|
2778
2778
|
* @returns {Ship}
|
|
2779
2779
|
*/
|
|
2780
2780
|
static default() {
|
|
2781
|
-
|
|
2781
|
+
const ret = wasm.ship_default();
|
|
2782
2782
|
return Ship.__wrap(ret);
|
|
2783
2783
|
}
|
|
2784
2784
|
/**
|
|
@@ -2786,23 +2786,23 @@ export class Ship {
|
|
|
2786
2786
|
* @returns {boolean}
|
|
2787
2787
|
*/
|
|
2788
2788
|
eq_id(id) {
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2789
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2790
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2791
|
+
const ret = wasm.ship_eq_id(this.ptr, ptr0, len0);
|
|
2792
2792
|
return ret !== 0;
|
|
2793
2793
|
}
|
|
2794
2794
|
/**
|
|
2795
2795
|
* @returns {ShipState}
|
|
2796
2796
|
*/
|
|
2797
2797
|
state() {
|
|
2798
|
-
|
|
2798
|
+
const ret = wasm.ship_state(this.ptr);
|
|
2799
2799
|
return takeObject(ret);
|
|
2800
2800
|
}
|
|
2801
2801
|
/**
|
|
2802
2802
|
* @returns {ShipMeta}
|
|
2803
2803
|
*/
|
|
2804
2804
|
meta() {
|
|
2805
|
-
|
|
2805
|
+
const ret = wasm.ship_meta(this.ptr);
|
|
2806
2806
|
return takeObject(ret);
|
|
2807
2807
|
}
|
|
2808
2808
|
/**
|
|
@@ -2839,63 +2839,63 @@ export class Ship {
|
|
|
2839
2839
|
* @returns {number}
|
|
2840
2840
|
*/
|
|
2841
2841
|
get stype() {
|
|
2842
|
-
|
|
2842
|
+
const ret = wasm.ship_stype(this.ptr);
|
|
2843
2843
|
return ret;
|
|
2844
2844
|
}
|
|
2845
2845
|
/**
|
|
2846
2846
|
* @returns {number}
|
|
2847
2847
|
*/
|
|
2848
2848
|
get sort_id() {
|
|
2849
|
-
|
|
2849
|
+
const ret = wasm.ship_sort_id(this.ptr);
|
|
2850
2850
|
return ret;
|
|
2851
2851
|
}
|
|
2852
2852
|
/**
|
|
2853
2853
|
* @returns {number}
|
|
2854
2854
|
*/
|
|
2855
2855
|
remodel_rank() {
|
|
2856
|
-
|
|
2856
|
+
const ret = wasm.ship_remodel_rank(this.ptr);
|
|
2857
2857
|
return ret;
|
|
2858
2858
|
}
|
|
2859
2859
|
/**
|
|
2860
2860
|
* @returns {number}
|
|
2861
2861
|
*/
|
|
2862
2862
|
get slotnum() {
|
|
2863
|
-
|
|
2863
|
+
const ret = wasm.ship_slotnum(this.ptr);
|
|
2864
2864
|
return ret >>> 0;
|
|
2865
2865
|
}
|
|
2866
2866
|
/**
|
|
2867
2867
|
* @returns {number}
|
|
2868
2868
|
*/
|
|
2869
2869
|
get next_id() {
|
|
2870
|
-
|
|
2870
|
+
const ret = wasm.ship_next_id(this.ptr);
|
|
2871
2871
|
return ret;
|
|
2872
2872
|
}
|
|
2873
2873
|
/**
|
|
2874
2874
|
* @returns {boolean}
|
|
2875
2875
|
*/
|
|
2876
2876
|
get useful() {
|
|
2877
|
-
|
|
2877
|
+
const ret = wasm.ship_useful(this.ptr);
|
|
2878
2878
|
return ret !== 0;
|
|
2879
2879
|
}
|
|
2880
2880
|
/**
|
|
2881
2881
|
* @returns {DamageState}
|
|
2882
2882
|
*/
|
|
2883
2883
|
damage_state() {
|
|
2884
|
-
|
|
2884
|
+
const ret = wasm.ship_damage_state(this.ptr);
|
|
2885
2885
|
return takeObject(ret);
|
|
2886
2886
|
}
|
|
2887
2887
|
/**
|
|
2888
2888
|
* @returns {MoraleState}
|
|
2889
2889
|
*/
|
|
2890
2890
|
morale_state() {
|
|
2891
|
-
|
|
2891
|
+
const ret = wasm.ship_morale_state(this.ptr);
|
|
2892
2892
|
return takeObject(ret);
|
|
2893
2893
|
}
|
|
2894
2894
|
/**
|
|
2895
2895
|
* @returns {ShipCategory}
|
|
2896
2896
|
*/
|
|
2897
2897
|
category() {
|
|
2898
|
-
|
|
2898
|
+
const ret = wasm.ship_category(this.ptr);
|
|
2899
2899
|
return takeObject(ret);
|
|
2900
2900
|
}
|
|
2901
2901
|
/**
|
|
@@ -2903,14 +2903,14 @@ export class Ship {
|
|
|
2903
2903
|
* @returns {boolean}
|
|
2904
2904
|
*/
|
|
2905
2905
|
has_attr(attr) {
|
|
2906
|
-
|
|
2906
|
+
const ret = wasm.ship_has_attr(this.ptr, addHeapObject(attr));
|
|
2907
2907
|
return ret !== 0;
|
|
2908
2908
|
}
|
|
2909
2909
|
/**
|
|
2910
2910
|
* @returns {any}
|
|
2911
2911
|
*/
|
|
2912
2912
|
gear_keys() {
|
|
2913
|
-
|
|
2913
|
+
const ret = wasm.ship_gear_keys(this.ptr);
|
|
2914
2914
|
return takeObject(ret);
|
|
2915
2915
|
}
|
|
2916
2916
|
/**
|
|
@@ -2918,9 +2918,9 @@ export class Ship {
|
|
|
2918
2918
|
* @returns {Gear | undefined}
|
|
2919
2919
|
*/
|
|
2920
2920
|
get_gear(key) {
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2921
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2922
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2923
|
+
const ret = wasm.ship_get_gear(this.ptr, ptr0, len0);
|
|
2924
2924
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2925
2925
|
}
|
|
2926
2926
|
/**
|
|
@@ -2928,7 +2928,7 @@ export class Ship {
|
|
|
2928
2928
|
* @returns {number | undefined}
|
|
2929
2929
|
*/
|
|
2930
2930
|
get_damage_bound(state) {
|
|
2931
|
-
|
|
2931
|
+
const ret = wasm.ship_get_damage_bound(this.ptr, addHeapObject(state));
|
|
2932
2932
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2933
2933
|
}
|
|
2934
2934
|
/**
|
|
@@ -2937,7 +2937,7 @@ export class Ship {
|
|
|
2937
2937
|
* @returns {number}
|
|
2938
2938
|
*/
|
|
2939
2939
|
get_remaining_fuel(rate, ceil) {
|
|
2940
|
-
|
|
2940
|
+
const ret = wasm.ship_get_remaining_fuel(this.ptr, rate, ceil);
|
|
2941
2941
|
return ret;
|
|
2942
2942
|
}
|
|
2943
2943
|
/**
|
|
@@ -2946,7 +2946,7 @@ export class Ship {
|
|
|
2946
2946
|
* @returns {number}
|
|
2947
2947
|
*/
|
|
2948
2948
|
get_remaining_ammo(rate, ceil) {
|
|
2949
|
-
|
|
2949
|
+
const ret = wasm.ship_get_remaining_ammo(this.ptr, rate, ceil);
|
|
2950
2950
|
return ret;
|
|
2951
2951
|
}
|
|
2952
2952
|
/**
|
|
@@ -2954,9 +2954,9 @@ export class Ship {
|
|
|
2954
2954
|
* @returns {boolean}
|
|
2955
2955
|
*/
|
|
2956
2956
|
has_unknown_stat(key) {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2957
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2958
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2959
|
+
const ret = wasm.ship_has_unknown_stat(this.ptr, ptr0, len0);
|
|
2960
2960
|
return ret !== 0;
|
|
2961
2961
|
}
|
|
2962
2962
|
/**
|
|
@@ -2964,9 +2964,9 @@ export class Ship {
|
|
|
2964
2964
|
* @returns {number | undefined}
|
|
2965
2965
|
*/
|
|
2966
2966
|
get_naked_stat(key) {
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2967
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2968
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2969
|
+
const ret = wasm.ship_get_naked_stat(this.ptr, ptr0, len0);
|
|
2970
2970
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2971
2971
|
}
|
|
2972
2972
|
/**
|
|
@@ -2974,9 +2974,9 @@ export class Ship {
|
|
|
2974
2974
|
* @returns {number | undefined}
|
|
2975
2975
|
*/
|
|
2976
2976
|
get_stat_interval_left(key) {
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2977
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2978
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2979
|
+
const ret = wasm.ship_get_stat_interval_left(this.ptr, ptr0, len0);
|
|
2980
2980
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2981
2981
|
}
|
|
2982
2982
|
/**
|
|
@@ -2984,9 +2984,9 @@ export class Ship {
|
|
|
2984
2984
|
* @returns {number | undefined}
|
|
2985
2985
|
*/
|
|
2986
2986
|
get_stat_interval_right(key) {
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2987
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2988
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2989
|
+
const ret = wasm.ship_get_stat_interval_right(this.ptr, ptr0, len0);
|
|
2990
2990
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2991
2991
|
}
|
|
2992
2992
|
/**
|
|
@@ -2994,9 +2994,9 @@ export class Ship {
|
|
|
2994
2994
|
* @returns {number}
|
|
2995
2995
|
*/
|
|
2996
2996
|
get_gear_stat(key) {
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
2997
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2998
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2999
|
+
const ret = wasm.ship_get_gear_stat(this.ptr, ptr0, len0);
|
|
3000
3000
|
return ret;
|
|
3001
3001
|
}
|
|
3002
3002
|
/**
|
|
@@ -3004,9 +3004,9 @@ export class Ship {
|
|
|
3004
3004
|
* @returns {number}
|
|
3005
3005
|
*/
|
|
3006
3006
|
get_ebonus(key) {
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3007
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3008
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3009
|
+
const ret = wasm.ship_get_ebonus(this.ptr, ptr0, len0);
|
|
3010
3010
|
return ret;
|
|
3011
3011
|
}
|
|
3012
3012
|
/**
|
|
@@ -3014,23 +3014,23 @@ export class Ship {
|
|
|
3014
3014
|
* @returns {number | undefined}
|
|
3015
3015
|
*/
|
|
3016
3016
|
get_stat_mod(key) {
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3017
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3018
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3019
|
+
const ret = wasm.ship_get_stat_mod(this.ptr, ptr0, len0);
|
|
3020
3020
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3021
3021
|
}
|
|
3022
3022
|
/**
|
|
3023
3023
|
* @returns {boolean}
|
|
3024
3024
|
*/
|
|
3025
3025
|
is_abyssal() {
|
|
3026
|
-
|
|
3026
|
+
const ret = wasm.ship_is_abyssal(this.ptr);
|
|
3027
3027
|
return ret !== 0;
|
|
3028
3028
|
}
|
|
3029
3029
|
/**
|
|
3030
3030
|
* @returns {boolean}
|
|
3031
3031
|
*/
|
|
3032
3032
|
is_submarine() {
|
|
3033
|
-
|
|
3033
|
+
const ret = wasm.ship_is_submarine(this.ptr);
|
|
3034
3034
|
return ret !== 0;
|
|
3035
3035
|
}
|
|
3036
3036
|
/**
|
|
@@ -3040,79 +3040,79 @@ export class Ship {
|
|
|
3040
3040
|
*/
|
|
3041
3041
|
can_equip(gear, key) {
|
|
3042
3042
|
_assertClass(gear, Gear);
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3043
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3044
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3045
|
+
const ret = wasm.ship_can_equip(this.ptr, gear.ptr, ptr0, len0);
|
|
3046
3046
|
return ret !== 0;
|
|
3047
3047
|
}
|
|
3048
3048
|
/**
|
|
3049
3049
|
* @returns {number | undefined}
|
|
3050
3050
|
*/
|
|
3051
3051
|
get max_hp() {
|
|
3052
|
-
|
|
3052
|
+
const ret = wasm.ship_max_hp(this.ptr);
|
|
3053
3053
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3054
3054
|
}
|
|
3055
3055
|
/**
|
|
3056
3056
|
* @returns {number}
|
|
3057
3057
|
*/
|
|
3058
3058
|
get max_ammo() {
|
|
3059
|
-
|
|
3059
|
+
const ret = wasm.ship_max_ammo(this.ptr);
|
|
3060
3060
|
return ret;
|
|
3061
3061
|
}
|
|
3062
3062
|
/**
|
|
3063
3063
|
* @returns {number}
|
|
3064
3064
|
*/
|
|
3065
3065
|
get max_fuel() {
|
|
3066
|
-
|
|
3066
|
+
const ret = wasm.ship_max_fuel(this.ptr);
|
|
3067
3067
|
return ret;
|
|
3068
3068
|
}
|
|
3069
3069
|
/**
|
|
3070
3070
|
* @returns {number | undefined}
|
|
3071
3071
|
*/
|
|
3072
3072
|
get naked_range() {
|
|
3073
|
-
|
|
3073
|
+
const ret = wasm.ship_naked_range(this.ptr);
|
|
3074
3074
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3075
3075
|
}
|
|
3076
3076
|
/**
|
|
3077
3077
|
* @returns {number}
|
|
3078
3078
|
*/
|
|
3079
3079
|
get naked_speed() {
|
|
3080
|
-
|
|
3080
|
+
const ret = wasm.ship_naked_speed(this.ptr);
|
|
3081
3081
|
return ret;
|
|
3082
3082
|
}
|
|
3083
3083
|
/**
|
|
3084
3084
|
* @returns {number | undefined}
|
|
3085
3085
|
*/
|
|
3086
3086
|
get luck() {
|
|
3087
|
-
|
|
3087
|
+
const ret = wasm.ship_luck(this.ptr);
|
|
3088
3088
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3089
3089
|
}
|
|
3090
3090
|
/**
|
|
3091
3091
|
* @returns {number | undefined}
|
|
3092
3092
|
*/
|
|
3093
3093
|
get range() {
|
|
3094
|
-
|
|
3094
|
+
const ret = wasm.ship_range(this.ptr);
|
|
3095
3095
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3096
3096
|
}
|
|
3097
3097
|
/**
|
|
3098
3098
|
* @returns {number}
|
|
3099
3099
|
*/
|
|
3100
3100
|
get speed() {
|
|
3101
|
-
|
|
3101
|
+
const ret = wasm.ship_speed(this.ptr);
|
|
3102
3102
|
return ret;
|
|
3103
3103
|
}
|
|
3104
3104
|
/**
|
|
3105
3105
|
* @returns {number}
|
|
3106
3106
|
*/
|
|
3107
3107
|
get accuracy() {
|
|
3108
|
-
|
|
3108
|
+
const ret = wasm.ship_accuracy(this.ptr);
|
|
3109
3109
|
return ret;
|
|
3110
3110
|
}
|
|
3111
3111
|
/**
|
|
3112
3112
|
* @returns {boolean}
|
|
3113
3113
|
*/
|
|
3114
3114
|
is_installation() {
|
|
3115
|
-
|
|
3115
|
+
const ret = wasm.ship_is_installation(this.ptr);
|
|
3116
3116
|
return ret !== 0;
|
|
3117
3117
|
}
|
|
3118
3118
|
/**
|
|
@@ -3120,7 +3120,7 @@ export class Ship {
|
|
|
3120
3120
|
* @returns {number | undefined}
|
|
3121
3121
|
*/
|
|
3122
3122
|
get_slot_size(index) {
|
|
3123
|
-
|
|
3123
|
+
const ret = wasm.ship_get_slot_size(this.ptr, index);
|
|
3124
3124
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3125
3125
|
}
|
|
3126
3126
|
/**
|
|
@@ -3128,21 +3128,21 @@ export class Ship {
|
|
|
3128
3128
|
* @returns {number | undefined}
|
|
3129
3129
|
*/
|
|
3130
3130
|
get_max_slot_size(index) {
|
|
3131
|
-
|
|
3131
|
+
const ret = wasm.ship_get_max_slot_size(this.ptr, index);
|
|
3132
3132
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3133
3133
|
}
|
|
3134
3134
|
/**
|
|
3135
3135
|
* @returns {number}
|
|
3136
3136
|
*/
|
|
3137
3137
|
remaining_ammo_mod() {
|
|
3138
|
-
|
|
3138
|
+
const ret = wasm.ship_remaining_ammo_mod(this.ptr);
|
|
3139
3139
|
return ret;
|
|
3140
3140
|
}
|
|
3141
3141
|
/**
|
|
3142
3142
|
* @returns {number}
|
|
3143
3143
|
*/
|
|
3144
3144
|
remaining_fuel_mod() {
|
|
3145
|
-
|
|
3145
|
+
const ret = wasm.ship_remaining_fuel_mod(this.ptr);
|
|
3146
3146
|
return ret;
|
|
3147
3147
|
}
|
|
3148
3148
|
/**
|
|
@@ -3178,14 +3178,14 @@ export class Ship {
|
|
|
3178
3178
|
* @returns {number}
|
|
3179
3179
|
*/
|
|
3180
3180
|
fleet_anti_air() {
|
|
3181
|
-
|
|
3181
|
+
const ret = wasm.ship_fleet_anti_air(this.ptr);
|
|
3182
3182
|
return ret;
|
|
3183
3183
|
}
|
|
3184
3184
|
/**
|
|
3185
3185
|
* @returns {number}
|
|
3186
3186
|
*/
|
|
3187
3187
|
cruiser_fit_bonus() {
|
|
3188
|
-
|
|
3188
|
+
const ret = wasm.ship_cruiser_fit_bonus(this.ptr);
|
|
3189
3189
|
return ret;
|
|
3190
3190
|
}
|
|
3191
3191
|
/**
|
|
@@ -3193,7 +3193,7 @@ export class Ship {
|
|
|
3193
3193
|
* @returns {number}
|
|
3194
3194
|
*/
|
|
3195
3195
|
fit_gun_bonus(is_night) {
|
|
3196
|
-
|
|
3196
|
+
const ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3197
3197
|
return ret;
|
|
3198
3198
|
}
|
|
3199
3199
|
/**
|
|
@@ -3260,7 +3260,7 @@ export class Ship {
|
|
|
3260
3260
|
* @returns {number}
|
|
3261
3261
|
*/
|
|
3262
3262
|
transport_point() {
|
|
3263
|
-
|
|
3263
|
+
const ret = wasm.ship_transport_point(this.ptr);
|
|
3264
3264
|
return ret;
|
|
3265
3265
|
}
|
|
3266
3266
|
/**
|
|
@@ -3286,42 +3286,42 @@ export class Ship {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
3289
|
-
export function
|
|
3290
|
-
const
|
|
3291
|
-
|
|
3292
|
-
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3293
|
-
var len0 = WASM_VECTOR_LEN;
|
|
3294
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3295
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3289
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
3290
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3291
|
+
return addHeapObject(ret);
|
|
3296
3292
|
};
|
|
3297
3293
|
|
|
3298
3294
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
3299
3295
|
takeObject(arg0);
|
|
3300
3296
|
};
|
|
3301
3297
|
|
|
3302
|
-
export function
|
|
3303
|
-
|
|
3304
|
-
|
|
3298
|
+
export function __wbindgen_json_serialize(arg0, arg1) {
|
|
3299
|
+
const obj = getObject(arg1);
|
|
3300
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
3301
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3302
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3303
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3304
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3305
3305
|
};
|
|
3306
3306
|
|
|
3307
3307
|
export function __wbindgen_json_parse(arg0, arg1) {
|
|
3308
|
-
|
|
3308
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3309
3309
|
return addHeapObject(ret);
|
|
3310
3310
|
};
|
|
3311
3311
|
|
|
3312
|
-
export function
|
|
3312
|
+
export function __wbg_error_8ff19d586a987aef(arg0) {
|
|
3313
3313
|
console.error(getObject(arg0));
|
|
3314
3314
|
};
|
|
3315
3315
|
|
|
3316
3316
|
export function __wbg_new_693216e109162396() {
|
|
3317
|
-
|
|
3317
|
+
const ret = new Error();
|
|
3318
3318
|
return addHeapObject(ret);
|
|
3319
3319
|
};
|
|
3320
3320
|
|
|
3321
3321
|
export function __wbg_stack_0ddaca5d1abfb52f(arg0, arg1) {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3322
|
+
const ret = getObject(arg1).stack;
|
|
3323
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3324
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3325
3325
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3326
3326
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3327
3327
|
};
|
|
@@ -3334,138 +3334,138 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
};
|
|
3336
3336
|
|
|
3337
|
-
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3338
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3339
|
-
}, arguments) };
|
|
3340
|
-
|
|
3341
3337
|
export function __wbg_randomFillSync_654a7797990fb8db() { return handleError(function (arg0, arg1, arg2) {
|
|
3342
3338
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3343
3339
|
}, arguments) };
|
|
3344
3340
|
|
|
3341
|
+
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3342
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3343
|
+
}, arguments) };
|
|
3344
|
+
|
|
3345
3345
|
export function __wbg_process_70251ed1291754d5(arg0) {
|
|
3346
|
-
|
|
3346
|
+
const ret = getObject(arg0).process;
|
|
3347
3347
|
return addHeapObject(ret);
|
|
3348
3348
|
};
|
|
3349
3349
|
|
|
3350
3350
|
export function __wbindgen_is_object(arg0) {
|
|
3351
3351
|
const val = getObject(arg0);
|
|
3352
|
-
|
|
3352
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3353
3353
|
return ret;
|
|
3354
3354
|
};
|
|
3355
3355
|
|
|
3356
3356
|
export function __wbg_versions_b23f2588cdb2ddbb(arg0) {
|
|
3357
|
-
|
|
3357
|
+
const ret = getObject(arg0).versions;
|
|
3358
3358
|
return addHeapObject(ret);
|
|
3359
3359
|
};
|
|
3360
3360
|
|
|
3361
3361
|
export function __wbg_node_61b8c9a82499895d(arg0) {
|
|
3362
|
-
|
|
3362
|
+
const ret = getObject(arg0).node;
|
|
3363
3363
|
return addHeapObject(ret);
|
|
3364
3364
|
};
|
|
3365
3365
|
|
|
3366
3366
|
export function __wbindgen_is_string(arg0) {
|
|
3367
|
-
|
|
3367
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
3368
3368
|
return ret;
|
|
3369
3369
|
};
|
|
3370
3370
|
|
|
3371
3371
|
export function __wbg_static_accessor_NODE_MODULE_33b45247c55045b0() {
|
|
3372
|
-
|
|
3372
|
+
const ret = module;
|
|
3373
3373
|
return addHeapObject(ret);
|
|
3374
3374
|
};
|
|
3375
3375
|
|
|
3376
3376
|
export function __wbg_require_2a93bc09fee45aca() { return handleError(function (arg0, arg1, arg2) {
|
|
3377
|
-
|
|
3377
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3378
3378
|
return addHeapObject(ret);
|
|
3379
3379
|
}, arguments) };
|
|
3380
3380
|
|
|
3381
3381
|
export function __wbg_crypto_2f56257a38275dbd(arg0) {
|
|
3382
|
-
|
|
3382
|
+
const ret = getObject(arg0).crypto;
|
|
3383
3383
|
return addHeapObject(ret);
|
|
3384
3384
|
};
|
|
3385
3385
|
|
|
3386
3386
|
export function __wbg_msCrypto_d07655bf62361f21(arg0) {
|
|
3387
|
-
|
|
3387
|
+
const ret = getObject(arg0).msCrypto;
|
|
3388
3388
|
return addHeapObject(ret);
|
|
3389
3389
|
};
|
|
3390
3390
|
|
|
3391
|
-
export function
|
|
3392
|
-
|
|
3391
|
+
export function __wbg_newnoargs_e23b458e372830de(arg0, arg1) {
|
|
3392
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3393
3393
|
return addHeapObject(ret);
|
|
3394
3394
|
};
|
|
3395
3395
|
|
|
3396
|
-
export function
|
|
3397
|
-
|
|
3396
|
+
export function __wbg_call_ae78342adc33730a() { return handleError(function (arg0, arg1) {
|
|
3397
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
3398
3398
|
return addHeapObject(ret);
|
|
3399
3399
|
}, arguments) };
|
|
3400
3400
|
|
|
3401
3401
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
3402
|
-
|
|
3402
|
+
const ret = getObject(arg0);
|
|
3403
3403
|
return addHeapObject(ret);
|
|
3404
3404
|
};
|
|
3405
3405
|
|
|
3406
|
-
export function
|
|
3407
|
-
|
|
3406
|
+
export function __wbg_call_a19d3173f3e1d3c5() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3407
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3408
3408
|
return addHeapObject(ret);
|
|
3409
3409
|
}, arguments) };
|
|
3410
3410
|
|
|
3411
|
-
export function
|
|
3412
|
-
|
|
3411
|
+
export function __wbg_self_99737b4dcdf6f0d8() { return handleError(function () {
|
|
3412
|
+
const ret = self.self;
|
|
3413
3413
|
return addHeapObject(ret);
|
|
3414
3414
|
}, arguments) };
|
|
3415
3415
|
|
|
3416
|
-
export function
|
|
3417
|
-
|
|
3416
|
+
export function __wbg_window_9b61fbbf3564c4fb() { return handleError(function () {
|
|
3417
|
+
const ret = window.window;
|
|
3418
3418
|
return addHeapObject(ret);
|
|
3419
3419
|
}, arguments) };
|
|
3420
3420
|
|
|
3421
|
-
export function
|
|
3422
|
-
|
|
3421
|
+
export function __wbg_globalThis_8e275ef40caea3a3() { return handleError(function () {
|
|
3422
|
+
const ret = globalThis.globalThis;
|
|
3423
3423
|
return addHeapObject(ret);
|
|
3424
3424
|
}, arguments) };
|
|
3425
3425
|
|
|
3426
|
-
export function
|
|
3427
|
-
|
|
3426
|
+
export function __wbg_global_5de1e0f82bddcd27() { return handleError(function () {
|
|
3427
|
+
const ret = global.global;
|
|
3428
3428
|
return addHeapObject(ret);
|
|
3429
3429
|
}, arguments) };
|
|
3430
3430
|
|
|
3431
3431
|
export function __wbindgen_is_undefined(arg0) {
|
|
3432
|
-
|
|
3432
|
+
const ret = getObject(arg0) === undefined;
|
|
3433
3433
|
return ret;
|
|
3434
3434
|
};
|
|
3435
3435
|
|
|
3436
|
-
export function
|
|
3437
|
-
|
|
3436
|
+
export function __wbg_buffer_7af23f65f6c64548(arg0) {
|
|
3437
|
+
const ret = getObject(arg0).buffer;
|
|
3438
3438
|
return addHeapObject(ret);
|
|
3439
3439
|
};
|
|
3440
3440
|
|
|
3441
|
-
export function
|
|
3442
|
-
|
|
3441
|
+
export function __wbg_new_cc9018bd6f283b6f(arg0) {
|
|
3442
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
3443
3443
|
return addHeapObject(ret);
|
|
3444
3444
|
};
|
|
3445
3445
|
|
|
3446
|
-
export function
|
|
3446
|
+
export function __wbg_set_f25e869e4565d2a2(arg0, arg1, arg2) {
|
|
3447
3447
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3448
3448
|
};
|
|
3449
3449
|
|
|
3450
|
-
export function
|
|
3451
|
-
|
|
3450
|
+
export function __wbg_length_0acb1cf9bbaf8519(arg0) {
|
|
3451
|
+
const ret = getObject(arg0).length;
|
|
3452
3452
|
return ret;
|
|
3453
3453
|
};
|
|
3454
3454
|
|
|
3455
|
-
export function
|
|
3456
|
-
|
|
3455
|
+
export function __wbg_newwithlength_8f0657faca9f1422(arg0) {
|
|
3456
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3457
3457
|
return addHeapObject(ret);
|
|
3458
3458
|
};
|
|
3459
3459
|
|
|
3460
|
-
export function
|
|
3461
|
-
|
|
3460
|
+
export function __wbg_subarray_da527dbd24eafb6b(arg0, arg1, arg2) {
|
|
3461
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3462
3462
|
return addHeapObject(ret);
|
|
3463
3463
|
};
|
|
3464
3464
|
|
|
3465
3465
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3466
|
+
const ret = debugString(getObject(arg1));
|
|
3467
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3468
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3469
3469
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3470
3470
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3471
3471
|
};
|
|
@@ -3475,7 +3475,7 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
3475
3475
|
};
|
|
3476
3476
|
|
|
3477
3477
|
export function __wbindgen_memory() {
|
|
3478
|
-
|
|
3478
|
+
const ret = wasm.memory;
|
|
3479
3479
|
return addHeapObject(ret);
|
|
3480
3480
|
};
|
|
3481
3481
|
|