fleethub-core 1.1.6 → 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 +1738 -876
- package/node/fleethub_core.js +493 -491
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +120 -119
- package/package.json +2 -3
- package/pkg/fleethub_core.d.ts +1738 -876
- package/pkg/fleethub_core_bg.js +493 -491
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +120 -119
- package/bindings.d.ts +0 -918
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;
|
|
@@ -185,6 +185,32 @@ function isLikeNone(x) {
|
|
|
185
185
|
return x === undefined || x === null;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
let cachegetUint32Memory0 = null;
|
|
189
|
+
function getUint32Memory0() {
|
|
190
|
+
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
|
|
191
|
+
cachegetUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
192
|
+
}
|
|
193
|
+
return cachegetUint32Memory0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
197
|
+
const mem = getUint32Memory0();
|
|
198
|
+
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
199
|
+
const result = [];
|
|
200
|
+
for (let i = 0; i < slice.length; i++) {
|
|
201
|
+
result.push(takeObject(slice[i]));
|
|
202
|
+
}
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
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
|
+
|
|
188
214
|
let cachegetUint16Memory0 = null;
|
|
189
215
|
function getUint16Memory0() {
|
|
190
216
|
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
|
|
@@ -193,11 +219,8 @@ function getUint16Memory0() {
|
|
|
193
219
|
return cachegetUint16Memory0;
|
|
194
220
|
}
|
|
195
221
|
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
getUint16Memory0().set(arg, ptr / 2);
|
|
199
|
-
WASM_VECTOR_LEN = arg.length;
|
|
200
|
-
return ptr;
|
|
222
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
223
|
+
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
201
224
|
}
|
|
202
225
|
|
|
203
226
|
function _assertClass(instance, klass) {
|
|
@@ -206,45 +229,16 @@ function _assertClass(instance, klass) {
|
|
|
206
229
|
}
|
|
207
230
|
return instance.ptr;
|
|
208
231
|
}
|
|
209
|
-
|
|
210
|
-
let cachegetFloat64Memory0 = null;
|
|
211
|
-
function getFloat64Memory0() {
|
|
212
|
-
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
|
213
|
-
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
214
|
-
}
|
|
215
|
-
return cachegetFloat64Memory0;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
219
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
220
|
-
}
|
|
221
232
|
/**
|
|
222
233
|
* @param {Gear} gear
|
|
223
234
|
* @returns {boolean}
|
|
224
235
|
*/
|
|
225
236
|
export function air_squadron_can_equip(gear) {
|
|
226
237
|
_assertClass(gear, Gear);
|
|
227
|
-
|
|
238
|
+
const ret = wasm.air_squadron_can_equip(gear.ptr);
|
|
228
239
|
return ret !== 0;
|
|
229
240
|
}
|
|
230
241
|
|
|
231
|
-
let cachegetUint32Memory0 = null;
|
|
232
|
-
function getUint32Memory0() {
|
|
233
|
-
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
|
|
234
|
-
cachegetUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
235
|
-
}
|
|
236
|
-
return cachegetUint32Memory0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
240
|
-
const mem = getUint32Memory0();
|
|
241
|
-
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
242
|
-
const result = [];
|
|
243
|
-
for (let i = 0; i < slice.length; i++) {
|
|
244
|
-
result.push(takeObject(slice[i]));
|
|
245
|
-
}
|
|
246
|
-
return result;
|
|
247
|
-
}
|
|
248
242
|
/**
|
|
249
243
|
*/
|
|
250
244
|
export function set_panic_hook() {
|
|
@@ -252,43 +246,46 @@ export function set_panic_hook() {
|
|
|
252
246
|
}
|
|
253
247
|
|
|
254
248
|
/**
|
|
255
|
-
* @param {
|
|
249
|
+
* @param {OrgType} org_type
|
|
256
250
|
* @returns {boolean}
|
|
257
251
|
*/
|
|
258
252
|
export function org_type_is_single(org_type) {
|
|
259
|
-
|
|
253
|
+
const ret = wasm.org_type_is_single(addHeapObject(org_type));
|
|
260
254
|
return ret !== 0;
|
|
261
255
|
}
|
|
262
256
|
|
|
263
257
|
/**
|
|
264
|
-
* @param {
|
|
265
|
-
* @returns {
|
|
258
|
+
* @param {OrgType} org_type
|
|
259
|
+
* @returns {Formation}
|
|
266
260
|
*/
|
|
267
261
|
export function org_type_default_formation(org_type) {
|
|
268
|
-
|
|
262
|
+
const ret = wasm.org_type_default_formation(addHeapObject(org_type));
|
|
269
263
|
return takeObject(ret);
|
|
270
264
|
}
|
|
271
265
|
|
|
272
266
|
/**
|
|
273
|
-
* @param {
|
|
267
|
+
* @param {OrgType} org_type
|
|
274
268
|
* @returns {boolean}
|
|
275
269
|
*/
|
|
276
270
|
export function org_type_is_player(org_type) {
|
|
277
|
-
|
|
271
|
+
const ret = wasm.org_type_is_player(addHeapObject(org_type));
|
|
278
272
|
return ret !== 0;
|
|
279
273
|
}
|
|
280
274
|
|
|
281
275
|
/**
|
|
282
|
-
* @param {
|
|
283
|
-
* @returns {
|
|
276
|
+
* @param {OrgType} org_type
|
|
277
|
+
* @returns {Side}
|
|
284
278
|
*/
|
|
285
279
|
export function org_type_side(org_type) {
|
|
286
|
-
|
|
280
|
+
const ret = wasm.org_type_side(addHeapObject(org_type));
|
|
287
281
|
return takeObject(ret);
|
|
288
282
|
}
|
|
289
283
|
|
|
290
|
-
function
|
|
291
|
-
|
|
284
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
285
|
+
const ptr = malloc(arg.length * 2);
|
|
286
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
287
|
+
WASM_VECTOR_LEN = arg.length;
|
|
288
|
+
return ptr;
|
|
292
289
|
}
|
|
293
290
|
|
|
294
291
|
function handleError(f, args) {
|
|
@@ -299,6 +296,10 @@ function handleError(f, args) {
|
|
|
299
296
|
}
|
|
300
297
|
}
|
|
301
298
|
|
|
299
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
300
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
301
|
+
}
|
|
302
|
+
|
|
302
303
|
const AirSquadronFinalization = new FinalizationRegistry(ptr => wasm.__wbg_airsquadron_free(ptr));
|
|
303
304
|
/**
|
|
304
305
|
*/
|
|
@@ -340,8 +341,8 @@ export class AirSquadron {
|
|
|
340
341
|
* @param {string} arg0
|
|
341
342
|
*/
|
|
342
343
|
set id(arg0) {
|
|
343
|
-
|
|
344
|
-
|
|
344
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
345
|
+
const len0 = WASM_VECTOR_LEN;
|
|
345
346
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
346
347
|
}
|
|
347
348
|
/**
|
|
@@ -372,11 +373,11 @@ export class AirSquadron {
|
|
|
372
373
|
/**
|
|
373
374
|
*/
|
|
374
375
|
get mode() {
|
|
375
|
-
|
|
376
|
+
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
376
377
|
return takeObject(ret);
|
|
377
378
|
}
|
|
378
379
|
/**
|
|
379
|
-
* @param {
|
|
380
|
+
* @param {AirSquadronMode} arg0
|
|
380
381
|
*/
|
|
381
382
|
set mode(arg0) {
|
|
382
383
|
wasm.__wbg_set_airsquadron_mode(this.ptr, addHeapObject(arg0));
|
|
@@ -386,9 +387,9 @@ export class AirSquadron {
|
|
|
386
387
|
* @returns {Gear | undefined}
|
|
387
388
|
*/
|
|
388
389
|
get_gear(key) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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);
|
|
392
393
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
393
394
|
}
|
|
394
395
|
/**
|
|
@@ -397,7 +398,7 @@ export class AirSquadron {
|
|
|
397
398
|
*/
|
|
398
399
|
can_equip(gear) {
|
|
399
400
|
_assertClass(gear, Gear);
|
|
400
|
-
|
|
401
|
+
const ret = wasm.airsquadron_can_equip(this.ptr, gear.ptr);
|
|
401
402
|
return ret !== 0;
|
|
402
403
|
}
|
|
403
404
|
/**
|
|
@@ -442,14 +443,14 @@ export class AirSquadron {
|
|
|
442
443
|
* @returns {number}
|
|
443
444
|
*/
|
|
444
445
|
fighter_power() {
|
|
445
|
-
|
|
446
|
+
const ret = wasm.airsquadron_fighter_power(this.ptr);
|
|
446
447
|
return ret;
|
|
447
448
|
}
|
|
448
449
|
/**
|
|
449
450
|
* @returns {number}
|
|
450
451
|
*/
|
|
451
452
|
interception_power() {
|
|
452
|
-
|
|
453
|
+
const ret = wasm.airsquadron_interception_power(this.ptr);
|
|
453
454
|
return ret;
|
|
454
455
|
}
|
|
455
456
|
/**
|
|
@@ -457,7 +458,7 @@ export class AirSquadron {
|
|
|
457
458
|
* @returns {number}
|
|
458
459
|
*/
|
|
459
460
|
radius() {
|
|
460
|
-
|
|
461
|
+
const ret = wasm.airsquadron_radius(this.ptr);
|
|
461
462
|
return ret;
|
|
462
463
|
}
|
|
463
464
|
}
|
|
@@ -487,66 +488,66 @@ export class Analyzer {
|
|
|
487
488
|
}
|
|
488
489
|
/**
|
|
489
490
|
* @param {Comp} comp
|
|
490
|
-
* @param {
|
|
491
|
+
* @param {Formation} formation
|
|
491
492
|
* @param {number} adjusted_anti_air_resist
|
|
492
493
|
* @param {number} fleet_anti_air_resist
|
|
493
494
|
* @param {number | undefined} aaci
|
|
494
|
-
* @returns {
|
|
495
|
+
* @returns {CompAntiAirInfo}
|
|
495
496
|
*/
|
|
496
497
|
analyze_anti_air(comp, formation, adjusted_anti_air_resist, fleet_anti_air_resist, aaci) {
|
|
497
498
|
_assertClass(comp, Comp);
|
|
498
|
-
|
|
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);
|
|
499
500
|
return takeObject(ret);
|
|
500
501
|
}
|
|
501
502
|
/**
|
|
502
503
|
* @param {Comp} comp
|
|
503
|
-
* @returns {
|
|
504
|
+
* @returns {CompDayCutinRateInfo}
|
|
504
505
|
*/
|
|
505
506
|
analyze_day_cutin(comp) {
|
|
506
507
|
_assertClass(comp, Comp);
|
|
507
|
-
|
|
508
|
+
const ret = wasm.analyzer_analyze_day_cutin(this.ptr, comp.ptr);
|
|
508
509
|
return takeObject(ret);
|
|
509
510
|
}
|
|
510
511
|
/**
|
|
511
512
|
* @param {Comp} comp
|
|
512
|
-
* @param {
|
|
513
|
-
* @param {
|
|
514
|
-
* @returns {
|
|
513
|
+
* @param {NightSituation} attacker_situation
|
|
514
|
+
* @param {NightSituation} target_situation
|
|
515
|
+
* @returns {FleetNightCutinRateInfo}
|
|
515
516
|
*/
|
|
516
517
|
analyze_night_cutin(comp, attacker_situation, target_situation) {
|
|
517
518
|
_assertClass(comp, Comp);
|
|
518
|
-
|
|
519
|
+
const ret = wasm.analyzer_analyze_night_cutin(this.ptr, comp.ptr, addHeapObject(attacker_situation), addHeapObject(target_situation));
|
|
519
520
|
return takeObject(ret);
|
|
520
521
|
}
|
|
521
522
|
/**
|
|
522
523
|
* @param {Comp} comp
|
|
523
|
-
* @returns {
|
|
524
|
+
* @returns {CompContactChanceInfo}
|
|
524
525
|
*/
|
|
525
526
|
analyze_contact_chance(comp) {
|
|
526
527
|
_assertClass(comp, Comp);
|
|
527
|
-
|
|
528
|
+
const ret = wasm.analyzer_analyze_contact_chance(this.ptr, comp.ptr);
|
|
528
529
|
return takeObject(ret);
|
|
529
530
|
}
|
|
530
531
|
/**
|
|
531
|
-
* @param {
|
|
532
|
+
* @param {WarfareAnalyzerContext} params
|
|
532
533
|
* @param {Ship} attacker
|
|
533
534
|
* @param {Ship} target
|
|
534
|
-
* @returns {
|
|
535
|
+
* @returns {WarfareInfo}
|
|
535
536
|
*/
|
|
536
537
|
analyze_warfare(params, attacker, target) {
|
|
537
538
|
_assertClass(attacker, Ship);
|
|
538
539
|
_assertClass(target, Ship);
|
|
539
|
-
|
|
540
|
+
const ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
540
541
|
return takeObject(ret);
|
|
541
542
|
}
|
|
542
543
|
/**
|
|
543
544
|
* @param {Comp} comp
|
|
544
|
-
* @param {
|
|
545
|
-
* @returns {
|
|
545
|
+
* @param {Engagement} engagement
|
|
546
|
+
* @returns {FleetCutinAnalysis}
|
|
546
547
|
*/
|
|
547
548
|
analyze_fleet_cutin(comp, engagement) {
|
|
548
549
|
_assertClass(comp, Comp);
|
|
549
|
-
|
|
550
|
+
const ret = wasm.analyzer_analyze_fleet_cutin(this.ptr, comp.ptr, addHeapObject(engagement));
|
|
550
551
|
return takeObject(ret);
|
|
551
552
|
}
|
|
552
553
|
}
|
|
@@ -577,11 +578,11 @@ export class Comp {
|
|
|
577
578
|
/**
|
|
578
579
|
*/
|
|
579
580
|
get org_type() {
|
|
580
|
-
|
|
581
|
+
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
581
582
|
return takeObject(ret);
|
|
582
583
|
}
|
|
583
584
|
/**
|
|
584
|
-
* @param {
|
|
585
|
+
* @param {OrgType} arg0
|
|
585
586
|
*/
|
|
586
587
|
set org_type(arg0) {
|
|
587
588
|
wasm.__wbg_set_comp_org_type(this.ptr, addHeapObject(arg0));
|
|
@@ -589,7 +590,7 @@ export class Comp {
|
|
|
589
590
|
/**
|
|
590
591
|
*/
|
|
591
592
|
get hq_level() {
|
|
592
|
-
|
|
593
|
+
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
593
594
|
return ret;
|
|
594
595
|
}
|
|
595
596
|
/**
|
|
@@ -601,7 +602,7 @@ export class Comp {
|
|
|
601
602
|
/**
|
|
602
603
|
*/
|
|
603
604
|
get main() {
|
|
604
|
-
|
|
605
|
+
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
605
606
|
return Fleet.__wrap(ret);
|
|
606
607
|
}
|
|
607
608
|
/**
|
|
@@ -616,7 +617,7 @@ export class Comp {
|
|
|
616
617
|
/**
|
|
617
618
|
*/
|
|
618
619
|
get escort() {
|
|
619
|
-
|
|
620
|
+
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
620
621
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
621
622
|
}
|
|
622
623
|
/**
|
|
@@ -634,7 +635,7 @@ export class Comp {
|
|
|
634
635
|
/**
|
|
635
636
|
*/
|
|
636
637
|
get route_sup() {
|
|
637
|
-
|
|
638
|
+
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
638
639
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
639
640
|
}
|
|
640
641
|
/**
|
|
@@ -652,7 +653,7 @@ export class Comp {
|
|
|
652
653
|
/**
|
|
653
654
|
*/
|
|
654
655
|
get boss_sup() {
|
|
655
|
-
|
|
656
|
+
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
656
657
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
657
658
|
}
|
|
658
659
|
/**
|
|
@@ -668,35 +669,42 @@ export class Comp {
|
|
|
668
669
|
wasm.__wbg_set_comp_boss_sup(this.ptr, ptr0);
|
|
669
670
|
}
|
|
670
671
|
/**
|
|
671
|
-
* @returns {
|
|
672
|
+
* @returns {Side}
|
|
672
673
|
*/
|
|
673
674
|
side() {
|
|
674
|
-
|
|
675
|
+
const ret = wasm.comp_side(this.ptr);
|
|
675
676
|
return takeObject(ret);
|
|
676
677
|
}
|
|
677
678
|
/**
|
|
678
679
|
* @returns {boolean}
|
|
679
680
|
*/
|
|
680
681
|
is_combined() {
|
|
681
|
-
|
|
682
|
+
const ret = wasm.comp_is_combined(this.ptr);
|
|
683
|
+
return ret !== 0;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* @returns {boolean}
|
|
687
|
+
*/
|
|
688
|
+
is_player() {
|
|
689
|
+
const ret = wasm.comp_is_player(this.ptr);
|
|
682
690
|
return ret !== 0;
|
|
683
691
|
}
|
|
684
692
|
/**
|
|
685
693
|
* @returns {boolean}
|
|
686
694
|
*/
|
|
687
695
|
is_enemy() {
|
|
688
|
-
|
|
696
|
+
const ret = wasm.comp_is_enemy(this.ptr);
|
|
689
697
|
return ret !== 0;
|
|
690
698
|
}
|
|
691
699
|
/**
|
|
692
|
-
* @returns {
|
|
700
|
+
* @returns {CompMeta}
|
|
693
701
|
*/
|
|
694
702
|
meta() {
|
|
695
|
-
|
|
703
|
+
const ret = wasm.comp_meta(this.ptr);
|
|
696
704
|
return takeObject(ret);
|
|
697
705
|
}
|
|
698
706
|
/**
|
|
699
|
-
* @param {
|
|
707
|
+
* @param {FleetType} ft
|
|
700
708
|
* @returns {string | undefined}
|
|
701
709
|
*/
|
|
702
710
|
get_fleet_id(ft) {
|
|
@@ -716,26 +724,26 @@ export class Comp {
|
|
|
716
724
|
}
|
|
717
725
|
}
|
|
718
726
|
/**
|
|
719
|
-
* @param {
|
|
727
|
+
* @param {FleetType} ft
|
|
720
728
|
* @param {string} key
|
|
721
729
|
* @returns {Ship | undefined}
|
|
722
730
|
*/
|
|
723
731
|
get_ship_with_clone(ft, key) {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
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);
|
|
727
735
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
728
736
|
}
|
|
729
737
|
/**
|
|
730
|
-
* @param {
|
|
738
|
+
* @param {FleetType} ft
|
|
731
739
|
* @param {string} key
|
|
732
740
|
* @returns {string | undefined}
|
|
733
741
|
*/
|
|
734
742
|
get_ship_entity_id(ft, key) {
|
|
735
743
|
try {
|
|
736
744
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
737
|
-
|
|
738
|
-
|
|
745
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
746
|
+
const len0 = WASM_VECTOR_LEN;
|
|
739
747
|
wasm.comp_get_ship_entity_id(retptr, this.ptr, addHeapObject(ft), ptr0, len0);
|
|
740
748
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
741
749
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -754,16 +762,16 @@ export class Comp {
|
|
|
754
762
|
* @returns {Ship | undefined}
|
|
755
763
|
*/
|
|
756
764
|
get_ship_by_eid_with_clone(id) {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
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);
|
|
760
768
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
761
769
|
}
|
|
762
770
|
/**
|
|
763
|
-
* @returns {
|
|
771
|
+
* @returns {Formation}
|
|
764
772
|
*/
|
|
765
773
|
default_formation() {
|
|
766
|
-
|
|
774
|
+
const ret = wasm.comp_default_formation(this.ptr);
|
|
767
775
|
return takeObject(ret);
|
|
768
776
|
}
|
|
769
777
|
/**
|
|
@@ -772,13 +780,13 @@ export class Comp {
|
|
|
772
780
|
* @returns {number}
|
|
773
781
|
*/
|
|
774
782
|
fleet_anti_air(formation_mod) {
|
|
775
|
-
|
|
783
|
+
const ret = wasm.comp_fleet_anti_air(this.ptr, formation_mod);
|
|
776
784
|
return ret;
|
|
777
785
|
}
|
|
778
786
|
/**
|
|
779
787
|
* 制空値
|
|
780
788
|
* @param {boolean} escort_participates
|
|
781
|
-
* @param {
|
|
789
|
+
* @param {AirWaveType} air_type
|
|
782
790
|
* @returns {number | undefined}
|
|
783
791
|
*/
|
|
784
792
|
fighter_power(escort_participates, air_type) {
|
|
@@ -813,9 +821,19 @@ export class Comp {
|
|
|
813
821
|
* @returns {number}
|
|
814
822
|
*/
|
|
815
823
|
transport_point() {
|
|
816
|
-
|
|
824
|
+
const ret = wasm.comp_transport_point(this.ptr);
|
|
817
825
|
return ret;
|
|
818
826
|
}
|
|
827
|
+
/**
|
|
828
|
+
* @param {Ship} ship
|
|
829
|
+
* @param {Formation} formation
|
|
830
|
+
* @returns {WarfareShipEnvironment}
|
|
831
|
+
*/
|
|
832
|
+
create_warfare_ship_environment(ship, formation) {
|
|
833
|
+
_assertClass(ship, Ship);
|
|
834
|
+
const ret = wasm.comp_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
835
|
+
return takeObject(ret);
|
|
836
|
+
}
|
|
819
837
|
}
|
|
820
838
|
|
|
821
839
|
const FhCoreFinalization = new FinalizationRegistry(ptr => wasm.__wbg_fhcore_free(ptr));
|
|
@@ -861,43 +879,43 @@ export class FhCore {
|
|
|
861
879
|
}
|
|
862
880
|
}
|
|
863
881
|
/**
|
|
864
|
-
* @param {
|
|
882
|
+
* @param {GearState | undefined} input
|
|
865
883
|
* @returns {Gear | undefined}
|
|
866
884
|
*/
|
|
867
885
|
create_gear(input) {
|
|
868
|
-
|
|
886
|
+
const ret = wasm.fhcore_create_gear(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
869
887
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
870
888
|
}
|
|
871
889
|
/**
|
|
872
|
-
* @param {
|
|
890
|
+
* @param {ShipState | undefined} input
|
|
873
891
|
* @returns {Ship | undefined}
|
|
874
892
|
*/
|
|
875
893
|
create_ship(input) {
|
|
876
|
-
|
|
894
|
+
const ret = wasm.fhcore_create_ship(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
877
895
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
878
896
|
}
|
|
879
897
|
/**
|
|
880
|
-
* @param {
|
|
898
|
+
* @param {AirSquadronState | undefined} input
|
|
881
899
|
* @returns {AirSquadron}
|
|
882
900
|
*/
|
|
883
901
|
create_air_squadron(input) {
|
|
884
|
-
|
|
902
|
+
const ret = wasm.fhcore_create_air_squadron(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
885
903
|
return AirSquadron.__wrap(ret);
|
|
886
904
|
}
|
|
887
905
|
/**
|
|
888
|
-
* @param {
|
|
906
|
+
* @param {FleetState | undefined} input
|
|
889
907
|
* @returns {Fleet}
|
|
890
908
|
*/
|
|
891
909
|
create_fleet(input) {
|
|
892
|
-
|
|
910
|
+
const ret = wasm.fhcore_create_fleet(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
893
911
|
return Fleet.__wrap(ret);
|
|
894
912
|
}
|
|
895
913
|
/**
|
|
896
|
-
* @param {
|
|
914
|
+
* @param {OrgState | undefined} input
|
|
897
915
|
* @returns {Org | undefined}
|
|
898
916
|
*/
|
|
899
917
|
create_org(input) {
|
|
900
|
-
|
|
918
|
+
const ret = wasm.fhcore_create_org(this.ptr, isLikeNone(input) ? 0 : addHeapObject(input));
|
|
901
919
|
return ret === 0 ? undefined : Org.__wrap(ret);
|
|
902
920
|
}
|
|
903
921
|
/**
|
|
@@ -905,7 +923,7 @@ export class FhCore {
|
|
|
905
923
|
* @returns {Ship | undefined}
|
|
906
924
|
*/
|
|
907
925
|
create_ship_by_id(ship_id) {
|
|
908
|
-
|
|
926
|
+
const ret = wasm.fhcore_create_ship_by_id(this.ptr, ship_id);
|
|
909
927
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
910
928
|
}
|
|
911
929
|
/**
|
|
@@ -914,33 +932,33 @@ export class FhCore {
|
|
|
914
932
|
* @returns {Comp}
|
|
915
933
|
*/
|
|
916
934
|
create_comp_by_map_enemy(main, escort) {
|
|
917
|
-
|
|
918
|
-
|
|
935
|
+
const ptr0 = passArray16ToWasm0(main, wasm.__wbindgen_malloc);
|
|
936
|
+
const len0 = WASM_VECTOR_LEN;
|
|
919
937
|
var ptr1 = isLikeNone(escort) ? 0 : passArray16ToWasm0(escort, wasm.__wbindgen_malloc);
|
|
920
938
|
var len1 = WASM_VECTOR_LEN;
|
|
921
|
-
|
|
939
|
+
const ret = wasm.fhcore_create_comp_by_map_enemy(this.ptr, ptr0, len0, ptr1, len1);
|
|
922
940
|
return Comp.__wrap(ret);
|
|
923
941
|
}
|
|
924
942
|
/**
|
|
925
943
|
* @returns {Ship}
|
|
926
944
|
*/
|
|
927
945
|
create_default_ship() {
|
|
928
|
-
|
|
946
|
+
const ret = wasm.fhcore_create_default_ship(this.ptr);
|
|
929
947
|
return Ship.__wrap(ret);
|
|
930
948
|
}
|
|
931
949
|
/**
|
|
932
950
|
* @returns {Analyzer}
|
|
933
951
|
*/
|
|
934
952
|
create_analyzer() {
|
|
935
|
-
|
|
953
|
+
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
936
954
|
return Analyzer.__wrap(ret);
|
|
937
955
|
}
|
|
938
956
|
/**
|
|
939
957
|
* @param {Comp} player
|
|
940
958
|
* @param {Comp} enemy
|
|
941
|
-
* @param {
|
|
959
|
+
* @param {ShellingSupportSimulatorParams} params
|
|
942
960
|
* @param {number} times
|
|
943
|
-
* @returns {
|
|
961
|
+
* @returns {SimulatorResult}
|
|
944
962
|
*/
|
|
945
963
|
simulate_shelling_support(player, enemy, params, times) {
|
|
946
964
|
try {
|
|
@@ -1002,8 +1020,8 @@ export class Fleet {
|
|
|
1002
1020
|
* @param {string} arg0
|
|
1003
1021
|
*/
|
|
1004
1022
|
set id(arg0) {
|
|
1005
|
-
|
|
1006
|
-
|
|
1023
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1024
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1007
1025
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
1008
1026
|
}
|
|
1009
1027
|
/**
|
|
@@ -1034,7 +1052,7 @@ export class Fleet {
|
|
|
1034
1052
|
/**
|
|
1035
1053
|
*/
|
|
1036
1054
|
get len() {
|
|
1037
|
-
|
|
1055
|
+
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
1038
1056
|
return ret >>> 0;
|
|
1039
1057
|
}
|
|
1040
1058
|
/**
|
|
@@ -1044,10 +1062,10 @@ export class Fleet {
|
|
|
1044
1062
|
wasm.__wbg_set_fleet_len(this.ptr, arg0);
|
|
1045
1063
|
}
|
|
1046
1064
|
/**
|
|
1047
|
-
* @returns {
|
|
1065
|
+
* @returns {FleetMeta}
|
|
1048
1066
|
*/
|
|
1049
1067
|
meta() {
|
|
1050
|
-
|
|
1068
|
+
const ret = wasm.fleet_meta(this.ptr);
|
|
1051
1069
|
return takeObject(ret);
|
|
1052
1070
|
}
|
|
1053
1071
|
/**
|
|
@@ -1116,13 +1134,13 @@ export class Fleet {
|
|
|
1116
1134
|
}
|
|
1117
1135
|
/**
|
|
1118
1136
|
* @param {string} id
|
|
1119
|
-
* @param {
|
|
1137
|
+
* @param {DamageState} state
|
|
1120
1138
|
* @returns {number | undefined}
|
|
1121
1139
|
*/
|
|
1122
1140
|
get_damage_bound(id, state) {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
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));
|
|
1126
1144
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1127
1145
|
}
|
|
1128
1146
|
/**
|
|
@@ -1132,9 +1150,9 @@ export class Fleet {
|
|
|
1132
1150
|
* @returns {number | undefined}
|
|
1133
1151
|
*/
|
|
1134
1152
|
get_remaining_fuel(id, rate, ceil) {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
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);
|
|
1138
1156
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1139
1157
|
}
|
|
1140
1158
|
/**
|
|
@@ -1144,16 +1162,16 @@ export class Fleet {
|
|
|
1144
1162
|
* @returns {number | undefined}
|
|
1145
1163
|
*/
|
|
1146
1164
|
get_remaining_ammo(id, rate, ceil) {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
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);
|
|
1150
1168
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1151
1169
|
}
|
|
1152
1170
|
/**
|
|
1153
1171
|
* @returns {number}
|
|
1154
1172
|
*/
|
|
1155
1173
|
count_ships() {
|
|
1156
|
-
|
|
1174
|
+
const ret = wasm.fleet_count_ships(this.ptr);
|
|
1157
1175
|
return ret >>> 0;
|
|
1158
1176
|
}
|
|
1159
1177
|
/**
|
|
@@ -1161,9 +1179,9 @@ export class Fleet {
|
|
|
1161
1179
|
* @returns {Ship | undefined}
|
|
1162
1180
|
*/
|
|
1163
1181
|
get_ship(key) {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
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);
|
|
1167
1185
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1168
1186
|
}
|
|
1169
1187
|
/**
|
|
@@ -1181,7 +1199,7 @@ export class Fleet {
|
|
|
1181
1199
|
}
|
|
1182
1200
|
}
|
|
1183
1201
|
/**
|
|
1184
|
-
* @param {
|
|
1202
|
+
* @param {AirWaveType} air_type
|
|
1185
1203
|
* @returns {number | undefined}
|
|
1186
1204
|
*/
|
|
1187
1205
|
fighter_power(air_type) {
|
|
@@ -1232,7 +1250,7 @@ export class Fleet {
|
|
|
1232
1250
|
* @returns {number}
|
|
1233
1251
|
*/
|
|
1234
1252
|
expedition_bonus() {
|
|
1235
|
-
|
|
1253
|
+
const ret = wasm.fleet_expedition_bonus(this.ptr);
|
|
1236
1254
|
return ret;
|
|
1237
1255
|
}
|
|
1238
1256
|
/**
|
|
@@ -1242,8 +1260,8 @@ export class Fleet {
|
|
|
1242
1260
|
sum_ship_stat_by(key) {
|
|
1243
1261
|
try {
|
|
1244
1262
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1245
|
-
|
|
1246
|
-
|
|
1263
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1264
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1247
1265
|
wasm.fleet_sum_ship_stat_by(retptr, this.ptr, ptr0, len0);
|
|
1248
1266
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1249
1267
|
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
@@ -1300,8 +1318,8 @@ export class Gear {
|
|
|
1300
1318
|
* @param {string} arg0
|
|
1301
1319
|
*/
|
|
1302
1320
|
set id(arg0) {
|
|
1303
|
-
|
|
1304
|
-
|
|
1321
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1322
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1305
1323
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1306
1324
|
}
|
|
1307
1325
|
/**
|
|
@@ -1332,7 +1350,7 @@ export class Gear {
|
|
|
1332
1350
|
/**
|
|
1333
1351
|
*/
|
|
1334
1352
|
get gear_id() {
|
|
1335
|
-
|
|
1353
|
+
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1336
1354
|
return ret;
|
|
1337
1355
|
}
|
|
1338
1356
|
/**
|
|
@@ -1344,7 +1362,7 @@ export class Gear {
|
|
|
1344
1362
|
/**
|
|
1345
1363
|
*/
|
|
1346
1364
|
get stars() {
|
|
1347
|
-
|
|
1365
|
+
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1348
1366
|
return ret;
|
|
1349
1367
|
}
|
|
1350
1368
|
/**
|
|
@@ -1356,7 +1374,7 @@ export class Gear {
|
|
|
1356
1374
|
/**
|
|
1357
1375
|
*/
|
|
1358
1376
|
get exp() {
|
|
1359
|
-
|
|
1377
|
+
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1360
1378
|
return ret;
|
|
1361
1379
|
}
|
|
1362
1380
|
/**
|
|
@@ -1368,7 +1386,7 @@ export class Gear {
|
|
|
1368
1386
|
/**
|
|
1369
1387
|
*/
|
|
1370
1388
|
get default_exp() {
|
|
1371
|
-
|
|
1389
|
+
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1372
1390
|
return ret;
|
|
1373
1391
|
}
|
|
1374
1392
|
/**
|
|
@@ -1395,18 +1413,18 @@ export class Gear {
|
|
|
1395
1413
|
* @param {string} arg0
|
|
1396
1414
|
*/
|
|
1397
1415
|
set name(arg0) {
|
|
1398
|
-
|
|
1399
|
-
|
|
1416
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1417
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1400
1418
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1401
1419
|
}
|
|
1402
1420
|
/**
|
|
1403
1421
|
*/
|
|
1404
1422
|
get gear_type() {
|
|
1405
|
-
|
|
1423
|
+
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1406
1424
|
return takeObject(ret);
|
|
1407
1425
|
}
|
|
1408
1426
|
/**
|
|
1409
|
-
* @param {
|
|
1427
|
+
* @param {GearType} arg0
|
|
1410
1428
|
*/
|
|
1411
1429
|
set gear_type(arg0) {
|
|
1412
1430
|
wasm.__wbg_set_gear_gear_type(this.ptr, addHeapObject(arg0));
|
|
@@ -1414,7 +1432,7 @@ export class Gear {
|
|
|
1414
1432
|
/**
|
|
1415
1433
|
*/
|
|
1416
1434
|
get max_hp() {
|
|
1417
|
-
|
|
1435
|
+
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1418
1436
|
return ret;
|
|
1419
1437
|
}
|
|
1420
1438
|
/**
|
|
@@ -1426,7 +1444,7 @@ export class Gear {
|
|
|
1426
1444
|
/**
|
|
1427
1445
|
*/
|
|
1428
1446
|
get firepower() {
|
|
1429
|
-
|
|
1447
|
+
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1430
1448
|
return ret;
|
|
1431
1449
|
}
|
|
1432
1450
|
/**
|
|
@@ -1438,7 +1456,7 @@ export class Gear {
|
|
|
1438
1456
|
/**
|
|
1439
1457
|
*/
|
|
1440
1458
|
get armor() {
|
|
1441
|
-
|
|
1459
|
+
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1442
1460
|
return ret;
|
|
1443
1461
|
}
|
|
1444
1462
|
/**
|
|
@@ -1450,7 +1468,7 @@ export class Gear {
|
|
|
1450
1468
|
/**
|
|
1451
1469
|
*/
|
|
1452
1470
|
get torpedo() {
|
|
1453
|
-
|
|
1471
|
+
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1454
1472
|
return ret;
|
|
1455
1473
|
}
|
|
1456
1474
|
/**
|
|
@@ -1462,7 +1480,7 @@ export class Gear {
|
|
|
1462
1480
|
/**
|
|
1463
1481
|
*/
|
|
1464
1482
|
get anti_air() {
|
|
1465
|
-
|
|
1483
|
+
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1466
1484
|
return ret;
|
|
1467
1485
|
}
|
|
1468
1486
|
/**
|
|
@@ -1474,7 +1492,7 @@ export class Gear {
|
|
|
1474
1492
|
/**
|
|
1475
1493
|
*/
|
|
1476
1494
|
get speed() {
|
|
1477
|
-
|
|
1495
|
+
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1478
1496
|
return ret;
|
|
1479
1497
|
}
|
|
1480
1498
|
/**
|
|
@@ -1486,7 +1504,7 @@ export class Gear {
|
|
|
1486
1504
|
/**
|
|
1487
1505
|
*/
|
|
1488
1506
|
get bombing() {
|
|
1489
|
-
|
|
1507
|
+
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1490
1508
|
return ret;
|
|
1491
1509
|
}
|
|
1492
1510
|
/**
|
|
@@ -1498,7 +1516,7 @@ export class Gear {
|
|
|
1498
1516
|
/**
|
|
1499
1517
|
*/
|
|
1500
1518
|
get asw() {
|
|
1501
|
-
|
|
1519
|
+
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1502
1520
|
return ret;
|
|
1503
1521
|
}
|
|
1504
1522
|
/**
|
|
@@ -1510,7 +1528,7 @@ export class Gear {
|
|
|
1510
1528
|
/**
|
|
1511
1529
|
*/
|
|
1512
1530
|
get los() {
|
|
1513
|
-
|
|
1531
|
+
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1514
1532
|
return ret;
|
|
1515
1533
|
}
|
|
1516
1534
|
/**
|
|
@@ -1522,7 +1540,7 @@ export class Gear {
|
|
|
1522
1540
|
/**
|
|
1523
1541
|
*/
|
|
1524
1542
|
get luck() {
|
|
1525
|
-
|
|
1543
|
+
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1526
1544
|
return ret;
|
|
1527
1545
|
}
|
|
1528
1546
|
/**
|
|
@@ -1534,7 +1552,7 @@ export class Gear {
|
|
|
1534
1552
|
/**
|
|
1535
1553
|
*/
|
|
1536
1554
|
get accuracy() {
|
|
1537
|
-
|
|
1555
|
+
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1538
1556
|
return ret;
|
|
1539
1557
|
}
|
|
1540
1558
|
/**
|
|
@@ -1546,7 +1564,7 @@ export class Gear {
|
|
|
1546
1564
|
/**
|
|
1547
1565
|
*/
|
|
1548
1566
|
get evasion() {
|
|
1549
|
-
|
|
1567
|
+
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1550
1568
|
return ret;
|
|
1551
1569
|
}
|
|
1552
1570
|
/**
|
|
@@ -1558,7 +1576,7 @@ export class Gear {
|
|
|
1558
1576
|
/**
|
|
1559
1577
|
*/
|
|
1560
1578
|
get range() {
|
|
1561
|
-
|
|
1579
|
+
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1562
1580
|
return ret;
|
|
1563
1581
|
}
|
|
1564
1582
|
/**
|
|
@@ -1570,7 +1588,7 @@ export class Gear {
|
|
|
1570
1588
|
/**
|
|
1571
1589
|
*/
|
|
1572
1590
|
get radius() {
|
|
1573
|
-
|
|
1591
|
+
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1574
1592
|
return ret;
|
|
1575
1593
|
}
|
|
1576
1594
|
/**
|
|
@@ -1582,7 +1600,7 @@ export class Gear {
|
|
|
1582
1600
|
/**
|
|
1583
1601
|
*/
|
|
1584
1602
|
get cost() {
|
|
1585
|
-
|
|
1603
|
+
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1586
1604
|
return ret;
|
|
1587
1605
|
}
|
|
1588
1606
|
/**
|
|
@@ -1594,7 +1612,7 @@ export class Gear {
|
|
|
1594
1612
|
/**
|
|
1595
1613
|
*/
|
|
1596
1614
|
get improvable() {
|
|
1597
|
-
|
|
1615
|
+
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1598
1616
|
return ret !== 0;
|
|
1599
1617
|
}
|
|
1600
1618
|
/**
|
|
@@ -1606,7 +1624,7 @@ export class Gear {
|
|
|
1606
1624
|
/**
|
|
1607
1625
|
*/
|
|
1608
1626
|
get adjusted_anti_air_resistance() {
|
|
1609
|
-
|
|
1627
|
+
const ret = wasm.__wbg_get_gear_adjusted_anti_air_resistance(this.ptr);
|
|
1610
1628
|
return ret;
|
|
1611
1629
|
}
|
|
1612
1630
|
/**
|
|
@@ -1618,7 +1636,7 @@ export class Gear {
|
|
|
1618
1636
|
/**
|
|
1619
1637
|
*/
|
|
1620
1638
|
get fleet_anti_air_resistance() {
|
|
1621
|
-
|
|
1639
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1622
1640
|
return ret;
|
|
1623
1641
|
}
|
|
1624
1642
|
/**
|
|
@@ -1631,99 +1649,99 @@ export class Gear {
|
|
|
1631
1649
|
* @returns {Gear}
|
|
1632
1650
|
*/
|
|
1633
1651
|
static default() {
|
|
1634
|
-
|
|
1652
|
+
const ret = wasm.gear_default();
|
|
1635
1653
|
return Gear.__wrap(ret);
|
|
1636
1654
|
}
|
|
1637
1655
|
/**
|
|
1638
1656
|
* @returns {any}
|
|
1639
1657
|
*/
|
|
1640
1658
|
get types() {
|
|
1641
|
-
|
|
1659
|
+
const ret = wasm.gear_types(this.ptr);
|
|
1642
1660
|
return takeObject(ret);
|
|
1643
1661
|
}
|
|
1644
1662
|
/**
|
|
1645
1663
|
* @returns {number}
|
|
1646
1664
|
*/
|
|
1647
1665
|
get gear_type_id() {
|
|
1648
|
-
|
|
1666
|
+
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1649
1667
|
return ret;
|
|
1650
1668
|
}
|
|
1651
1669
|
/**
|
|
1652
1670
|
* @returns {number}
|
|
1653
1671
|
*/
|
|
1654
1672
|
get special_type_id() {
|
|
1655
|
-
|
|
1673
|
+
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1656
1674
|
return ret;
|
|
1657
1675
|
}
|
|
1658
1676
|
/**
|
|
1659
1677
|
* @returns {number}
|
|
1660
1678
|
*/
|
|
1661
1679
|
get icon_id() {
|
|
1662
|
-
|
|
1680
|
+
const ret = wasm.gear_icon_id(this.ptr);
|
|
1663
1681
|
return ret;
|
|
1664
1682
|
}
|
|
1665
1683
|
/**
|
|
1666
|
-
* @param {
|
|
1684
|
+
* @param {GearAttr} attr
|
|
1667
1685
|
* @returns {boolean}
|
|
1668
1686
|
*/
|
|
1669
1687
|
has_attr(attr) {
|
|
1670
|
-
|
|
1688
|
+
const ret = wasm.gear_has_attr(this.ptr, addHeapObject(attr));
|
|
1671
1689
|
return ret !== 0;
|
|
1672
1690
|
}
|
|
1673
1691
|
/**
|
|
1674
|
-
* @returns {
|
|
1692
|
+
* @returns {GearCategory}
|
|
1675
1693
|
*/
|
|
1676
1694
|
category() {
|
|
1677
|
-
|
|
1695
|
+
const ret = wasm.gear_category(this.ptr);
|
|
1678
1696
|
return takeObject(ret);
|
|
1679
1697
|
}
|
|
1680
1698
|
/**
|
|
1681
1699
|
* @returns {number}
|
|
1682
1700
|
*/
|
|
1683
1701
|
get ace() {
|
|
1684
|
-
|
|
1702
|
+
const ret = wasm.gear_ace(this.ptr);
|
|
1685
1703
|
return ret;
|
|
1686
1704
|
}
|
|
1687
1705
|
/**
|
|
1688
1706
|
* @returns {number}
|
|
1689
1707
|
*/
|
|
1690
1708
|
get anti_bomber() {
|
|
1691
|
-
|
|
1709
|
+
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1692
1710
|
return ret;
|
|
1693
1711
|
}
|
|
1694
1712
|
/**
|
|
1695
1713
|
* @returns {number}
|
|
1696
1714
|
*/
|
|
1697
1715
|
get interception() {
|
|
1698
|
-
|
|
1716
|
+
const ret = wasm.gear_interception(this.ptr);
|
|
1699
1717
|
return ret;
|
|
1700
1718
|
}
|
|
1701
1719
|
/**
|
|
1702
1720
|
* @returns {boolean}
|
|
1703
1721
|
*/
|
|
1704
1722
|
is_carrier_shelling_plane() {
|
|
1705
|
-
|
|
1723
|
+
const ret = wasm.gear_is_carrier_shelling_plane(this.ptr);
|
|
1706
1724
|
return ret !== 0;
|
|
1707
1725
|
}
|
|
1708
1726
|
/**
|
|
1709
1727
|
* @returns {boolean}
|
|
1710
1728
|
*/
|
|
1711
1729
|
has_proficiency() {
|
|
1712
|
-
|
|
1730
|
+
const ret = wasm.gear_has_proficiency(this.ptr);
|
|
1713
1731
|
return ret !== 0;
|
|
1714
1732
|
}
|
|
1715
1733
|
/**
|
|
1716
1734
|
* @returns {boolean}
|
|
1717
1735
|
*/
|
|
1718
1736
|
max_exp_eq_120() {
|
|
1719
|
-
|
|
1737
|
+
const ret = wasm.gear_max_exp_eq_120(this.ptr);
|
|
1720
1738
|
return ret !== 0;
|
|
1721
1739
|
}
|
|
1722
1740
|
/**
|
|
1723
1741
|
* @returns {number}
|
|
1724
1742
|
*/
|
|
1725
1743
|
proficiency_critical_power_mod() {
|
|
1726
|
-
|
|
1744
|
+
const ret = wasm.gear_proficiency_critical_power_mod(this.ptr);
|
|
1727
1745
|
return ret;
|
|
1728
1746
|
}
|
|
1729
1747
|
/**
|
|
@@ -1731,7 +1749,7 @@ export class Gear {
|
|
|
1731
1749
|
* @returns {number}
|
|
1732
1750
|
*/
|
|
1733
1751
|
calc_fighter_power(slot_size) {
|
|
1734
|
-
|
|
1752
|
+
const ret = wasm.gear_calc_fighter_power(this.ptr, slot_size);
|
|
1735
1753
|
return ret;
|
|
1736
1754
|
}
|
|
1737
1755
|
/**
|
|
@@ -1739,21 +1757,21 @@ export class Gear {
|
|
|
1739
1757
|
* @returns {number}
|
|
1740
1758
|
*/
|
|
1741
1759
|
calc_interception_power(slot_size) {
|
|
1742
|
-
|
|
1760
|
+
const ret = wasm.gear_calc_interception_power(this.ptr, slot_size);
|
|
1743
1761
|
return ret;
|
|
1744
1762
|
}
|
|
1745
1763
|
/**
|
|
1746
1764
|
* @returns {number}
|
|
1747
1765
|
*/
|
|
1748
1766
|
fleet_anti_air() {
|
|
1749
|
-
|
|
1767
|
+
const ret = wasm.gear_fleet_anti_air(this.ptr);
|
|
1750
1768
|
return ret;
|
|
1751
1769
|
}
|
|
1752
1770
|
/**
|
|
1753
1771
|
* @returns {number}
|
|
1754
1772
|
*/
|
|
1755
1773
|
adjusted_anti_air() {
|
|
1756
|
-
|
|
1774
|
+
const ret = wasm.gear_adjusted_anti_air(this.ptr);
|
|
1757
1775
|
return ret;
|
|
1758
1776
|
}
|
|
1759
1777
|
/**
|
|
@@ -1761,15 +1779,15 @@ export class Gear {
|
|
|
1761
1779
|
* @returns {number}
|
|
1762
1780
|
*/
|
|
1763
1781
|
calc_contact_trigger_factor(slot_size) {
|
|
1764
|
-
|
|
1782
|
+
const ret = wasm.gear_calc_contact_trigger_factor(this.ptr, slot_size);
|
|
1765
1783
|
return ret;
|
|
1766
1784
|
}
|
|
1767
1785
|
/**
|
|
1768
|
-
* @param {
|
|
1786
|
+
* @param {AirStateRank} rank
|
|
1769
1787
|
* @returns {number}
|
|
1770
1788
|
*/
|
|
1771
1789
|
contact_selection_rate(rank) {
|
|
1772
|
-
|
|
1790
|
+
const ret = wasm.gear_contact_selection_rate(this.ptr, addHeapObject(rank));
|
|
1773
1791
|
return ret;
|
|
1774
1792
|
}
|
|
1775
1793
|
/**
|
|
@@ -1777,14 +1795,14 @@ export class Gear {
|
|
|
1777
1795
|
* @returns {number}
|
|
1778
1796
|
*/
|
|
1779
1797
|
night_contact_rate(level) {
|
|
1780
|
-
|
|
1798
|
+
const ret = wasm.gear_night_contact_rate(this.ptr, level);
|
|
1781
1799
|
return ret;
|
|
1782
1800
|
}
|
|
1783
1801
|
/**
|
|
1784
1802
|
* @returns {boolean}
|
|
1785
1803
|
*/
|
|
1786
1804
|
is_night_plane() {
|
|
1787
|
-
|
|
1805
|
+
const ret = wasm.gear_is_night_plane(this.ptr);
|
|
1788
1806
|
return ret !== 0;
|
|
1789
1807
|
}
|
|
1790
1808
|
/**
|
|
@@ -1793,42 +1811,42 @@ export class Gear {
|
|
|
1793
1811
|
* @returns {number}
|
|
1794
1812
|
*/
|
|
1795
1813
|
night_plane_power(slot_size, anti_inst) {
|
|
1796
|
-
|
|
1814
|
+
const ret = wasm.gear_night_plane_power(this.ptr, slot_size, anti_inst);
|
|
1797
1815
|
return ret;
|
|
1798
1816
|
}
|
|
1799
1817
|
/**
|
|
1800
1818
|
* @returns {number}
|
|
1801
1819
|
*/
|
|
1802
1820
|
elos() {
|
|
1803
|
-
|
|
1821
|
+
const ret = wasm.gear_elos(this.ptr);
|
|
1804
1822
|
return ret;
|
|
1805
1823
|
}
|
|
1806
1824
|
/**
|
|
1807
1825
|
* @returns {boolean}
|
|
1808
1826
|
*/
|
|
1809
1827
|
is_abyssal() {
|
|
1810
|
-
|
|
1828
|
+
const ret = wasm.gear_is_abyssal(this.ptr);
|
|
1811
1829
|
return ret !== 0;
|
|
1812
1830
|
}
|
|
1813
1831
|
/**
|
|
1814
1832
|
* @returns {boolean}
|
|
1815
1833
|
*/
|
|
1816
1834
|
is_abyssal_cuttlefish_torpedo() {
|
|
1817
|
-
|
|
1835
|
+
const ret = wasm.gear_is_abyssal_cuttlefish_torpedo(this.ptr);
|
|
1818
1836
|
return ret !== 0;
|
|
1819
1837
|
}
|
|
1820
1838
|
/**
|
|
1821
1839
|
* @returns {boolean}
|
|
1822
1840
|
*/
|
|
1823
1841
|
is_abyssal_patrolling_attack_hawk() {
|
|
1824
|
-
|
|
1842
|
+
const ret = wasm.gear_is_abyssal_patrolling_attack_hawk(this.ptr);
|
|
1825
1843
|
return ret !== 0;
|
|
1826
1844
|
}
|
|
1827
1845
|
/**
|
|
1828
1846
|
* @returns {number}
|
|
1829
1847
|
*/
|
|
1830
1848
|
expedition_bonus() {
|
|
1831
|
-
|
|
1849
|
+
const ret = wasm.gear_expedition_bonus(this.ptr);
|
|
1832
1850
|
return ret;
|
|
1833
1851
|
}
|
|
1834
1852
|
}
|
|
@@ -1852,7 +1870,7 @@ export class IBonuses {
|
|
|
1852
1870
|
/**
|
|
1853
1871
|
*/
|
|
1854
1872
|
get shelling_power() {
|
|
1855
|
-
|
|
1873
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1856
1874
|
return ret;
|
|
1857
1875
|
}
|
|
1858
1876
|
/**
|
|
@@ -1864,7 +1882,7 @@ export class IBonuses {
|
|
|
1864
1882
|
/**
|
|
1865
1883
|
*/
|
|
1866
1884
|
get carrier_shelling_power() {
|
|
1867
|
-
|
|
1885
|
+
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1868
1886
|
return ret;
|
|
1869
1887
|
}
|
|
1870
1888
|
/**
|
|
@@ -1876,7 +1894,7 @@ export class IBonuses {
|
|
|
1876
1894
|
/**
|
|
1877
1895
|
*/
|
|
1878
1896
|
get shelling_accuracy() {
|
|
1879
|
-
|
|
1897
|
+
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1880
1898
|
return ret;
|
|
1881
1899
|
}
|
|
1882
1900
|
/**
|
|
@@ -1888,7 +1906,7 @@ export class IBonuses {
|
|
|
1888
1906
|
/**
|
|
1889
1907
|
*/
|
|
1890
1908
|
get torpedo_power() {
|
|
1891
|
-
|
|
1909
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1892
1910
|
return ret;
|
|
1893
1911
|
}
|
|
1894
1912
|
/**
|
|
@@ -1900,7 +1918,7 @@ export class IBonuses {
|
|
|
1900
1918
|
/**
|
|
1901
1919
|
*/
|
|
1902
1920
|
get torpedo_accuracy() {
|
|
1903
|
-
|
|
1921
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1904
1922
|
return ret;
|
|
1905
1923
|
}
|
|
1906
1924
|
/**
|
|
@@ -1912,7 +1930,7 @@ export class IBonuses {
|
|
|
1912
1930
|
/**
|
|
1913
1931
|
*/
|
|
1914
1932
|
get torpedo_evasion() {
|
|
1915
|
-
|
|
1933
|
+
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1916
1934
|
return ret;
|
|
1917
1935
|
}
|
|
1918
1936
|
/**
|
|
@@ -1924,7 +1942,7 @@ export class IBonuses {
|
|
|
1924
1942
|
/**
|
|
1925
1943
|
*/
|
|
1926
1944
|
get asw_power() {
|
|
1927
|
-
|
|
1945
|
+
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1928
1946
|
return ret;
|
|
1929
1947
|
}
|
|
1930
1948
|
/**
|
|
@@ -1936,7 +1954,7 @@ export class IBonuses {
|
|
|
1936
1954
|
/**
|
|
1937
1955
|
*/
|
|
1938
1956
|
get asw_accuracy() {
|
|
1939
|
-
|
|
1957
|
+
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1940
1958
|
return ret;
|
|
1941
1959
|
}
|
|
1942
1960
|
/**
|
|
@@ -1948,7 +1966,7 @@ export class IBonuses {
|
|
|
1948
1966
|
/**
|
|
1949
1967
|
*/
|
|
1950
1968
|
get night_power() {
|
|
1951
|
-
|
|
1969
|
+
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1952
1970
|
return ret;
|
|
1953
1971
|
}
|
|
1954
1972
|
/**
|
|
@@ -1960,7 +1978,7 @@ export class IBonuses {
|
|
|
1960
1978
|
/**
|
|
1961
1979
|
*/
|
|
1962
1980
|
get night_accuracy() {
|
|
1963
|
-
|
|
1981
|
+
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1964
1982
|
return ret;
|
|
1965
1983
|
}
|
|
1966
1984
|
/**
|
|
@@ -1972,7 +1990,7 @@ export class IBonuses {
|
|
|
1972
1990
|
/**
|
|
1973
1991
|
*/
|
|
1974
1992
|
get defense_power() {
|
|
1975
|
-
|
|
1993
|
+
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1976
1994
|
return ret;
|
|
1977
1995
|
}
|
|
1978
1996
|
/**
|
|
@@ -1984,7 +2002,7 @@ export class IBonuses {
|
|
|
1984
2002
|
/**
|
|
1985
2003
|
*/
|
|
1986
2004
|
get contact_selection() {
|
|
1987
|
-
|
|
2005
|
+
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
1988
2006
|
return ret;
|
|
1989
2007
|
}
|
|
1990
2008
|
/**
|
|
@@ -1996,7 +2014,7 @@ export class IBonuses {
|
|
|
1996
2014
|
/**
|
|
1997
2015
|
*/
|
|
1998
2016
|
get fighter_power() {
|
|
1999
|
-
|
|
2017
|
+
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
2000
2018
|
return ret;
|
|
2001
2019
|
}
|
|
2002
2020
|
/**
|
|
@@ -2008,7 +2026,7 @@ export class IBonuses {
|
|
|
2008
2026
|
/**
|
|
2009
2027
|
*/
|
|
2010
2028
|
get adjusted_anti_air() {
|
|
2011
|
-
|
|
2029
|
+
const ret = wasm.__wbg_get_ibonuses_adjusted_anti_air(this.ptr);
|
|
2012
2030
|
return ret;
|
|
2013
2031
|
}
|
|
2014
2032
|
/**
|
|
@@ -2020,7 +2038,7 @@ export class IBonuses {
|
|
|
2020
2038
|
/**
|
|
2021
2039
|
*/
|
|
2022
2040
|
get fleet_anti_air() {
|
|
2023
|
-
|
|
2041
|
+
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
2024
2042
|
return ret;
|
|
2025
2043
|
}
|
|
2026
2044
|
/**
|
|
@@ -2032,7 +2050,7 @@ export class IBonuses {
|
|
|
2032
2050
|
/**
|
|
2033
2051
|
*/
|
|
2034
2052
|
get elos() {
|
|
2035
|
-
|
|
2053
|
+
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
2036
2054
|
return ret;
|
|
2037
2055
|
}
|
|
2038
2056
|
/**
|
|
@@ -2084,8 +2102,8 @@ export class Org {
|
|
|
2084
2102
|
* @param {string} arg0
|
|
2085
2103
|
*/
|
|
2086
2104
|
set id(arg0) {
|
|
2087
|
-
|
|
2088
|
-
|
|
2105
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2106
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2089
2107
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
2090
2108
|
}
|
|
2091
2109
|
/**
|
|
@@ -2116,7 +2134,7 @@ export class Org {
|
|
|
2116
2134
|
/**
|
|
2117
2135
|
*/
|
|
2118
2136
|
get hq_level() {
|
|
2119
|
-
|
|
2137
|
+
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2120
2138
|
return ret;
|
|
2121
2139
|
}
|
|
2122
2140
|
/**
|
|
@@ -2128,11 +2146,11 @@ export class Org {
|
|
|
2128
2146
|
/**
|
|
2129
2147
|
*/
|
|
2130
2148
|
get org_type() {
|
|
2131
|
-
|
|
2149
|
+
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2132
2150
|
return takeObject(ret);
|
|
2133
2151
|
}
|
|
2134
2152
|
/**
|
|
2135
|
-
* @param {
|
|
2153
|
+
* @param {OrgType} arg0
|
|
2136
2154
|
*/
|
|
2137
2155
|
set org_type(arg0) {
|
|
2138
2156
|
wasm.__wbg_set_org_org_type(this.ptr, addHeapObject(arg0));
|
|
@@ -2155,8 +2173,8 @@ export class Org {
|
|
|
2155
2173
|
* @param {string} arg0
|
|
2156
2174
|
*/
|
|
2157
2175
|
set sortie(arg0) {
|
|
2158
|
-
|
|
2159
|
-
|
|
2176
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2177
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2160
2178
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2161
2179
|
}
|
|
2162
2180
|
/**
|
|
@@ -2212,23 +2230,23 @@ export class Org {
|
|
|
2212
2230
|
wasm.__wbg_set_org_boss_sup(this.ptr, ptr0, len0);
|
|
2213
2231
|
}
|
|
2214
2232
|
/**
|
|
2215
|
-
* @param {
|
|
2233
|
+
* @param {Role} role
|
|
2216
2234
|
* @returns {number}
|
|
2217
2235
|
*/
|
|
2218
2236
|
fleet_len(role) {
|
|
2219
|
-
|
|
2237
|
+
const ret = wasm.org_fleet_len(this.ptr, addHeapObject(role));
|
|
2220
2238
|
return ret >>> 0;
|
|
2221
2239
|
}
|
|
2222
2240
|
/**
|
|
2223
|
-
* @param {
|
|
2241
|
+
* @param {Role} role
|
|
2224
2242
|
* @param {string} key
|
|
2225
2243
|
* @returns {string | undefined}
|
|
2226
2244
|
*/
|
|
2227
2245
|
get_ship_entity_id(role, key) {
|
|
2228
2246
|
try {
|
|
2229
2247
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2230
|
-
|
|
2231
|
-
|
|
2248
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2249
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2232
2250
|
wasm.org_get_ship_entity_id(retptr, this.ptr, addHeapObject(role), ptr0, len0);
|
|
2233
2251
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2234
2252
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2259,7 +2277,7 @@ export class Org {
|
|
|
2259
2277
|
}
|
|
2260
2278
|
}
|
|
2261
2279
|
/**
|
|
2262
|
-
* @param {
|
|
2280
|
+
* @param {Role} role
|
|
2263
2281
|
* @returns {number | undefined}
|
|
2264
2282
|
*/
|
|
2265
2283
|
fleet_los_mod(role) {
|
|
@@ -2310,20 +2328,20 @@ export class Org {
|
|
|
2310
2328
|
* @returns {Fleet}
|
|
2311
2329
|
*/
|
|
2312
2330
|
clone_fleet(key) {
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
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);
|
|
2316
2334
|
return Fleet.__wrap(ret);
|
|
2317
2335
|
}
|
|
2318
2336
|
/**
|
|
2319
|
-
* @param {
|
|
2337
|
+
* @param {Role} role
|
|
2320
2338
|
* @param {string} key
|
|
2321
2339
|
* @returns {Ship | undefined}
|
|
2322
2340
|
*/
|
|
2323
2341
|
get_ship(role, key) {
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
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);
|
|
2327
2345
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2328
2346
|
}
|
|
2329
2347
|
/**
|
|
@@ -2331,13 +2349,13 @@ export class Org {
|
|
|
2331
2349
|
* @returns {Ship | undefined}
|
|
2332
2350
|
*/
|
|
2333
2351
|
get_ship_by_id(id) {
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
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);
|
|
2337
2355
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
2338
2356
|
}
|
|
2339
2357
|
/**
|
|
2340
|
-
* @param {
|
|
2358
|
+
* @param {Role} role
|
|
2341
2359
|
* @returns {string}
|
|
2342
2360
|
*/
|
|
2343
2361
|
get_fleet_id_by_role(role) {
|
|
@@ -2356,7 +2374,7 @@ export class Org {
|
|
|
2356
2374
|
* @returns {Comp}
|
|
2357
2375
|
*/
|
|
2358
2376
|
create_comp() {
|
|
2359
|
-
|
|
2377
|
+
const ret = wasm.org_create_comp(this.ptr);
|
|
2360
2378
|
return Comp.__wrap(ret);
|
|
2361
2379
|
}
|
|
2362
2380
|
/**
|
|
@@ -2364,9 +2382,9 @@ export class Org {
|
|
|
2364
2382
|
* @returns {Comp}
|
|
2365
2383
|
*/
|
|
2366
2384
|
create_comp_by_key(key) {
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
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);
|
|
2370
2388
|
return Comp.__wrap(ret);
|
|
2371
2389
|
}
|
|
2372
2390
|
/**
|
|
@@ -2376,8 +2394,8 @@ export class Org {
|
|
|
2376
2394
|
get_air_squadron(key) {
|
|
2377
2395
|
try {
|
|
2378
2396
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2379
|
-
|
|
2380
|
-
|
|
2397
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2398
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2381
2399
|
wasm.org_get_air_squadron(retptr, this.ptr, ptr0, len0);
|
|
2382
2400
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2383
2401
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
@@ -2423,31 +2441,38 @@ export class Org {
|
|
|
2423
2441
|
}
|
|
2424
2442
|
}
|
|
2425
2443
|
/**
|
|
2444
|
+
* @returns {Side}
|
|
2445
|
+
*/
|
|
2446
|
+
side() {
|
|
2447
|
+
const ret = wasm.org_side(this.ptr);
|
|
2448
|
+
return takeObject(ret);
|
|
2449
|
+
}
|
|
2450
|
+
/**
|
|
2426
2451
|
* @returns {boolean}
|
|
2427
2452
|
*/
|
|
2428
2453
|
is_player() {
|
|
2429
|
-
|
|
2454
|
+
const ret = wasm.org_is_player(this.ptr);
|
|
2430
2455
|
return ret !== 0;
|
|
2431
2456
|
}
|
|
2432
2457
|
/**
|
|
2433
2458
|
* @returns {boolean}
|
|
2434
2459
|
*/
|
|
2435
2460
|
is_enemy() {
|
|
2436
|
-
|
|
2461
|
+
const ret = wasm.org_is_enemy(this.ptr);
|
|
2437
2462
|
return ret !== 0;
|
|
2438
2463
|
}
|
|
2439
2464
|
/**
|
|
2440
2465
|
* @returns {boolean}
|
|
2441
2466
|
*/
|
|
2442
2467
|
is_single() {
|
|
2443
|
-
|
|
2468
|
+
const ret = wasm.org_is_single(this.ptr);
|
|
2444
2469
|
return ret !== 0;
|
|
2445
2470
|
}
|
|
2446
2471
|
/**
|
|
2447
2472
|
* @returns {boolean}
|
|
2448
2473
|
*/
|
|
2449
2474
|
is_combined() {
|
|
2450
|
-
|
|
2475
|
+
const ret = wasm.org_is_combined(this.ptr);
|
|
2451
2476
|
return ret !== 0;
|
|
2452
2477
|
}
|
|
2453
2478
|
/**
|
|
@@ -2455,7 +2480,7 @@ export class Org {
|
|
|
2455
2480
|
* @returns {number}
|
|
2456
2481
|
*/
|
|
2457
2482
|
interception_power() {
|
|
2458
|
-
|
|
2483
|
+
const ret = wasm.org_interception_power(this.ptr);
|
|
2459
2484
|
return ret;
|
|
2460
2485
|
}
|
|
2461
2486
|
/**
|
|
@@ -2463,24 +2488,24 @@ export class Org {
|
|
|
2463
2488
|
* @returns {number}
|
|
2464
2489
|
*/
|
|
2465
2490
|
high_altitude_interception_power() {
|
|
2466
|
-
|
|
2491
|
+
const ret = wasm.org_high_altitude_interception_power(this.ptr);
|
|
2467
2492
|
return ret;
|
|
2468
2493
|
}
|
|
2469
2494
|
/**
|
|
2470
2495
|
* @param {Ship} ship
|
|
2471
|
-
* @param {
|
|
2472
|
-
* @returns {
|
|
2496
|
+
* @param {Formation} formation
|
|
2497
|
+
* @returns {WarfareShipEnvironment}
|
|
2473
2498
|
*/
|
|
2474
2499
|
create_warfare_ship_environment(ship, formation) {
|
|
2475
2500
|
_assertClass(ship, Ship);
|
|
2476
|
-
|
|
2501
|
+
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2477
2502
|
return takeObject(ret);
|
|
2478
2503
|
}
|
|
2479
2504
|
/**
|
|
2480
2505
|
* @returns {Org}
|
|
2481
2506
|
*/
|
|
2482
2507
|
static default() {
|
|
2483
|
-
|
|
2508
|
+
const ret = wasm.org_default();
|
|
2484
2509
|
return Org.__wrap(ret);
|
|
2485
2510
|
}
|
|
2486
2511
|
}
|
|
@@ -2526,8 +2551,8 @@ export class Ship {
|
|
|
2526
2551
|
* @param {string} arg0
|
|
2527
2552
|
*/
|
|
2528
2553
|
set id(arg0) {
|
|
2529
|
-
|
|
2530
|
-
|
|
2554
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2555
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2531
2556
|
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2532
2557
|
}
|
|
2533
2558
|
/**
|
|
@@ -2558,7 +2583,7 @@ export class Ship {
|
|
|
2558
2583
|
/**
|
|
2559
2584
|
*/
|
|
2560
2585
|
get ship_id() {
|
|
2561
|
-
|
|
2586
|
+
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2562
2587
|
return ret;
|
|
2563
2588
|
}
|
|
2564
2589
|
/**
|
|
@@ -2570,7 +2595,7 @@ export class Ship {
|
|
|
2570
2595
|
/**
|
|
2571
2596
|
*/
|
|
2572
2597
|
get level() {
|
|
2573
|
-
|
|
2598
|
+
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2574
2599
|
return ret;
|
|
2575
2600
|
}
|
|
2576
2601
|
/**
|
|
@@ -2582,7 +2607,7 @@ export class Ship {
|
|
|
2582
2607
|
/**
|
|
2583
2608
|
*/
|
|
2584
2609
|
get current_hp() {
|
|
2585
|
-
|
|
2610
|
+
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2586
2611
|
return ret;
|
|
2587
2612
|
}
|
|
2588
2613
|
/**
|
|
@@ -2594,7 +2619,7 @@ export class Ship {
|
|
|
2594
2619
|
/**
|
|
2595
2620
|
*/
|
|
2596
2621
|
get morale() {
|
|
2597
|
-
|
|
2622
|
+
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2598
2623
|
return ret;
|
|
2599
2624
|
}
|
|
2600
2625
|
/**
|
|
@@ -2606,7 +2631,7 @@ export class Ship {
|
|
|
2606
2631
|
/**
|
|
2607
2632
|
*/
|
|
2608
2633
|
get ammo() {
|
|
2609
|
-
|
|
2634
|
+
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2610
2635
|
return ret;
|
|
2611
2636
|
}
|
|
2612
2637
|
/**
|
|
@@ -2618,7 +2643,7 @@ export class Ship {
|
|
|
2618
2643
|
/**
|
|
2619
2644
|
*/
|
|
2620
2645
|
get fuel() {
|
|
2621
|
-
|
|
2646
|
+
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2622
2647
|
return ret;
|
|
2623
2648
|
}
|
|
2624
2649
|
/**
|
|
@@ -2630,130 +2655,130 @@ export class Ship {
|
|
|
2630
2655
|
/**
|
|
2631
2656
|
*/
|
|
2632
2657
|
get ship_type() {
|
|
2633
|
-
|
|
2658
|
+
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2634
2659
|
return takeObject(ret);
|
|
2635
2660
|
}
|
|
2636
2661
|
/**
|
|
2637
|
-
* @param {
|
|
2662
|
+
* @param {ShipType} arg0
|
|
2638
2663
|
*/
|
|
2639
2664
|
set ship_type(arg0) {
|
|
2640
2665
|
wasm.__wbg_set_ship_ship_type(this.ptr, addHeapObject(arg0));
|
|
2641
2666
|
}
|
|
2642
2667
|
/**
|
|
2643
2668
|
*/
|
|
2644
|
-
get
|
|
2645
|
-
|
|
2646
|
-
return
|
|
2669
|
+
get ctype() {
|
|
2670
|
+
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2671
|
+
return ret;
|
|
2647
2672
|
}
|
|
2648
2673
|
/**
|
|
2649
|
-
* @param {
|
|
2674
|
+
* @param {number} arg0
|
|
2650
2675
|
*/
|
|
2651
|
-
set
|
|
2652
|
-
wasm.
|
|
2676
|
+
set ctype(arg0) {
|
|
2677
|
+
wasm.__wbg_set_ship_ctype(this.ptr, arg0);
|
|
2653
2678
|
}
|
|
2654
2679
|
/**
|
|
2655
2680
|
* @returns {number | undefined}
|
|
2656
2681
|
*/
|
|
2657
2682
|
get naked_firepower() {
|
|
2658
|
-
|
|
2683
|
+
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2659
2684
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2660
2685
|
}
|
|
2661
2686
|
/**
|
|
2662
2687
|
* @returns {number | undefined}
|
|
2663
2688
|
*/
|
|
2664
2689
|
get naked_torpedo() {
|
|
2665
|
-
|
|
2690
|
+
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2666
2691
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2667
2692
|
}
|
|
2668
2693
|
/**
|
|
2669
2694
|
* @returns {number | undefined}
|
|
2670
2695
|
*/
|
|
2671
2696
|
get naked_armor() {
|
|
2672
|
-
|
|
2697
|
+
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2673
2698
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2674
2699
|
}
|
|
2675
2700
|
/**
|
|
2676
2701
|
* @returns {number | undefined}
|
|
2677
2702
|
*/
|
|
2678
2703
|
get naked_anti_air() {
|
|
2679
|
-
|
|
2704
|
+
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2680
2705
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2681
2706
|
}
|
|
2682
2707
|
/**
|
|
2683
2708
|
* @returns {number | undefined}
|
|
2684
2709
|
*/
|
|
2685
2710
|
get naked_evasion() {
|
|
2686
|
-
|
|
2711
|
+
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2687
2712
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2688
2713
|
}
|
|
2689
2714
|
/**
|
|
2690
2715
|
* @returns {number | undefined}
|
|
2691
2716
|
*/
|
|
2692
2717
|
get naked_asw() {
|
|
2693
|
-
|
|
2718
|
+
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2694
2719
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2695
2720
|
}
|
|
2696
2721
|
/**
|
|
2697
2722
|
* @returns {number | undefined}
|
|
2698
2723
|
*/
|
|
2699
2724
|
get naked_los() {
|
|
2700
|
-
|
|
2725
|
+
const ret = wasm.ship_naked_los(this.ptr);
|
|
2701
2726
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2702
2727
|
}
|
|
2703
2728
|
/**
|
|
2704
2729
|
* @returns {number | undefined}
|
|
2705
2730
|
*/
|
|
2706
2731
|
get firepower() {
|
|
2707
|
-
|
|
2732
|
+
const ret = wasm.ship_firepower(this.ptr);
|
|
2708
2733
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2709
2734
|
}
|
|
2710
2735
|
/**
|
|
2711
2736
|
* @returns {number | undefined}
|
|
2712
2737
|
*/
|
|
2713
2738
|
get torpedo() {
|
|
2714
|
-
|
|
2739
|
+
const ret = wasm.ship_torpedo(this.ptr);
|
|
2715
2740
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2716
2741
|
}
|
|
2717
2742
|
/**
|
|
2718
2743
|
* @returns {number | undefined}
|
|
2719
2744
|
*/
|
|
2720
2745
|
get armor() {
|
|
2721
|
-
|
|
2746
|
+
const ret = wasm.ship_armor(this.ptr);
|
|
2722
2747
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2723
2748
|
}
|
|
2724
2749
|
/**
|
|
2725
2750
|
* @returns {number | undefined}
|
|
2726
2751
|
*/
|
|
2727
2752
|
get anti_air() {
|
|
2728
|
-
|
|
2753
|
+
const ret = wasm.ship_anti_air(this.ptr);
|
|
2729
2754
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2730
2755
|
}
|
|
2731
2756
|
/**
|
|
2732
2757
|
* @returns {number | undefined}
|
|
2733
2758
|
*/
|
|
2734
2759
|
get evasion() {
|
|
2735
|
-
|
|
2760
|
+
const ret = wasm.ship_evasion(this.ptr);
|
|
2736
2761
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2737
2762
|
}
|
|
2738
2763
|
/**
|
|
2739
2764
|
* @returns {number | undefined}
|
|
2740
2765
|
*/
|
|
2741
2766
|
get asw() {
|
|
2742
|
-
|
|
2767
|
+
const ret = wasm.ship_asw(this.ptr);
|
|
2743
2768
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2744
2769
|
}
|
|
2745
2770
|
/**
|
|
2746
2771
|
* @returns {number | undefined}
|
|
2747
2772
|
*/
|
|
2748
2773
|
get los() {
|
|
2749
|
-
|
|
2774
|
+
const ret = wasm.ship_los(this.ptr);
|
|
2750
2775
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2751
2776
|
}
|
|
2752
2777
|
/**
|
|
2753
2778
|
* @returns {Ship}
|
|
2754
2779
|
*/
|
|
2755
2780
|
static default() {
|
|
2756
|
-
|
|
2781
|
+
const ret = wasm.ship_default();
|
|
2757
2782
|
return Ship.__wrap(ret);
|
|
2758
2783
|
}
|
|
2759
2784
|
/**
|
|
@@ -2761,23 +2786,23 @@ export class Ship {
|
|
|
2761
2786
|
* @returns {boolean}
|
|
2762
2787
|
*/
|
|
2763
2788
|
eq_id(id) {
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
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);
|
|
2767
2792
|
return ret !== 0;
|
|
2768
2793
|
}
|
|
2769
2794
|
/**
|
|
2770
|
-
* @returns {
|
|
2795
|
+
* @returns {ShipState}
|
|
2771
2796
|
*/
|
|
2772
2797
|
state() {
|
|
2773
|
-
|
|
2798
|
+
const ret = wasm.ship_state(this.ptr);
|
|
2774
2799
|
return takeObject(ret);
|
|
2775
2800
|
}
|
|
2776
2801
|
/**
|
|
2777
|
-
* @returns {
|
|
2802
|
+
* @returns {ShipMeta}
|
|
2778
2803
|
*/
|
|
2779
2804
|
meta() {
|
|
2780
|
-
|
|
2805
|
+
const ret = wasm.ship_meta(this.ptr);
|
|
2781
2806
|
return takeObject(ret);
|
|
2782
2807
|
}
|
|
2783
2808
|
/**
|
|
@@ -2813,86 +2838,79 @@ export class Ship {
|
|
|
2813
2838
|
/**
|
|
2814
2839
|
* @returns {number}
|
|
2815
2840
|
*/
|
|
2816
|
-
get ctype() {
|
|
2817
|
-
var ret = wasm.ship_ctype(this.ptr);
|
|
2818
|
-
return ret;
|
|
2819
|
-
}
|
|
2820
|
-
/**
|
|
2821
|
-
* @returns {number}
|
|
2822
|
-
*/
|
|
2823
2841
|
get stype() {
|
|
2824
|
-
|
|
2842
|
+
const ret = wasm.ship_stype(this.ptr);
|
|
2825
2843
|
return ret;
|
|
2826
2844
|
}
|
|
2827
2845
|
/**
|
|
2828
2846
|
* @returns {number}
|
|
2829
2847
|
*/
|
|
2830
2848
|
get sort_id() {
|
|
2831
|
-
|
|
2849
|
+
const ret = wasm.ship_sort_id(this.ptr);
|
|
2832
2850
|
return ret;
|
|
2833
2851
|
}
|
|
2834
2852
|
/**
|
|
2835
2853
|
* @returns {number}
|
|
2836
2854
|
*/
|
|
2837
2855
|
remodel_rank() {
|
|
2838
|
-
|
|
2856
|
+
const ret = wasm.ship_remodel_rank(this.ptr);
|
|
2839
2857
|
return ret;
|
|
2840
2858
|
}
|
|
2841
2859
|
/**
|
|
2842
2860
|
* @returns {number}
|
|
2843
2861
|
*/
|
|
2844
2862
|
get slotnum() {
|
|
2845
|
-
|
|
2863
|
+
const ret = wasm.ship_slotnum(this.ptr);
|
|
2846
2864
|
return ret >>> 0;
|
|
2847
2865
|
}
|
|
2848
2866
|
/**
|
|
2849
2867
|
* @returns {number}
|
|
2850
2868
|
*/
|
|
2851
2869
|
get next_id() {
|
|
2852
|
-
|
|
2870
|
+
const ret = wasm.ship_next_id(this.ptr);
|
|
2853
2871
|
return ret;
|
|
2854
2872
|
}
|
|
2855
2873
|
/**
|
|
2856
2874
|
* @returns {boolean}
|
|
2857
2875
|
*/
|
|
2858
2876
|
get useful() {
|
|
2859
|
-
|
|
2877
|
+
const ret = wasm.ship_useful(this.ptr);
|
|
2860
2878
|
return ret !== 0;
|
|
2861
2879
|
}
|
|
2862
2880
|
/**
|
|
2863
|
-
* @returns {
|
|
2881
|
+
* @returns {DamageState}
|
|
2864
2882
|
*/
|
|
2865
2883
|
damage_state() {
|
|
2866
|
-
|
|
2884
|
+
const ret = wasm.ship_damage_state(this.ptr);
|
|
2867
2885
|
return takeObject(ret);
|
|
2868
2886
|
}
|
|
2869
2887
|
/**
|
|
2870
|
-
* @returns {
|
|
2888
|
+
* @returns {MoraleState}
|
|
2871
2889
|
*/
|
|
2872
2890
|
morale_state() {
|
|
2873
|
-
|
|
2891
|
+
const ret = wasm.ship_morale_state(this.ptr);
|
|
2874
2892
|
return takeObject(ret);
|
|
2875
2893
|
}
|
|
2876
2894
|
/**
|
|
2877
|
-
* @returns {
|
|
2895
|
+
* @returns {ShipCategory}
|
|
2878
2896
|
*/
|
|
2879
2897
|
category() {
|
|
2880
|
-
|
|
2898
|
+
const ret = wasm.ship_category(this.ptr);
|
|
2881
2899
|
return takeObject(ret);
|
|
2882
2900
|
}
|
|
2883
2901
|
/**
|
|
2884
|
-
* @param {
|
|
2902
|
+
* @param {ShipAttr} attr
|
|
2885
2903
|
* @returns {boolean}
|
|
2886
2904
|
*/
|
|
2887
2905
|
has_attr(attr) {
|
|
2888
|
-
|
|
2906
|
+
const ret = wasm.ship_has_attr(this.ptr, addHeapObject(attr));
|
|
2889
2907
|
return ret !== 0;
|
|
2890
2908
|
}
|
|
2891
2909
|
/**
|
|
2892
2910
|
* @returns {any}
|
|
2893
2911
|
*/
|
|
2894
2912
|
gear_keys() {
|
|
2895
|
-
|
|
2913
|
+
const ret = wasm.ship_gear_keys(this.ptr);
|
|
2896
2914
|
return takeObject(ret);
|
|
2897
2915
|
}
|
|
2898
2916
|
/**
|
|
@@ -2900,17 +2918,17 @@ export class Ship {
|
|
|
2900
2918
|
* @returns {Gear | undefined}
|
|
2901
2919
|
*/
|
|
2902
2920
|
get_gear(key) {
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
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);
|
|
2906
2924
|
return ret === 0 ? undefined : Gear.__wrap(ret);
|
|
2907
2925
|
}
|
|
2908
2926
|
/**
|
|
2909
|
-
* @param {
|
|
2927
|
+
* @param {DamageState} state
|
|
2910
2928
|
* @returns {number | undefined}
|
|
2911
2929
|
*/
|
|
2912
2930
|
get_damage_bound(state) {
|
|
2913
|
-
|
|
2931
|
+
const ret = wasm.ship_get_damage_bound(this.ptr, addHeapObject(state));
|
|
2914
2932
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2915
2933
|
}
|
|
2916
2934
|
/**
|
|
@@ -2919,7 +2937,7 @@ export class Ship {
|
|
|
2919
2937
|
* @returns {number}
|
|
2920
2938
|
*/
|
|
2921
2939
|
get_remaining_fuel(rate, ceil) {
|
|
2922
|
-
|
|
2940
|
+
const ret = wasm.ship_get_remaining_fuel(this.ptr, rate, ceil);
|
|
2923
2941
|
return ret;
|
|
2924
2942
|
}
|
|
2925
2943
|
/**
|
|
@@ -2928,7 +2946,7 @@ export class Ship {
|
|
|
2928
2946
|
* @returns {number}
|
|
2929
2947
|
*/
|
|
2930
2948
|
get_remaining_ammo(rate, ceil) {
|
|
2931
|
-
|
|
2949
|
+
const ret = wasm.ship_get_remaining_ammo(this.ptr, rate, ceil);
|
|
2932
2950
|
return ret;
|
|
2933
2951
|
}
|
|
2934
2952
|
/**
|
|
@@ -2936,9 +2954,9 @@ export class Ship {
|
|
|
2936
2954
|
* @returns {boolean}
|
|
2937
2955
|
*/
|
|
2938
2956
|
has_unknown_stat(key) {
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
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);
|
|
2942
2960
|
return ret !== 0;
|
|
2943
2961
|
}
|
|
2944
2962
|
/**
|
|
@@ -2946,9 +2964,9 @@ export class Ship {
|
|
|
2946
2964
|
* @returns {number | undefined}
|
|
2947
2965
|
*/
|
|
2948
2966
|
get_naked_stat(key) {
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
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);
|
|
2952
2970
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2953
2971
|
}
|
|
2954
2972
|
/**
|
|
@@ -2956,9 +2974,9 @@ export class Ship {
|
|
|
2956
2974
|
* @returns {number | undefined}
|
|
2957
2975
|
*/
|
|
2958
2976
|
get_stat_interval_left(key) {
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
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);
|
|
2962
2980
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2963
2981
|
}
|
|
2964
2982
|
/**
|
|
@@ -2966,9 +2984,9 @@ export class Ship {
|
|
|
2966
2984
|
* @returns {number | undefined}
|
|
2967
2985
|
*/
|
|
2968
2986
|
get_stat_interval_right(key) {
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
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);
|
|
2972
2990
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2973
2991
|
}
|
|
2974
2992
|
/**
|
|
@@ -2976,9 +2994,9 @@ export class Ship {
|
|
|
2976
2994
|
* @returns {number}
|
|
2977
2995
|
*/
|
|
2978
2996
|
get_gear_stat(key) {
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
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);
|
|
2982
3000
|
return ret;
|
|
2983
3001
|
}
|
|
2984
3002
|
/**
|
|
@@ -2986,9 +3004,9 @@ export class Ship {
|
|
|
2986
3004
|
* @returns {number}
|
|
2987
3005
|
*/
|
|
2988
3006
|
get_ebonus(key) {
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
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);
|
|
2992
3010
|
return ret;
|
|
2993
3011
|
}
|
|
2994
3012
|
/**
|
|
@@ -2996,23 +3014,23 @@ export class Ship {
|
|
|
2996
3014
|
* @returns {number | undefined}
|
|
2997
3015
|
*/
|
|
2998
3016
|
get_stat_mod(key) {
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
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);
|
|
3002
3020
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3003
3021
|
}
|
|
3004
3022
|
/**
|
|
3005
3023
|
* @returns {boolean}
|
|
3006
3024
|
*/
|
|
3007
3025
|
is_abyssal() {
|
|
3008
|
-
|
|
3026
|
+
const ret = wasm.ship_is_abyssal(this.ptr);
|
|
3009
3027
|
return ret !== 0;
|
|
3010
3028
|
}
|
|
3011
3029
|
/**
|
|
3012
3030
|
* @returns {boolean}
|
|
3013
3031
|
*/
|
|
3014
3032
|
is_submarine() {
|
|
3015
|
-
|
|
3033
|
+
const ret = wasm.ship_is_submarine(this.ptr);
|
|
3016
3034
|
return ret !== 0;
|
|
3017
3035
|
}
|
|
3018
3036
|
/**
|
|
@@ -3022,79 +3040,79 @@ export class Ship {
|
|
|
3022
3040
|
*/
|
|
3023
3041
|
can_equip(gear, key) {
|
|
3024
3042
|
_assertClass(gear, Gear);
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
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);
|
|
3028
3046
|
return ret !== 0;
|
|
3029
3047
|
}
|
|
3030
3048
|
/**
|
|
3031
3049
|
* @returns {number | undefined}
|
|
3032
3050
|
*/
|
|
3033
3051
|
get max_hp() {
|
|
3034
|
-
|
|
3052
|
+
const ret = wasm.ship_max_hp(this.ptr);
|
|
3035
3053
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3036
3054
|
}
|
|
3037
3055
|
/**
|
|
3038
3056
|
* @returns {number}
|
|
3039
3057
|
*/
|
|
3040
3058
|
get max_ammo() {
|
|
3041
|
-
|
|
3059
|
+
const ret = wasm.ship_max_ammo(this.ptr);
|
|
3042
3060
|
return ret;
|
|
3043
3061
|
}
|
|
3044
3062
|
/**
|
|
3045
3063
|
* @returns {number}
|
|
3046
3064
|
*/
|
|
3047
3065
|
get max_fuel() {
|
|
3048
|
-
|
|
3066
|
+
const ret = wasm.ship_max_fuel(this.ptr);
|
|
3049
3067
|
return ret;
|
|
3050
3068
|
}
|
|
3051
3069
|
/**
|
|
3052
3070
|
* @returns {number | undefined}
|
|
3053
3071
|
*/
|
|
3054
3072
|
get naked_range() {
|
|
3055
|
-
|
|
3073
|
+
const ret = wasm.ship_naked_range(this.ptr);
|
|
3056
3074
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3057
3075
|
}
|
|
3058
3076
|
/**
|
|
3059
3077
|
* @returns {number}
|
|
3060
3078
|
*/
|
|
3061
3079
|
get naked_speed() {
|
|
3062
|
-
|
|
3080
|
+
const ret = wasm.ship_naked_speed(this.ptr);
|
|
3063
3081
|
return ret;
|
|
3064
3082
|
}
|
|
3065
3083
|
/**
|
|
3066
3084
|
* @returns {number | undefined}
|
|
3067
3085
|
*/
|
|
3068
3086
|
get luck() {
|
|
3069
|
-
|
|
3087
|
+
const ret = wasm.ship_luck(this.ptr);
|
|
3070
3088
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3071
3089
|
}
|
|
3072
3090
|
/**
|
|
3073
3091
|
* @returns {number | undefined}
|
|
3074
3092
|
*/
|
|
3075
3093
|
get range() {
|
|
3076
|
-
|
|
3094
|
+
const ret = wasm.ship_range(this.ptr);
|
|
3077
3095
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3078
3096
|
}
|
|
3079
3097
|
/**
|
|
3080
3098
|
* @returns {number}
|
|
3081
3099
|
*/
|
|
3082
3100
|
get speed() {
|
|
3083
|
-
|
|
3101
|
+
const ret = wasm.ship_speed(this.ptr);
|
|
3084
3102
|
return ret;
|
|
3085
3103
|
}
|
|
3086
3104
|
/**
|
|
3087
3105
|
* @returns {number}
|
|
3088
3106
|
*/
|
|
3089
3107
|
get accuracy() {
|
|
3090
|
-
|
|
3108
|
+
const ret = wasm.ship_accuracy(this.ptr);
|
|
3091
3109
|
return ret;
|
|
3092
3110
|
}
|
|
3093
3111
|
/**
|
|
3094
3112
|
* @returns {boolean}
|
|
3095
3113
|
*/
|
|
3096
3114
|
is_installation() {
|
|
3097
|
-
|
|
3115
|
+
const ret = wasm.ship_is_installation(this.ptr);
|
|
3098
3116
|
return ret !== 0;
|
|
3099
3117
|
}
|
|
3100
3118
|
/**
|
|
@@ -3102,7 +3120,7 @@ export class Ship {
|
|
|
3102
3120
|
* @returns {number | undefined}
|
|
3103
3121
|
*/
|
|
3104
3122
|
get_slot_size(index) {
|
|
3105
|
-
|
|
3123
|
+
const ret = wasm.ship_get_slot_size(this.ptr, index);
|
|
3106
3124
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3107
3125
|
}
|
|
3108
3126
|
/**
|
|
@@ -3110,25 +3128,25 @@ export class Ship {
|
|
|
3110
3128
|
* @returns {number | undefined}
|
|
3111
3129
|
*/
|
|
3112
3130
|
get_max_slot_size(index) {
|
|
3113
|
-
|
|
3131
|
+
const ret = wasm.ship_get_max_slot_size(this.ptr, index);
|
|
3114
3132
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3115
3133
|
}
|
|
3116
3134
|
/**
|
|
3117
3135
|
* @returns {number}
|
|
3118
3136
|
*/
|
|
3119
3137
|
remaining_ammo_mod() {
|
|
3120
|
-
|
|
3138
|
+
const ret = wasm.ship_remaining_ammo_mod(this.ptr);
|
|
3121
3139
|
return ret;
|
|
3122
3140
|
}
|
|
3123
3141
|
/**
|
|
3124
3142
|
* @returns {number}
|
|
3125
3143
|
*/
|
|
3126
3144
|
remaining_fuel_mod() {
|
|
3127
|
-
|
|
3145
|
+
const ret = wasm.ship_remaining_fuel_mod(this.ptr);
|
|
3128
3146
|
return ret;
|
|
3129
3147
|
}
|
|
3130
3148
|
/**
|
|
3131
|
-
* @param {
|
|
3149
|
+
* @param {AirWaveType} air_type
|
|
3132
3150
|
* @returns {number | undefined}
|
|
3133
3151
|
*/
|
|
3134
3152
|
fighter_power(air_type) {
|
|
@@ -3160,14 +3178,14 @@ export class Ship {
|
|
|
3160
3178
|
* @returns {number}
|
|
3161
3179
|
*/
|
|
3162
3180
|
fleet_anti_air() {
|
|
3163
|
-
|
|
3181
|
+
const ret = wasm.ship_fleet_anti_air(this.ptr);
|
|
3164
3182
|
return ret;
|
|
3165
3183
|
}
|
|
3166
3184
|
/**
|
|
3167
3185
|
* @returns {number}
|
|
3168
3186
|
*/
|
|
3169
3187
|
cruiser_fit_bonus() {
|
|
3170
|
-
|
|
3188
|
+
const ret = wasm.ship_cruiser_fit_bonus(this.ptr);
|
|
3171
3189
|
return ret;
|
|
3172
3190
|
}
|
|
3173
3191
|
/**
|
|
@@ -3175,7 +3193,7 @@ export class Ship {
|
|
|
3175
3193
|
* @returns {number}
|
|
3176
3194
|
*/
|
|
3177
3195
|
fit_gun_bonus(is_night) {
|
|
3178
|
-
|
|
3196
|
+
const ret = wasm.ship_fit_gun_bonus(this.ptr, is_night);
|
|
3179
3197
|
return ret;
|
|
3180
3198
|
}
|
|
3181
3199
|
/**
|
|
@@ -3239,26 +3257,10 @@ export class Ship {
|
|
|
3239
3257
|
}
|
|
3240
3258
|
}
|
|
3241
3259
|
/**
|
|
3242
|
-
* @returns {Uint8Array}
|
|
3243
|
-
*/
|
|
3244
|
-
get_possible_anti_air_cutin_ids() {
|
|
3245
|
-
try {
|
|
3246
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3247
|
-
wasm.ship_get_possible_anti_air_cutin_ids(retptr, this.ptr);
|
|
3248
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3249
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
3250
|
-
var v0 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3251
|
-
wasm.__wbindgen_free(r0, r1 * 1);
|
|
3252
|
-
return v0;
|
|
3253
|
-
} finally {
|
|
3254
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3255
|
-
}
|
|
3256
|
-
}
|
|
3257
|
-
/**
|
|
3258
3260
|
* @returns {number}
|
|
3259
3261
|
*/
|
|
3260
3262
|
transport_point() {
|
|
3261
|
-
|
|
3263
|
+
const ret = wasm.ship_transport_point(this.ptr);
|
|
3262
3264
|
return ret;
|
|
3263
3265
|
}
|
|
3264
3266
|
/**
|
|
@@ -3284,42 +3286,42 @@ export class Ship {
|
|
|
3284
3286
|
}
|
|
3285
3287
|
}
|
|
3286
3288
|
|
|
3287
|
-
export function
|
|
3288
|
-
const
|
|
3289
|
-
|
|
3290
|
-
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3291
|
-
var len0 = WASM_VECTOR_LEN;
|
|
3292
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3293
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3289
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
3290
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3291
|
+
return addHeapObject(ret);
|
|
3294
3292
|
};
|
|
3295
3293
|
|
|
3296
3294
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
3297
3295
|
takeObject(arg0);
|
|
3298
3296
|
};
|
|
3299
3297
|
|
|
3300
|
-
export function
|
|
3301
|
-
|
|
3302
|
-
|
|
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;
|
|
3303
3305
|
};
|
|
3304
3306
|
|
|
3305
3307
|
export function __wbindgen_json_parse(arg0, arg1) {
|
|
3306
|
-
|
|
3308
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3307
3309
|
return addHeapObject(ret);
|
|
3308
3310
|
};
|
|
3309
3311
|
|
|
3310
|
-
export function
|
|
3312
|
+
export function __wbg_error_8ff19d586a987aef(arg0) {
|
|
3311
3313
|
console.error(getObject(arg0));
|
|
3312
3314
|
};
|
|
3313
3315
|
|
|
3314
3316
|
export function __wbg_new_693216e109162396() {
|
|
3315
|
-
|
|
3317
|
+
const ret = new Error();
|
|
3316
3318
|
return addHeapObject(ret);
|
|
3317
3319
|
};
|
|
3318
3320
|
|
|
3319
3321
|
export function __wbg_stack_0ddaca5d1abfb52f(arg0, arg1) {
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3322
|
+
const ret = getObject(arg1).stack;
|
|
3323
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3324
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3323
3325
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3324
3326
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3325
3327
|
};
|
|
@@ -3332,138 +3334,138 @@ export function __wbg_error_09919627ac0992f5(arg0, arg1) {
|
|
|
3332
3334
|
}
|
|
3333
3335
|
};
|
|
3334
3336
|
|
|
3335
|
-
export function
|
|
3337
|
+
export function __wbg_randomFillSync_654a7797990fb8db() { return handleError(function (arg0, arg1, arg2) {
|
|
3336
3338
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
3337
3339
|
}, arguments) };
|
|
3338
3340
|
|
|
3339
|
-
export function
|
|
3341
|
+
export function __wbg_getRandomValues_fb6b088efb6bead2() { return handleError(function (arg0, arg1) {
|
|
3340
3342
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
3341
3343
|
}, arguments) };
|
|
3342
3344
|
|
|
3343
|
-
export function
|
|
3344
|
-
|
|
3345
|
+
export function __wbg_process_70251ed1291754d5(arg0) {
|
|
3346
|
+
const ret = getObject(arg0).process;
|
|
3345
3347
|
return addHeapObject(ret);
|
|
3346
3348
|
};
|
|
3347
3349
|
|
|
3348
3350
|
export function __wbindgen_is_object(arg0) {
|
|
3349
3351
|
const val = getObject(arg0);
|
|
3350
|
-
|
|
3352
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3351
3353
|
return ret;
|
|
3352
3354
|
};
|
|
3353
3355
|
|
|
3354
|
-
export function
|
|
3355
|
-
|
|
3356
|
+
export function __wbg_versions_b23f2588cdb2ddbb(arg0) {
|
|
3357
|
+
const ret = getObject(arg0).versions;
|
|
3356
3358
|
return addHeapObject(ret);
|
|
3357
3359
|
};
|
|
3358
3360
|
|
|
3359
|
-
export function
|
|
3360
|
-
|
|
3361
|
+
export function __wbg_node_61b8c9a82499895d(arg0) {
|
|
3362
|
+
const ret = getObject(arg0).node;
|
|
3361
3363
|
return addHeapObject(ret);
|
|
3362
3364
|
};
|
|
3363
3365
|
|
|
3364
3366
|
export function __wbindgen_is_string(arg0) {
|
|
3365
|
-
|
|
3367
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
3366
3368
|
return ret;
|
|
3367
3369
|
};
|
|
3368
3370
|
|
|
3369
|
-
export function
|
|
3370
|
-
|
|
3371
|
+
export function __wbg_static_accessor_NODE_MODULE_33b45247c55045b0() {
|
|
3372
|
+
const ret = module;
|
|
3371
3373
|
return addHeapObject(ret);
|
|
3372
3374
|
};
|
|
3373
3375
|
|
|
3374
|
-
export function
|
|
3375
|
-
|
|
3376
|
+
export function __wbg_require_2a93bc09fee45aca() { return handleError(function (arg0, arg1, arg2) {
|
|
3377
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
|
3376
3378
|
return addHeapObject(ret);
|
|
3377
3379
|
}, arguments) };
|
|
3378
3380
|
|
|
3379
|
-
export function
|
|
3380
|
-
|
|
3381
|
+
export function __wbg_crypto_2f56257a38275dbd(arg0) {
|
|
3382
|
+
const ret = getObject(arg0).crypto;
|
|
3381
3383
|
return addHeapObject(ret);
|
|
3382
3384
|
};
|
|
3383
3385
|
|
|
3384
|
-
export function
|
|
3385
|
-
|
|
3386
|
+
export function __wbg_msCrypto_d07655bf62361f21(arg0) {
|
|
3387
|
+
const ret = getObject(arg0).msCrypto;
|
|
3386
3388
|
return addHeapObject(ret);
|
|
3387
3389
|
};
|
|
3388
3390
|
|
|
3389
|
-
export function
|
|
3390
|
-
|
|
3391
|
+
export function __wbg_newnoargs_e23b458e372830de(arg0, arg1) {
|
|
3392
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3391
3393
|
return addHeapObject(ret);
|
|
3392
3394
|
};
|
|
3393
3395
|
|
|
3394
|
-
export function
|
|
3395
|
-
|
|
3396
|
+
export function __wbg_call_ae78342adc33730a() { return handleError(function (arg0, arg1) {
|
|
3397
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
3396
3398
|
return addHeapObject(ret);
|
|
3397
3399
|
}, arguments) };
|
|
3398
3400
|
|
|
3399
3401
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
3400
|
-
|
|
3402
|
+
const ret = getObject(arg0);
|
|
3401
3403
|
return addHeapObject(ret);
|
|
3402
3404
|
};
|
|
3403
3405
|
|
|
3404
|
-
export function
|
|
3405
|
-
|
|
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));
|
|
3406
3408
|
return addHeapObject(ret);
|
|
3407
3409
|
}, arguments) };
|
|
3408
3410
|
|
|
3409
|
-
export function
|
|
3410
|
-
|
|
3411
|
+
export function __wbg_self_99737b4dcdf6f0d8() { return handleError(function () {
|
|
3412
|
+
const ret = self.self;
|
|
3411
3413
|
return addHeapObject(ret);
|
|
3412
3414
|
}, arguments) };
|
|
3413
3415
|
|
|
3414
|
-
export function
|
|
3415
|
-
|
|
3416
|
+
export function __wbg_window_9b61fbbf3564c4fb() { return handleError(function () {
|
|
3417
|
+
const ret = window.window;
|
|
3416
3418
|
return addHeapObject(ret);
|
|
3417
3419
|
}, arguments) };
|
|
3418
3420
|
|
|
3419
|
-
export function
|
|
3420
|
-
|
|
3421
|
+
export function __wbg_globalThis_8e275ef40caea3a3() { return handleError(function () {
|
|
3422
|
+
const ret = globalThis.globalThis;
|
|
3421
3423
|
return addHeapObject(ret);
|
|
3422
3424
|
}, arguments) };
|
|
3423
3425
|
|
|
3424
|
-
export function
|
|
3425
|
-
|
|
3426
|
+
export function __wbg_global_5de1e0f82bddcd27() { return handleError(function () {
|
|
3427
|
+
const ret = global.global;
|
|
3426
3428
|
return addHeapObject(ret);
|
|
3427
3429
|
}, arguments) };
|
|
3428
3430
|
|
|
3429
3431
|
export function __wbindgen_is_undefined(arg0) {
|
|
3430
|
-
|
|
3432
|
+
const ret = getObject(arg0) === undefined;
|
|
3431
3433
|
return ret;
|
|
3432
3434
|
};
|
|
3433
3435
|
|
|
3434
|
-
export function
|
|
3435
|
-
|
|
3436
|
+
export function __wbg_buffer_7af23f65f6c64548(arg0) {
|
|
3437
|
+
const ret = getObject(arg0).buffer;
|
|
3436
3438
|
return addHeapObject(ret);
|
|
3437
3439
|
};
|
|
3438
3440
|
|
|
3439
|
-
export function
|
|
3440
|
-
|
|
3441
|
+
export function __wbg_new_cc9018bd6f283b6f(arg0) {
|
|
3442
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
3441
3443
|
return addHeapObject(ret);
|
|
3442
3444
|
};
|
|
3443
3445
|
|
|
3444
|
-
export function
|
|
3446
|
+
export function __wbg_set_f25e869e4565d2a2(arg0, arg1, arg2) {
|
|
3445
3447
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3446
3448
|
};
|
|
3447
3449
|
|
|
3448
|
-
export function
|
|
3449
|
-
|
|
3450
|
+
export function __wbg_length_0acb1cf9bbaf8519(arg0) {
|
|
3451
|
+
const ret = getObject(arg0).length;
|
|
3450
3452
|
return ret;
|
|
3451
3453
|
};
|
|
3452
3454
|
|
|
3453
|
-
export function
|
|
3454
|
-
|
|
3455
|
+
export function __wbg_newwithlength_8f0657faca9f1422(arg0) {
|
|
3456
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3455
3457
|
return addHeapObject(ret);
|
|
3456
3458
|
};
|
|
3457
3459
|
|
|
3458
|
-
export function
|
|
3459
|
-
|
|
3460
|
+
export function __wbg_subarray_da527dbd24eafb6b(arg0, arg1, arg2) {
|
|
3461
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3460
3462
|
return addHeapObject(ret);
|
|
3461
3463
|
};
|
|
3462
3464
|
|
|
3463
3465
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3466
|
+
const ret = debugString(getObject(arg1));
|
|
3467
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3468
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3467
3469
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
3468
3470
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3469
3471
|
};
|
|
@@ -3473,7 +3475,7 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
3473
3475
|
};
|
|
3474
3476
|
|
|
3475
3477
|
export function __wbindgen_memory() {
|
|
3476
|
-
|
|
3478
|
+
const ret = wasm.memory;
|
|
3477
3479
|
return addHeapObject(ret);
|
|
3478
3480
|
};
|
|
3479
3481
|
|