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