fleethub-core 1.7.9 → 1.8.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 +1028 -902
- package/node/fleethub_core.js +336 -409
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +126 -168
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +1028 -902
- package/pkg/fleethub_core_bg.js +336 -409
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +126 -168
package/node/fleethub_core.js
CHANGED
|
@@ -2,54 +2,24 @@ let imports = {};
|
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
4
|
const { createEquipmentBonuses } = require(`equipment-bonus`);
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
|
-
|
|
9
|
-
cachedTextDecoder.decode();
|
|
10
|
-
|
|
11
|
-
let cachedUint8Memory0;
|
|
12
|
-
function getUint8Memory0() {
|
|
13
|
-
if (cachedUint8Memory0.byteLength === 0) {
|
|
14
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
15
|
-
}
|
|
16
|
-
return cachedUint8Memory0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function getStringFromWasm0(ptr, len) {
|
|
20
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
|
-
}
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
22
6
|
|
|
23
7
|
const heap = new Array(32).fill(undefined);
|
|
24
8
|
|
|
25
9
|
heap.push(undefined, null, true, false);
|
|
26
10
|
|
|
27
|
-
let heap_next = heap.length;
|
|
28
|
-
|
|
29
|
-
function addHeapObject(obj) {
|
|
30
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
31
|
-
const idx = heap_next;
|
|
32
|
-
heap_next = heap[idx];
|
|
33
|
-
|
|
34
|
-
heap[idx] = obj;
|
|
35
|
-
return idx;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
11
|
function getObject(idx) { return heap[idx]; }
|
|
39
12
|
|
|
40
|
-
|
|
41
|
-
if (idx < 36) return;
|
|
42
|
-
heap[idx] = heap_next;
|
|
43
|
-
heap_next = idx;
|
|
44
|
-
}
|
|
13
|
+
let WASM_VECTOR_LEN = 0;
|
|
45
14
|
|
|
46
|
-
|
|
47
|
-
const ret = getObject(idx);
|
|
48
|
-
dropObject(idx);
|
|
49
|
-
return ret;
|
|
50
|
-
}
|
|
15
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
51
16
|
|
|
52
|
-
|
|
17
|
+
function getUint8Memory0() {
|
|
18
|
+
if (cachedUint8Memory0.byteLength === 0) {
|
|
19
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
20
|
+
}
|
|
21
|
+
return cachedUint8Memory0;
|
|
22
|
+
}
|
|
53
23
|
|
|
54
24
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
55
25
|
|
|
@@ -104,7 +74,8 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
104
74
|
return ptr;
|
|
105
75
|
}
|
|
106
76
|
|
|
107
|
-
let cachedInt32Memory0;
|
|
77
|
+
let cachedInt32Memory0 = new Int32Array();
|
|
78
|
+
|
|
108
79
|
function getInt32Memory0() {
|
|
109
80
|
if (cachedInt32Memory0.byteLength === 0) {
|
|
110
81
|
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
@@ -112,9 +83,44 @@ function getInt32Memory0() {
|
|
|
112
83
|
return cachedInt32Memory0;
|
|
113
84
|
}
|
|
114
85
|
|
|
115
|
-
|
|
86
|
+
let heap_next = heap.length;
|
|
116
87
|
|
|
117
|
-
|
|
88
|
+
function dropObject(idx) {
|
|
89
|
+
if (idx < 36) return;
|
|
90
|
+
heap[idx] = heap_next;
|
|
91
|
+
heap_next = idx;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function takeObject(idx) {
|
|
95
|
+
const ret = getObject(idx);
|
|
96
|
+
dropObject(idx);
|
|
97
|
+
return ret;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
101
|
+
|
|
102
|
+
cachedTextDecoder.decode();
|
|
103
|
+
|
|
104
|
+
function getStringFromWasm0(ptr, len) {
|
|
105
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function addHeapObject(obj) {
|
|
109
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
110
|
+
const idx = heap_next;
|
|
111
|
+
heap_next = heap[idx];
|
|
112
|
+
|
|
113
|
+
heap[idx] = obj;
|
|
114
|
+
return idx;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param {ShipConditions} value
|
|
118
|
+
* @returns {ShipConditions}
|
|
119
|
+
*/
|
|
120
|
+
module.exports.parse_ship_conditions = function(value) {
|
|
121
|
+
const ret = wasm.parse_ship_conditions(addHeapObject(value));
|
|
122
|
+
return takeObject(ret);
|
|
123
|
+
};
|
|
118
124
|
|
|
119
125
|
function _assertClass(instance, klass) {
|
|
120
126
|
if (!(instance instanceof klass)) {
|
|
@@ -123,7 +129,12 @@ function _assertClass(instance, klass) {
|
|
|
123
129
|
return instance.ptr;
|
|
124
130
|
}
|
|
125
131
|
|
|
126
|
-
|
|
132
|
+
const u32CvtShim = new Uint32Array(2);
|
|
133
|
+
|
|
134
|
+
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
|
135
|
+
|
|
136
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
137
|
+
|
|
127
138
|
function getFloat64Memory0() {
|
|
128
139
|
if (cachedFloat64Memory0.byteLength === 0) {
|
|
129
140
|
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
@@ -131,11 +142,23 @@ function getFloat64Memory0() {
|
|
|
131
142
|
return cachedFloat64Memory0;
|
|
132
143
|
}
|
|
133
144
|
|
|
145
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
146
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
150
|
+
const ptr = malloc(arg.length * 1);
|
|
151
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
152
|
+
WASM_VECTOR_LEN = arg.length;
|
|
153
|
+
return ptr;
|
|
154
|
+
}
|
|
155
|
+
|
|
134
156
|
function isLikeNone(x) {
|
|
135
157
|
return x === undefined || x === null;
|
|
136
158
|
}
|
|
137
159
|
|
|
138
|
-
let cachedUint32Memory0;
|
|
160
|
+
let cachedUint32Memory0 = new Uint32Array();
|
|
161
|
+
|
|
139
162
|
function getUint32Memory0() {
|
|
140
163
|
if (cachedUint32Memory0.byteLength === 0) {
|
|
141
164
|
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
@@ -153,7 +176,8 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
153
176
|
return result;
|
|
154
177
|
}
|
|
155
178
|
|
|
156
|
-
let cachedUint16Memory0;
|
|
179
|
+
let cachedUint16Memory0 = new Uint16Array();
|
|
180
|
+
|
|
157
181
|
function getUint16Memory0() {
|
|
158
182
|
if (cachedUint16Memory0.byteLength === 0) {
|
|
159
183
|
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
@@ -164,26 +188,15 @@ function getUint16Memory0() {
|
|
|
164
188
|
function getArrayU16FromWasm0(ptr, len) {
|
|
165
189
|
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
|
|
166
190
|
}
|
|
167
|
-
|
|
168
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
169
|
-
const ptr = malloc(arg.length * 2);
|
|
170
|
-
getUint16Memory0().set(arg, ptr / 2);
|
|
171
|
-
WASM_VECTOR_LEN = arg.length;
|
|
172
|
-
return ptr;
|
|
173
|
-
}
|
|
174
191
|
/**
|
|
175
192
|
*/
|
|
176
193
|
module.exports.set_panic_hook = function() {
|
|
177
194
|
wasm.set_panic_hook();
|
|
178
195
|
};
|
|
179
196
|
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
185
|
-
const ptr = malloc(arg.length * 1);
|
|
186
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
197
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
198
|
+
const ptr = malloc(arg.length * 2);
|
|
199
|
+
getUint16Memory0().set(arg, ptr / 2);
|
|
187
200
|
WASM_VECTOR_LEN = arg.length;
|
|
188
201
|
return ptr;
|
|
189
202
|
}
|
|
@@ -220,6 +233,7 @@ class AirSquadron {
|
|
|
220
233
|
wasm.__wbg_airsquadron_free(ptr);
|
|
221
234
|
}
|
|
222
235
|
/**
|
|
236
|
+
* @returns {string}
|
|
223
237
|
*/
|
|
224
238
|
get id() {
|
|
225
239
|
try {
|
|
@@ -234,6 +248,7 @@ class AirSquadron {
|
|
|
234
248
|
}
|
|
235
249
|
}
|
|
236
250
|
/**
|
|
251
|
+
* @param {string} arg0
|
|
237
252
|
*/
|
|
238
253
|
set id(arg0) {
|
|
239
254
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -241,11 +256,12 @@ class AirSquadron {
|
|
|
241
256
|
wasm.__wbg_set_airsquadron_id(this.ptr, ptr0, len0);
|
|
242
257
|
}
|
|
243
258
|
/**
|
|
259
|
+
* @returns {bigint}
|
|
244
260
|
*/
|
|
245
|
-
get
|
|
261
|
+
get hash() {
|
|
246
262
|
try {
|
|
247
263
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
248
|
-
wasm.
|
|
264
|
+
wasm.__wbg_get_airsquadron_hash(retptr, this.ptr);
|
|
249
265
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
250
266
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
251
267
|
u32CvtShim[0] = r0;
|
|
@@ -257,20 +273,23 @@ class AirSquadron {
|
|
|
257
273
|
}
|
|
258
274
|
}
|
|
259
275
|
/**
|
|
276
|
+
* @param {bigint} arg0
|
|
260
277
|
*/
|
|
261
|
-
set
|
|
278
|
+
set hash(arg0) {
|
|
262
279
|
uint64CvtShim[0] = arg0;
|
|
263
280
|
const low0 = u32CvtShim[0];
|
|
264
281
|
const high0 = u32CvtShim[1];
|
|
265
|
-
wasm.
|
|
282
|
+
wasm.__wbg_set_airsquadron_hash(this.ptr, low0, high0);
|
|
266
283
|
}
|
|
267
284
|
/**
|
|
285
|
+
* @returns {AirSquadronMode}
|
|
268
286
|
*/
|
|
269
287
|
get mode() {
|
|
270
288
|
const ret = wasm.__wbg_get_airsquadron_mode(this.ptr);
|
|
271
289
|
return takeObject(ret);
|
|
272
290
|
}
|
|
273
291
|
/**
|
|
292
|
+
* @param {AirSquadronMode} arg0
|
|
274
293
|
*/
|
|
275
294
|
set mode(arg0) {
|
|
276
295
|
wasm.__wbg_set_airsquadron_mode(this.ptr, addHeapObject(arg0));
|
|
@@ -372,68 +391,79 @@ class Analyzer {
|
|
|
372
391
|
wasm.__wbg_analyzer_free(ptr);
|
|
373
392
|
}
|
|
374
393
|
/**
|
|
375
|
-
* @param {
|
|
376
|
-
* @param {
|
|
377
|
-
* @param {
|
|
378
|
-
* @
|
|
379
|
-
* @param {number | undefined} aaci
|
|
380
|
-
* @returns {CompAntiAirInfo}
|
|
394
|
+
* @param {AttackAnalyzerConfig} config
|
|
395
|
+
* @param {Ship} attacker
|
|
396
|
+
* @param {Ship} target
|
|
397
|
+
* @returns {AttackAnalysis}
|
|
381
398
|
*/
|
|
382
|
-
|
|
383
|
-
_assertClass(
|
|
384
|
-
|
|
399
|
+
analyze_attack(config, attacker, target) {
|
|
400
|
+
_assertClass(attacker, Ship);
|
|
401
|
+
_assertClass(target, Ship);
|
|
402
|
+
const ret = wasm.analyzer_analyze_attack(this.ptr, addHeapObject(config), attacker.ptr, target.ptr);
|
|
385
403
|
return takeObject(ret);
|
|
386
404
|
}
|
|
387
405
|
/**
|
|
388
|
-
* @param {
|
|
389
|
-
* @
|
|
406
|
+
* @param {ShipAnalyzerConfig} config
|
|
407
|
+
* @param {Ship} left
|
|
408
|
+
* @param {Ship} right
|
|
409
|
+
* @param {boolean} attacker_is_left
|
|
410
|
+
* @returns {AttackAnalysis}
|
|
390
411
|
*/
|
|
391
|
-
|
|
392
|
-
_assertClass(
|
|
393
|
-
|
|
412
|
+
analyze_attack_by_ship_analyzer(config, left, right, attacker_is_left) {
|
|
413
|
+
_assertClass(left, Ship);
|
|
414
|
+
_assertClass(right, Ship);
|
|
415
|
+
const ret = wasm.analyzer_analyze_attack_by_ship_analyzer(this.ptr, addHeapObject(config), left.ptr, right.ptr, attacker_is_left);
|
|
394
416
|
return takeObject(ret);
|
|
395
417
|
}
|
|
396
418
|
/**
|
|
397
|
-
* @param {
|
|
398
|
-
* @param {
|
|
399
|
-
* @param {
|
|
400
|
-
* @
|
|
419
|
+
* @param {NodeAttackAnalyzerConfig} config
|
|
420
|
+
* @param {Comp} left_comp
|
|
421
|
+
* @param {Ship} left_ship
|
|
422
|
+
* @param {Comp} right_comp
|
|
423
|
+
* @param {Ship} right_ship
|
|
424
|
+
* @returns {NodeAttackAnalysis}
|
|
401
425
|
*/
|
|
402
|
-
|
|
403
|
-
_assertClass(
|
|
404
|
-
|
|
426
|
+
analyze_node_attack(config, left_comp, left_ship, right_comp, right_ship) {
|
|
427
|
+
_assertClass(left_comp, Comp);
|
|
428
|
+
_assertClass(left_ship, Ship);
|
|
429
|
+
_assertClass(right_comp, Comp);
|
|
430
|
+
_assertClass(right_ship, Ship);
|
|
431
|
+
const ret = wasm.analyzer_analyze_node_attack(this.ptr, addHeapObject(config), left_comp.ptr, left_ship.ptr, right_comp.ptr, right_ship.ptr);
|
|
405
432
|
return takeObject(ret);
|
|
406
433
|
}
|
|
407
434
|
/**
|
|
408
435
|
* @param {Comp} comp
|
|
409
|
-
* @
|
|
436
|
+
* @param {CompAnalyzerConfig} config
|
|
437
|
+
* @returns {CompAnalysis}
|
|
410
438
|
*/
|
|
411
|
-
|
|
439
|
+
analyze_comp(comp, config) {
|
|
412
440
|
_assertClass(comp, Comp);
|
|
413
|
-
const ret = wasm.
|
|
414
|
-
return takeObject(ret);
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @param {WarfareAnalyzerContext} params
|
|
418
|
-
* @param {Ship} attacker
|
|
419
|
-
* @param {Ship} target
|
|
420
|
-
* @returns {WarfareInfo}
|
|
421
|
-
*/
|
|
422
|
-
analyze_warfare(params, attacker, target) {
|
|
423
|
-
_assertClass(attacker, Ship);
|
|
424
|
-
_assertClass(target, Ship);
|
|
425
|
-
const ret = wasm.analyzer_analyze_warfare(this.ptr, addHeapObject(params), attacker.ptr, target.ptr);
|
|
441
|
+
const ret = wasm.analyzer_analyze_comp(this.ptr, comp.ptr, addHeapObject(config));
|
|
426
442
|
return takeObject(ret);
|
|
427
443
|
}
|
|
428
444
|
/**
|
|
429
|
-
* @param {Comp}
|
|
430
|
-
* @param {
|
|
431
|
-
* @
|
|
445
|
+
* @param {Comp} player_comp
|
|
446
|
+
* @param {Comp} enemy_comp
|
|
447
|
+
* @param {NodeAttackAnalyzerConfig} config
|
|
448
|
+
* @param {number} times
|
|
449
|
+
* @returns {SimulatorResult}
|
|
432
450
|
*/
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
451
|
+
simulate_support_shelling(player_comp, enemy_comp, config, times) {
|
|
452
|
+
try {
|
|
453
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
454
|
+
_assertClass(player_comp, Comp);
|
|
455
|
+
_assertClass(enemy_comp, Comp);
|
|
456
|
+
wasm.analyzer_simulate_support_shelling(retptr, this.ptr, player_comp.ptr, enemy_comp.ptr, addHeapObject(config), times);
|
|
457
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
458
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
459
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
460
|
+
if (r2) {
|
|
461
|
+
throw takeObject(r1);
|
|
462
|
+
}
|
|
463
|
+
return takeObject(r0);
|
|
464
|
+
} finally {
|
|
465
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
466
|
+
}
|
|
437
467
|
}
|
|
438
468
|
}
|
|
439
469
|
module.exports.Analyzer = Analyzer;
|
|
@@ -462,34 +492,28 @@ class Comp {
|
|
|
462
492
|
wasm.__wbg_comp_free(ptr);
|
|
463
493
|
}
|
|
464
494
|
/**
|
|
495
|
+
* @returns {OrgType}
|
|
465
496
|
*/
|
|
466
497
|
get org_type() {
|
|
467
498
|
const ret = wasm.__wbg_get_comp_org_type(this.ptr);
|
|
468
499
|
return takeObject(ret);
|
|
469
500
|
}
|
|
470
501
|
/**
|
|
471
|
-
|
|
472
|
-
set org_type(arg0) {
|
|
473
|
-
wasm.__wbg_set_comp_org_type(this.ptr, addHeapObject(arg0));
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
502
|
+
* @returns {number}
|
|
476
503
|
*/
|
|
477
504
|
get hq_level() {
|
|
478
505
|
const ret = wasm.__wbg_get_comp_hq_level(this.ptr);
|
|
479
506
|
return ret;
|
|
480
507
|
}
|
|
481
508
|
/**
|
|
482
|
-
|
|
483
|
-
set hq_level(arg0) {
|
|
484
|
-
wasm.__wbg_set_comp_hq_level(this.ptr, arg0);
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
509
|
+
* @returns {Fleet}
|
|
487
510
|
*/
|
|
488
511
|
get main() {
|
|
489
512
|
const ret = wasm.__wbg_get_comp_main(this.ptr);
|
|
490
513
|
return Fleet.__wrap(ret);
|
|
491
514
|
}
|
|
492
515
|
/**
|
|
516
|
+
* @param {Fleet} arg0
|
|
493
517
|
*/
|
|
494
518
|
set main(arg0) {
|
|
495
519
|
_assertClass(arg0, Fleet);
|
|
@@ -498,12 +522,14 @@ class Comp {
|
|
|
498
522
|
wasm.__wbg_set_comp_main(this.ptr, ptr0);
|
|
499
523
|
}
|
|
500
524
|
/**
|
|
525
|
+
* @returns {Fleet | undefined}
|
|
501
526
|
*/
|
|
502
527
|
get escort() {
|
|
503
528
|
const ret = wasm.__wbg_get_comp_escort(this.ptr);
|
|
504
529
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
505
530
|
}
|
|
506
531
|
/**
|
|
532
|
+
* @param {Fleet | undefined} arg0
|
|
507
533
|
*/
|
|
508
534
|
set escort(arg0) {
|
|
509
535
|
let ptr0 = 0;
|
|
@@ -515,12 +541,14 @@ class Comp {
|
|
|
515
541
|
wasm.__wbg_set_comp_escort(this.ptr, ptr0);
|
|
516
542
|
}
|
|
517
543
|
/**
|
|
544
|
+
* @returns {Fleet | undefined}
|
|
518
545
|
*/
|
|
519
546
|
get route_sup() {
|
|
520
547
|
const ret = wasm.__wbg_get_comp_route_sup(this.ptr);
|
|
521
548
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
522
549
|
}
|
|
523
550
|
/**
|
|
551
|
+
* @param {Fleet | undefined} arg0
|
|
524
552
|
*/
|
|
525
553
|
set route_sup(arg0) {
|
|
526
554
|
let ptr0 = 0;
|
|
@@ -532,12 +560,14 @@ class Comp {
|
|
|
532
560
|
wasm.__wbg_set_comp_route_sup(this.ptr, ptr0);
|
|
533
561
|
}
|
|
534
562
|
/**
|
|
563
|
+
* @returns {Fleet | undefined}
|
|
535
564
|
*/
|
|
536
565
|
get boss_sup() {
|
|
537
566
|
const ret = wasm.__wbg_get_comp_boss_sup(this.ptr);
|
|
538
567
|
return ret === 0 ? undefined : Fleet.__wrap(ret);
|
|
539
568
|
}
|
|
540
569
|
/**
|
|
570
|
+
* @param {Fleet | undefined} arg0
|
|
541
571
|
*/
|
|
542
572
|
set boss_sup(arg0) {
|
|
543
573
|
let ptr0 = 0;
|
|
@@ -713,12 +743,12 @@ class Comp {
|
|
|
713
743
|
}
|
|
714
744
|
/**
|
|
715
745
|
* @param {Ship} ship
|
|
716
|
-
* @param {Formation} formation
|
|
717
|
-
* @returns {
|
|
746
|
+
* @param {Formation | undefined} formation
|
|
747
|
+
* @returns {ShipConditions}
|
|
718
748
|
*/
|
|
719
|
-
|
|
749
|
+
get_ship_conditions(ship, formation) {
|
|
720
750
|
_assertClass(ship, Ship);
|
|
721
|
-
const ret = wasm.
|
|
751
|
+
const ret = wasm.comp_get_ship_conditions(this.ptr, ship.ptr, isLikeNone(formation) ? 0 : addHeapObject(formation));
|
|
722
752
|
return takeObject(ret);
|
|
723
753
|
}
|
|
724
754
|
}
|
|
@@ -847,30 +877,6 @@ class FhCore {
|
|
|
847
877
|
const ret = wasm.fhcore_create_analyzer(this.ptr);
|
|
848
878
|
return Analyzer.__wrap(ret);
|
|
849
879
|
}
|
|
850
|
-
/**
|
|
851
|
-
* @param {Comp} player
|
|
852
|
-
* @param {Comp} enemy
|
|
853
|
-
* @param {ShellingSupportSimulatorParams} params
|
|
854
|
-
* @param {number} times
|
|
855
|
-
* @returns {SimulatorResult}
|
|
856
|
-
*/
|
|
857
|
-
simulate_shelling_support(player, enemy, params, times) {
|
|
858
|
-
try {
|
|
859
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
860
|
-
_assertClass(player, Comp);
|
|
861
|
-
_assertClass(enemy, Comp);
|
|
862
|
-
wasm.fhcore_simulate_shelling_support(retptr, this.ptr, player.ptr, enemy.ptr, addHeapObject(params), times);
|
|
863
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
864
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
865
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
866
|
-
if (r2) {
|
|
867
|
-
throw takeObject(r1);
|
|
868
|
-
}
|
|
869
|
-
return takeObject(r0);
|
|
870
|
-
} finally {
|
|
871
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
880
|
}
|
|
875
881
|
module.exports.FhCore = FhCore;
|
|
876
882
|
|
|
@@ -898,6 +904,7 @@ class Fleet {
|
|
|
898
904
|
wasm.__wbg_fleet_free(ptr);
|
|
899
905
|
}
|
|
900
906
|
/**
|
|
907
|
+
* @returns {string}
|
|
901
908
|
*/
|
|
902
909
|
get id() {
|
|
903
910
|
try {
|
|
@@ -912,6 +919,7 @@ class Fleet {
|
|
|
912
919
|
}
|
|
913
920
|
}
|
|
914
921
|
/**
|
|
922
|
+
* @param {string} arg0
|
|
915
923
|
*/
|
|
916
924
|
set id(arg0) {
|
|
917
925
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -919,11 +927,12 @@ class Fleet {
|
|
|
919
927
|
wasm.__wbg_set_fleet_id(this.ptr, ptr0, len0);
|
|
920
928
|
}
|
|
921
929
|
/**
|
|
930
|
+
* @returns {bigint}
|
|
922
931
|
*/
|
|
923
|
-
get
|
|
932
|
+
get hash() {
|
|
924
933
|
try {
|
|
925
934
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
926
|
-
wasm.
|
|
935
|
+
wasm.__wbg_get_fleet_hash(retptr, this.ptr);
|
|
927
936
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
928
937
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
929
938
|
u32CvtShim[0] = r0;
|
|
@@ -935,25 +944,13 @@ class Fleet {
|
|
|
935
944
|
}
|
|
936
945
|
}
|
|
937
946
|
/**
|
|
938
|
-
|
|
939
|
-
set xxh3(arg0) {
|
|
940
|
-
uint64CvtShim[0] = arg0;
|
|
941
|
-
const low0 = u32CvtShim[0];
|
|
942
|
-
const high0 = u32CvtShim[1];
|
|
943
|
-
wasm.__wbg_set_fleet_xxh3(this.ptr, low0, high0);
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
947
|
+
* @returns {number}
|
|
946
948
|
*/
|
|
947
949
|
get len() {
|
|
948
950
|
const ret = wasm.__wbg_get_fleet_len(this.ptr);
|
|
949
951
|
return ret >>> 0;
|
|
950
952
|
}
|
|
951
953
|
/**
|
|
952
|
-
*/
|
|
953
|
-
set len(arg0) {
|
|
954
|
-
wasm.__wbg_set_fleet_len(this.ptr, arg0);
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
954
|
* @returns {FleetMeta}
|
|
958
955
|
*/
|
|
959
956
|
meta() {
|
|
@@ -1077,6 +1074,7 @@ class Fleet {
|
|
|
1077
1074
|
return ret === 0 ? undefined : Ship.__wrap(ret);
|
|
1078
1075
|
}
|
|
1079
1076
|
/**
|
|
1077
|
+
* @returns {number | undefined}
|
|
1080
1078
|
*/
|
|
1081
1079
|
get fleet_los_mod() {
|
|
1082
1080
|
try {
|
|
@@ -1193,6 +1191,7 @@ class Gear {
|
|
|
1193
1191
|
wasm.__wbg_gear_free(ptr);
|
|
1194
1192
|
}
|
|
1195
1193
|
/**
|
|
1194
|
+
* @returns {string}
|
|
1196
1195
|
*/
|
|
1197
1196
|
get id() {
|
|
1198
1197
|
try {
|
|
@@ -1207,6 +1206,7 @@ class Gear {
|
|
|
1207
1206
|
}
|
|
1208
1207
|
}
|
|
1209
1208
|
/**
|
|
1209
|
+
* @param {string} arg0
|
|
1210
1210
|
*/
|
|
1211
1211
|
set id(arg0) {
|
|
1212
1212
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1214,11 +1214,12 @@ class Gear {
|
|
|
1214
1214
|
wasm.__wbg_set_gear_id(this.ptr, ptr0, len0);
|
|
1215
1215
|
}
|
|
1216
1216
|
/**
|
|
1217
|
+
* @returns {bigint}
|
|
1217
1218
|
*/
|
|
1218
|
-
get
|
|
1219
|
+
get hash() {
|
|
1219
1220
|
try {
|
|
1220
1221
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1221
|
-
wasm.
|
|
1222
|
+
wasm.__wbg_get_gear_hash(retptr, this.ptr);
|
|
1222
1223
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1223
1224
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1224
1225
|
u32CvtShim[0] = r0;
|
|
@@ -1230,58 +1231,35 @@ class Gear {
|
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
1233
|
/**
|
|
1233
|
-
|
|
1234
|
-
set xxh3(arg0) {
|
|
1235
|
-
uint64CvtShim[0] = arg0;
|
|
1236
|
-
const low0 = u32CvtShim[0];
|
|
1237
|
-
const high0 = u32CvtShim[1];
|
|
1238
|
-
wasm.__wbg_set_gear_xxh3(this.ptr, low0, high0);
|
|
1239
|
-
}
|
|
1240
|
-
/**
|
|
1234
|
+
* @returns {number}
|
|
1241
1235
|
*/
|
|
1242
1236
|
get gear_id() {
|
|
1243
1237
|
const ret = wasm.__wbg_get_gear_gear_id(this.ptr);
|
|
1244
1238
|
return ret;
|
|
1245
1239
|
}
|
|
1246
1240
|
/**
|
|
1247
|
-
|
|
1248
|
-
set gear_id(arg0) {
|
|
1249
|
-
wasm.__wbg_set_gear_gear_id(this.ptr, arg0);
|
|
1250
|
-
}
|
|
1251
|
-
/**
|
|
1241
|
+
* @returns {number}
|
|
1252
1242
|
*/
|
|
1253
1243
|
get stars() {
|
|
1254
1244
|
const ret = wasm.__wbg_get_gear_stars(this.ptr);
|
|
1255
1245
|
return ret;
|
|
1256
1246
|
}
|
|
1257
1247
|
/**
|
|
1258
|
-
|
|
1259
|
-
set stars(arg0) {
|
|
1260
|
-
wasm.__wbg_set_gear_stars(this.ptr, arg0);
|
|
1261
|
-
}
|
|
1262
|
-
/**
|
|
1248
|
+
* @returns {number}
|
|
1263
1249
|
*/
|
|
1264
1250
|
get exp() {
|
|
1265
1251
|
const ret = wasm.__wbg_get_gear_exp(this.ptr);
|
|
1266
1252
|
return ret;
|
|
1267
1253
|
}
|
|
1268
1254
|
/**
|
|
1269
|
-
|
|
1270
|
-
set exp(arg0) {
|
|
1271
|
-
wasm.__wbg_set_gear_exp(this.ptr, arg0);
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1255
|
+
* @returns {number}
|
|
1274
1256
|
*/
|
|
1275
1257
|
get default_exp() {
|
|
1276
1258
|
const ret = wasm.__wbg_get_gear_default_exp(this.ptr);
|
|
1277
1259
|
return ret;
|
|
1278
1260
|
}
|
|
1279
1261
|
/**
|
|
1280
|
-
|
|
1281
|
-
set default_exp(arg0) {
|
|
1282
|
-
wasm.__wbg_set_gear_default_exp(this.ptr, arg0);
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1262
|
+
* @returns {string}
|
|
1285
1263
|
*/
|
|
1286
1264
|
get name() {
|
|
1287
1265
|
try {
|
|
@@ -1296,6 +1274,7 @@ class Gear {
|
|
|
1296
1274
|
}
|
|
1297
1275
|
}
|
|
1298
1276
|
/**
|
|
1277
|
+
* @param {string} arg0
|
|
1299
1278
|
*/
|
|
1300
1279
|
set name(arg0) {
|
|
1301
1280
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1303,6 +1282,7 @@ class Gear {
|
|
|
1303
1282
|
wasm.__wbg_set_gear_name(this.ptr, ptr0, len0);
|
|
1304
1283
|
}
|
|
1305
1284
|
/**
|
|
1285
|
+
* @returns {Uint8Array}
|
|
1306
1286
|
*/
|
|
1307
1287
|
get types() {
|
|
1308
1288
|
try {
|
|
@@ -1318,6 +1298,7 @@ class Gear {
|
|
|
1318
1298
|
}
|
|
1319
1299
|
}
|
|
1320
1300
|
/**
|
|
1301
|
+
* @param {Uint8Array} arg0
|
|
1321
1302
|
*/
|
|
1322
1303
|
set types(arg0) {
|
|
1323
1304
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1325,215 +1306,139 @@ class Gear {
|
|
|
1325
1306
|
wasm.__wbg_set_gear_types(this.ptr, ptr0, len0);
|
|
1326
1307
|
}
|
|
1327
1308
|
/**
|
|
1309
|
+
* @returns {GearType}
|
|
1328
1310
|
*/
|
|
1329
1311
|
get gear_type() {
|
|
1330
1312
|
const ret = wasm.__wbg_get_gear_gear_type(this.ptr);
|
|
1331
1313
|
return takeObject(ret);
|
|
1332
1314
|
}
|
|
1333
1315
|
/**
|
|
1334
|
-
|
|
1335
|
-
set gear_type(arg0) {
|
|
1336
|
-
wasm.__wbg_set_gear_gear_type(this.ptr, addHeapObject(arg0));
|
|
1337
|
-
}
|
|
1338
|
-
/**
|
|
1316
|
+
* @returns {number}
|
|
1339
1317
|
*/
|
|
1340
1318
|
get max_hp() {
|
|
1341
1319
|
const ret = wasm.__wbg_get_gear_max_hp(this.ptr);
|
|
1342
1320
|
return ret;
|
|
1343
1321
|
}
|
|
1344
1322
|
/**
|
|
1345
|
-
|
|
1346
|
-
set max_hp(arg0) {
|
|
1347
|
-
wasm.__wbg_set_gear_max_hp(this.ptr, arg0);
|
|
1348
|
-
}
|
|
1349
|
-
/**
|
|
1323
|
+
* @returns {number}
|
|
1350
1324
|
*/
|
|
1351
1325
|
get firepower() {
|
|
1352
1326
|
const ret = wasm.__wbg_get_gear_firepower(this.ptr);
|
|
1353
1327
|
return ret;
|
|
1354
1328
|
}
|
|
1355
1329
|
/**
|
|
1356
|
-
|
|
1357
|
-
set firepower(arg0) {
|
|
1358
|
-
wasm.__wbg_set_gear_firepower(this.ptr, arg0);
|
|
1359
|
-
}
|
|
1360
|
-
/**
|
|
1330
|
+
* @returns {number}
|
|
1361
1331
|
*/
|
|
1362
1332
|
get armor() {
|
|
1363
1333
|
const ret = wasm.__wbg_get_gear_armor(this.ptr);
|
|
1364
1334
|
return ret;
|
|
1365
1335
|
}
|
|
1366
1336
|
/**
|
|
1367
|
-
|
|
1368
|
-
set armor(arg0) {
|
|
1369
|
-
wasm.__wbg_set_gear_armor(this.ptr, arg0);
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1337
|
+
* @returns {number}
|
|
1372
1338
|
*/
|
|
1373
1339
|
get torpedo() {
|
|
1374
1340
|
const ret = wasm.__wbg_get_gear_torpedo(this.ptr);
|
|
1375
1341
|
return ret;
|
|
1376
1342
|
}
|
|
1377
1343
|
/**
|
|
1378
|
-
|
|
1379
|
-
set torpedo(arg0) {
|
|
1380
|
-
wasm.__wbg_set_gear_torpedo(this.ptr, arg0);
|
|
1381
|
-
}
|
|
1382
|
-
/**
|
|
1344
|
+
* @returns {number}
|
|
1383
1345
|
*/
|
|
1384
1346
|
get anti_air() {
|
|
1385
1347
|
const ret = wasm.__wbg_get_gear_anti_air(this.ptr);
|
|
1386
1348
|
return ret;
|
|
1387
1349
|
}
|
|
1388
1350
|
/**
|
|
1389
|
-
|
|
1390
|
-
set anti_air(arg0) {
|
|
1391
|
-
wasm.__wbg_set_gear_anti_air(this.ptr, arg0);
|
|
1392
|
-
}
|
|
1393
|
-
/**
|
|
1351
|
+
* @returns {number}
|
|
1394
1352
|
*/
|
|
1395
1353
|
get speed() {
|
|
1396
1354
|
const ret = wasm.__wbg_get_gear_speed(this.ptr);
|
|
1397
1355
|
return ret;
|
|
1398
1356
|
}
|
|
1399
1357
|
/**
|
|
1400
|
-
|
|
1401
|
-
set speed(arg0) {
|
|
1402
|
-
wasm.__wbg_set_gear_speed(this.ptr, arg0);
|
|
1403
|
-
}
|
|
1404
|
-
/**
|
|
1358
|
+
* @returns {number}
|
|
1405
1359
|
*/
|
|
1406
1360
|
get bombing() {
|
|
1407
1361
|
const ret = wasm.__wbg_get_gear_bombing(this.ptr);
|
|
1408
1362
|
return ret;
|
|
1409
1363
|
}
|
|
1410
1364
|
/**
|
|
1411
|
-
|
|
1412
|
-
set bombing(arg0) {
|
|
1413
|
-
wasm.__wbg_set_gear_bombing(this.ptr, arg0);
|
|
1414
|
-
}
|
|
1415
|
-
/**
|
|
1365
|
+
* @returns {number}
|
|
1416
1366
|
*/
|
|
1417
1367
|
get asw() {
|
|
1418
1368
|
const ret = wasm.__wbg_get_gear_asw(this.ptr);
|
|
1419
1369
|
return ret;
|
|
1420
1370
|
}
|
|
1421
1371
|
/**
|
|
1422
|
-
|
|
1423
|
-
set asw(arg0) {
|
|
1424
|
-
wasm.__wbg_set_gear_asw(this.ptr, arg0);
|
|
1425
|
-
}
|
|
1426
|
-
/**
|
|
1372
|
+
* @returns {number}
|
|
1427
1373
|
*/
|
|
1428
1374
|
get los() {
|
|
1429
1375
|
const ret = wasm.__wbg_get_gear_los(this.ptr);
|
|
1430
1376
|
return ret;
|
|
1431
1377
|
}
|
|
1432
1378
|
/**
|
|
1433
|
-
|
|
1434
|
-
set los(arg0) {
|
|
1435
|
-
wasm.__wbg_set_gear_los(this.ptr, arg0);
|
|
1436
|
-
}
|
|
1437
|
-
/**
|
|
1379
|
+
* @returns {number}
|
|
1438
1380
|
*/
|
|
1439
1381
|
get luck() {
|
|
1440
1382
|
const ret = wasm.__wbg_get_gear_luck(this.ptr);
|
|
1441
1383
|
return ret;
|
|
1442
1384
|
}
|
|
1443
1385
|
/**
|
|
1444
|
-
|
|
1445
|
-
set luck(arg0) {
|
|
1446
|
-
wasm.__wbg_set_gear_luck(this.ptr, arg0);
|
|
1447
|
-
}
|
|
1448
|
-
/**
|
|
1386
|
+
* @returns {number}
|
|
1449
1387
|
*/
|
|
1450
1388
|
get accuracy() {
|
|
1451
1389
|
const ret = wasm.__wbg_get_gear_accuracy(this.ptr);
|
|
1452
1390
|
return ret;
|
|
1453
1391
|
}
|
|
1454
1392
|
/**
|
|
1455
|
-
|
|
1456
|
-
set accuracy(arg0) {
|
|
1457
|
-
wasm.__wbg_set_gear_accuracy(this.ptr, arg0);
|
|
1458
|
-
}
|
|
1459
|
-
/**
|
|
1393
|
+
* @returns {number}
|
|
1460
1394
|
*/
|
|
1461
1395
|
get evasion() {
|
|
1462
1396
|
const ret = wasm.__wbg_get_gear_evasion(this.ptr);
|
|
1463
1397
|
return ret;
|
|
1464
1398
|
}
|
|
1465
1399
|
/**
|
|
1466
|
-
|
|
1467
|
-
set evasion(arg0) {
|
|
1468
|
-
wasm.__wbg_set_gear_evasion(this.ptr, arg0);
|
|
1469
|
-
}
|
|
1470
|
-
/**
|
|
1400
|
+
* @returns {number}
|
|
1471
1401
|
*/
|
|
1472
1402
|
get range() {
|
|
1473
1403
|
const ret = wasm.__wbg_get_gear_range(this.ptr);
|
|
1474
1404
|
return ret;
|
|
1475
1405
|
}
|
|
1476
1406
|
/**
|
|
1477
|
-
|
|
1478
|
-
set range(arg0) {
|
|
1479
|
-
wasm.__wbg_set_gear_range(this.ptr, arg0);
|
|
1480
|
-
}
|
|
1481
|
-
/**
|
|
1407
|
+
* @returns {number}
|
|
1482
1408
|
*/
|
|
1483
1409
|
get radius() {
|
|
1484
1410
|
const ret = wasm.__wbg_get_gear_radius(this.ptr);
|
|
1485
1411
|
return ret;
|
|
1486
1412
|
}
|
|
1487
1413
|
/**
|
|
1488
|
-
|
|
1489
|
-
set radius(arg0) {
|
|
1490
|
-
wasm.__wbg_set_gear_radius(this.ptr, arg0);
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1414
|
+
* @returns {number}
|
|
1493
1415
|
*/
|
|
1494
1416
|
get cost() {
|
|
1495
1417
|
const ret = wasm.__wbg_get_gear_cost(this.ptr);
|
|
1496
1418
|
return ret;
|
|
1497
1419
|
}
|
|
1498
1420
|
/**
|
|
1499
|
-
|
|
1500
|
-
set cost(arg0) {
|
|
1501
|
-
wasm.__wbg_set_gear_cost(this.ptr, arg0);
|
|
1502
|
-
}
|
|
1503
|
-
/**
|
|
1421
|
+
* @returns {boolean}
|
|
1504
1422
|
*/
|
|
1505
1423
|
get improvable() {
|
|
1506
1424
|
const ret = wasm.__wbg_get_gear_improvable(this.ptr);
|
|
1507
1425
|
return ret !== 0;
|
|
1508
1426
|
}
|
|
1509
1427
|
/**
|
|
1428
|
+
* @returns {number}
|
|
1510
1429
|
*/
|
|
1511
|
-
|
|
1512
|
-
wasm.
|
|
1513
|
-
}
|
|
1514
|
-
/**
|
|
1515
|
-
*/
|
|
1516
|
-
get ship_anti_air_resistance() {
|
|
1517
|
-
const ret = wasm.__wbg_get_gear_ship_anti_air_resistance(this.ptr);
|
|
1430
|
+
get ship_anti_air_resist() {
|
|
1431
|
+
const ret = wasm.__wbg_get_gear_ship_anti_air_resist(this.ptr);
|
|
1518
1432
|
return ret;
|
|
1519
1433
|
}
|
|
1520
1434
|
/**
|
|
1435
|
+
* @returns {number}
|
|
1521
1436
|
*/
|
|
1522
|
-
|
|
1523
|
-
wasm.
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
|
-
*/
|
|
1527
|
-
get fleet_anti_air_resistance() {
|
|
1528
|
-
const ret = wasm.__wbg_get_gear_fleet_anti_air_resistance(this.ptr);
|
|
1437
|
+
get fleet_anti_air_resist() {
|
|
1438
|
+
const ret = wasm.__wbg_get_gear_fleet_anti_air_resist(this.ptr);
|
|
1529
1439
|
return ret;
|
|
1530
1440
|
}
|
|
1531
1441
|
/**
|
|
1532
|
-
*/
|
|
1533
|
-
set fleet_anti_air_resistance(arg0) {
|
|
1534
|
-
wasm.__wbg_set_gear_fleet_anti_air_resistance(this.ptr, arg0);
|
|
1535
|
-
}
|
|
1536
|
-
/**
|
|
1537
1442
|
* @returns {Gear}
|
|
1538
1443
|
*/
|
|
1539
1444
|
static default() {
|
|
@@ -1541,18 +1446,21 @@ class Gear {
|
|
|
1541
1446
|
return Gear.__wrap(ret);
|
|
1542
1447
|
}
|
|
1543
1448
|
/**
|
|
1449
|
+
* @returns {number}
|
|
1544
1450
|
*/
|
|
1545
1451
|
get gear_type_id() {
|
|
1546
1452
|
const ret = wasm.gear_gear_type_id(this.ptr);
|
|
1547
1453
|
return ret;
|
|
1548
1454
|
}
|
|
1549
1455
|
/**
|
|
1456
|
+
* @returns {number}
|
|
1550
1457
|
*/
|
|
1551
1458
|
get special_type_id() {
|
|
1552
1459
|
const ret = wasm.gear_special_type_id(this.ptr);
|
|
1553
1460
|
return ret;
|
|
1554
1461
|
}
|
|
1555
1462
|
/**
|
|
1463
|
+
* @returns {number}
|
|
1556
1464
|
*/
|
|
1557
1465
|
get icon_id() {
|
|
1558
1466
|
const ret = wasm.gear_icon_id(this.ptr);
|
|
@@ -1574,18 +1482,21 @@ class Gear {
|
|
|
1574
1482
|
return takeObject(ret);
|
|
1575
1483
|
}
|
|
1576
1484
|
/**
|
|
1485
|
+
* @returns {number}
|
|
1577
1486
|
*/
|
|
1578
1487
|
get ace() {
|
|
1579
1488
|
const ret = wasm.gear_ace(this.ptr);
|
|
1580
1489
|
return ret;
|
|
1581
1490
|
}
|
|
1582
1491
|
/**
|
|
1492
|
+
* @returns {number}
|
|
1583
1493
|
*/
|
|
1584
1494
|
get anti_bomber() {
|
|
1585
1495
|
const ret = wasm.gear_anti_bomber(this.ptr);
|
|
1586
1496
|
return ret;
|
|
1587
1497
|
}
|
|
1588
1498
|
/**
|
|
1499
|
+
* @returns {number}
|
|
1589
1500
|
*/
|
|
1590
1501
|
get interception() {
|
|
1591
1502
|
const ret = wasm.gear_interception(this.ptr);
|
|
@@ -1622,8 +1533,8 @@ class Gear {
|
|
|
1622
1533
|
/**
|
|
1623
1534
|
* @returns {number}
|
|
1624
1535
|
*/
|
|
1625
|
-
|
|
1626
|
-
const ret = wasm.
|
|
1536
|
+
exp_critical_bonus() {
|
|
1537
|
+
const ret = wasm.gear_exp_critical_bonus(this.ptr);
|
|
1627
1538
|
return ret;
|
|
1628
1539
|
}
|
|
1629
1540
|
/**
|
|
@@ -1772,177 +1683,209 @@ class IBonuses {
|
|
|
1772
1683
|
wasm.__wbg_ibonuses_free(ptr);
|
|
1773
1684
|
}
|
|
1774
1685
|
/**
|
|
1686
|
+
* @returns {number}
|
|
1775
1687
|
*/
|
|
1776
1688
|
get shelling_power() {
|
|
1777
1689
|
const ret = wasm.__wbg_get_ibonuses_shelling_power(this.ptr);
|
|
1778
1690
|
return ret;
|
|
1779
1691
|
}
|
|
1780
1692
|
/**
|
|
1693
|
+
* @param {number} arg0
|
|
1781
1694
|
*/
|
|
1782
1695
|
set shelling_power(arg0) {
|
|
1783
1696
|
wasm.__wbg_set_ibonuses_shelling_power(this.ptr, arg0);
|
|
1784
1697
|
}
|
|
1785
1698
|
/**
|
|
1699
|
+
* @returns {number}
|
|
1786
1700
|
*/
|
|
1787
1701
|
get carrier_shelling_power() {
|
|
1788
1702
|
const ret = wasm.__wbg_get_ibonuses_carrier_shelling_power(this.ptr);
|
|
1789
1703
|
return ret;
|
|
1790
1704
|
}
|
|
1791
1705
|
/**
|
|
1706
|
+
* @param {number} arg0
|
|
1792
1707
|
*/
|
|
1793
1708
|
set carrier_shelling_power(arg0) {
|
|
1794
1709
|
wasm.__wbg_set_ibonuses_carrier_shelling_power(this.ptr, arg0);
|
|
1795
1710
|
}
|
|
1796
1711
|
/**
|
|
1712
|
+
* @returns {number}
|
|
1797
1713
|
*/
|
|
1798
1714
|
get shelling_accuracy() {
|
|
1799
1715
|
const ret = wasm.__wbg_get_ibonuses_shelling_accuracy(this.ptr);
|
|
1800
1716
|
return ret;
|
|
1801
1717
|
}
|
|
1802
1718
|
/**
|
|
1719
|
+
* @param {number} arg0
|
|
1803
1720
|
*/
|
|
1804
1721
|
set shelling_accuracy(arg0) {
|
|
1805
1722
|
wasm.__wbg_set_ibonuses_shelling_accuracy(this.ptr, arg0);
|
|
1806
1723
|
}
|
|
1807
1724
|
/**
|
|
1725
|
+
* @returns {number}
|
|
1808
1726
|
*/
|
|
1809
1727
|
get torpedo_power() {
|
|
1810
1728
|
const ret = wasm.__wbg_get_ibonuses_torpedo_power(this.ptr);
|
|
1811
1729
|
return ret;
|
|
1812
1730
|
}
|
|
1813
1731
|
/**
|
|
1732
|
+
* @param {number} arg0
|
|
1814
1733
|
*/
|
|
1815
1734
|
set torpedo_power(arg0) {
|
|
1816
1735
|
wasm.__wbg_set_ibonuses_torpedo_power(this.ptr, arg0);
|
|
1817
1736
|
}
|
|
1818
1737
|
/**
|
|
1738
|
+
* @returns {number}
|
|
1819
1739
|
*/
|
|
1820
1740
|
get torpedo_accuracy() {
|
|
1821
1741
|
const ret = wasm.__wbg_get_ibonuses_torpedo_accuracy(this.ptr);
|
|
1822
1742
|
return ret;
|
|
1823
1743
|
}
|
|
1824
1744
|
/**
|
|
1745
|
+
* @param {number} arg0
|
|
1825
1746
|
*/
|
|
1826
1747
|
set torpedo_accuracy(arg0) {
|
|
1827
1748
|
wasm.__wbg_set_ibonuses_torpedo_accuracy(this.ptr, arg0);
|
|
1828
1749
|
}
|
|
1829
1750
|
/**
|
|
1751
|
+
* @returns {number}
|
|
1830
1752
|
*/
|
|
1831
1753
|
get torpedo_evasion() {
|
|
1832
1754
|
const ret = wasm.__wbg_get_ibonuses_torpedo_evasion(this.ptr);
|
|
1833
1755
|
return ret;
|
|
1834
1756
|
}
|
|
1835
1757
|
/**
|
|
1758
|
+
* @param {number} arg0
|
|
1836
1759
|
*/
|
|
1837
1760
|
set torpedo_evasion(arg0) {
|
|
1838
1761
|
wasm.__wbg_set_ibonuses_torpedo_evasion(this.ptr, arg0);
|
|
1839
1762
|
}
|
|
1840
1763
|
/**
|
|
1764
|
+
* @returns {number}
|
|
1841
1765
|
*/
|
|
1842
1766
|
get asw_power() {
|
|
1843
1767
|
const ret = wasm.__wbg_get_ibonuses_asw_power(this.ptr);
|
|
1844
1768
|
return ret;
|
|
1845
1769
|
}
|
|
1846
1770
|
/**
|
|
1771
|
+
* @param {number} arg0
|
|
1847
1772
|
*/
|
|
1848
1773
|
set asw_power(arg0) {
|
|
1849
1774
|
wasm.__wbg_set_ibonuses_asw_power(this.ptr, arg0);
|
|
1850
1775
|
}
|
|
1851
1776
|
/**
|
|
1777
|
+
* @returns {number}
|
|
1852
1778
|
*/
|
|
1853
1779
|
get asw_accuracy() {
|
|
1854
1780
|
const ret = wasm.__wbg_get_ibonuses_asw_accuracy(this.ptr);
|
|
1855
1781
|
return ret;
|
|
1856
1782
|
}
|
|
1857
1783
|
/**
|
|
1784
|
+
* @param {number} arg0
|
|
1858
1785
|
*/
|
|
1859
1786
|
set asw_accuracy(arg0) {
|
|
1860
1787
|
wasm.__wbg_set_ibonuses_asw_accuracy(this.ptr, arg0);
|
|
1861
1788
|
}
|
|
1862
1789
|
/**
|
|
1790
|
+
* @returns {number}
|
|
1863
1791
|
*/
|
|
1864
1792
|
get night_power() {
|
|
1865
1793
|
const ret = wasm.__wbg_get_ibonuses_night_power(this.ptr);
|
|
1866
1794
|
return ret;
|
|
1867
1795
|
}
|
|
1868
1796
|
/**
|
|
1797
|
+
* @param {number} arg0
|
|
1869
1798
|
*/
|
|
1870
1799
|
set night_power(arg0) {
|
|
1871
1800
|
wasm.__wbg_set_ibonuses_night_power(this.ptr, arg0);
|
|
1872
1801
|
}
|
|
1873
1802
|
/**
|
|
1803
|
+
* @returns {number}
|
|
1874
1804
|
*/
|
|
1875
1805
|
get night_accuracy() {
|
|
1876
1806
|
const ret = wasm.__wbg_get_ibonuses_night_accuracy(this.ptr);
|
|
1877
1807
|
return ret;
|
|
1878
1808
|
}
|
|
1879
1809
|
/**
|
|
1810
|
+
* @param {number} arg0
|
|
1880
1811
|
*/
|
|
1881
1812
|
set night_accuracy(arg0) {
|
|
1882
1813
|
wasm.__wbg_set_ibonuses_night_accuracy(this.ptr, arg0);
|
|
1883
1814
|
}
|
|
1884
1815
|
/**
|
|
1816
|
+
* @returns {number}
|
|
1885
1817
|
*/
|
|
1886
1818
|
get defense_power() {
|
|
1887
1819
|
const ret = wasm.__wbg_get_ibonuses_defense_power(this.ptr);
|
|
1888
1820
|
return ret;
|
|
1889
1821
|
}
|
|
1890
1822
|
/**
|
|
1823
|
+
* @param {number} arg0
|
|
1891
1824
|
*/
|
|
1892
1825
|
set defense_power(arg0) {
|
|
1893
1826
|
wasm.__wbg_set_ibonuses_defense_power(this.ptr, arg0);
|
|
1894
1827
|
}
|
|
1895
1828
|
/**
|
|
1829
|
+
* @returns {number}
|
|
1896
1830
|
*/
|
|
1897
1831
|
get contact_selection() {
|
|
1898
1832
|
const ret = wasm.__wbg_get_ibonuses_contact_selection(this.ptr);
|
|
1899
1833
|
return ret;
|
|
1900
1834
|
}
|
|
1901
1835
|
/**
|
|
1836
|
+
* @param {number} arg0
|
|
1902
1837
|
*/
|
|
1903
1838
|
set contact_selection(arg0) {
|
|
1904
1839
|
wasm.__wbg_set_ibonuses_contact_selection(this.ptr, arg0);
|
|
1905
1840
|
}
|
|
1906
1841
|
/**
|
|
1842
|
+
* @returns {number}
|
|
1907
1843
|
*/
|
|
1908
1844
|
get fighter_power() {
|
|
1909
1845
|
const ret = wasm.__wbg_get_ibonuses_fighter_power(this.ptr);
|
|
1910
1846
|
return ret;
|
|
1911
1847
|
}
|
|
1912
1848
|
/**
|
|
1849
|
+
* @param {number} arg0
|
|
1913
1850
|
*/
|
|
1914
1851
|
set fighter_power(arg0) {
|
|
1915
1852
|
wasm.__wbg_set_ibonuses_fighter_power(this.ptr, arg0);
|
|
1916
1853
|
}
|
|
1917
1854
|
/**
|
|
1855
|
+
* @returns {number}
|
|
1918
1856
|
*/
|
|
1919
1857
|
get ship_anti_air() {
|
|
1920
1858
|
const ret = wasm.__wbg_get_ibonuses_ship_anti_air(this.ptr);
|
|
1921
1859
|
return ret;
|
|
1922
1860
|
}
|
|
1923
1861
|
/**
|
|
1862
|
+
* @param {number} arg0
|
|
1924
1863
|
*/
|
|
1925
1864
|
set ship_anti_air(arg0) {
|
|
1926
1865
|
wasm.__wbg_set_ibonuses_ship_anti_air(this.ptr, arg0);
|
|
1927
1866
|
}
|
|
1928
1867
|
/**
|
|
1868
|
+
* @returns {number}
|
|
1929
1869
|
*/
|
|
1930
1870
|
get fleet_anti_air() {
|
|
1931
1871
|
const ret = wasm.__wbg_get_ibonuses_fleet_anti_air(this.ptr);
|
|
1932
1872
|
return ret;
|
|
1933
1873
|
}
|
|
1934
1874
|
/**
|
|
1875
|
+
* @param {number} arg0
|
|
1935
1876
|
*/
|
|
1936
1877
|
set fleet_anti_air(arg0) {
|
|
1937
1878
|
wasm.__wbg_set_ibonuses_fleet_anti_air(this.ptr, arg0);
|
|
1938
1879
|
}
|
|
1939
1880
|
/**
|
|
1881
|
+
* @returns {number}
|
|
1940
1882
|
*/
|
|
1941
1883
|
get elos() {
|
|
1942
1884
|
const ret = wasm.__wbg_get_ibonuses_elos(this.ptr);
|
|
1943
1885
|
return ret;
|
|
1944
1886
|
}
|
|
1945
1887
|
/**
|
|
1888
|
+
* @param {number} arg0
|
|
1946
1889
|
*/
|
|
1947
1890
|
set elos(arg0) {
|
|
1948
1891
|
wasm.__wbg_set_ibonuses_elos(this.ptr, arg0);
|
|
@@ -1974,6 +1917,7 @@ class Org {
|
|
|
1974
1917
|
wasm.__wbg_org_free(ptr);
|
|
1975
1918
|
}
|
|
1976
1919
|
/**
|
|
1920
|
+
* @returns {string}
|
|
1977
1921
|
*/
|
|
1978
1922
|
get id() {
|
|
1979
1923
|
try {
|
|
@@ -1988,6 +1932,7 @@ class Org {
|
|
|
1988
1932
|
}
|
|
1989
1933
|
}
|
|
1990
1934
|
/**
|
|
1935
|
+
* @param {string} arg0
|
|
1991
1936
|
*/
|
|
1992
1937
|
set id(arg0) {
|
|
1993
1938
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1995,11 +1940,12 @@ class Org {
|
|
|
1995
1940
|
wasm.__wbg_set_org_id(this.ptr, ptr0, len0);
|
|
1996
1941
|
}
|
|
1997
1942
|
/**
|
|
1943
|
+
* @returns {bigint}
|
|
1998
1944
|
*/
|
|
1999
|
-
get
|
|
1945
|
+
get hash() {
|
|
2000
1946
|
try {
|
|
2001
1947
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2002
|
-
wasm.
|
|
1948
|
+
wasm.__wbg_get_org_hash(retptr, this.ptr);
|
|
2003
1949
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2004
1950
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2005
1951
|
u32CvtShim[0] = r0;
|
|
@@ -2011,36 +1957,21 @@ class Org {
|
|
|
2011
1957
|
}
|
|
2012
1958
|
}
|
|
2013
1959
|
/**
|
|
2014
|
-
|
|
2015
|
-
set xxh3(arg0) {
|
|
2016
|
-
uint64CvtShim[0] = arg0;
|
|
2017
|
-
const low0 = u32CvtShim[0];
|
|
2018
|
-
const high0 = u32CvtShim[1];
|
|
2019
|
-
wasm.__wbg_set_org_xxh3(this.ptr, low0, high0);
|
|
2020
|
-
}
|
|
2021
|
-
/**
|
|
1960
|
+
* @returns {number}
|
|
2022
1961
|
*/
|
|
2023
1962
|
get hq_level() {
|
|
2024
1963
|
const ret = wasm.__wbg_get_org_hq_level(this.ptr);
|
|
2025
1964
|
return ret;
|
|
2026
1965
|
}
|
|
2027
1966
|
/**
|
|
2028
|
-
|
|
2029
|
-
set hq_level(arg0) {
|
|
2030
|
-
wasm.__wbg_set_org_hq_level(this.ptr, arg0);
|
|
2031
|
-
}
|
|
2032
|
-
/**
|
|
1967
|
+
* @returns {OrgType}
|
|
2033
1968
|
*/
|
|
2034
1969
|
get org_type() {
|
|
2035
1970
|
const ret = wasm.__wbg_get_org_org_type(this.ptr);
|
|
2036
1971
|
return takeObject(ret);
|
|
2037
1972
|
}
|
|
2038
1973
|
/**
|
|
2039
|
-
|
|
2040
|
-
set org_type(arg0) {
|
|
2041
|
-
wasm.__wbg_set_org_org_type(this.ptr, addHeapObject(arg0));
|
|
2042
|
-
}
|
|
2043
|
-
/**
|
|
1974
|
+
* @returns {string}
|
|
2044
1975
|
*/
|
|
2045
1976
|
get sortie() {
|
|
2046
1977
|
try {
|
|
@@ -2055,6 +1986,7 @@ class Org {
|
|
|
2055
1986
|
}
|
|
2056
1987
|
}
|
|
2057
1988
|
/**
|
|
1989
|
+
* @param {string} arg0
|
|
2058
1990
|
*/
|
|
2059
1991
|
set sortie(arg0) {
|
|
2060
1992
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2062,6 +1994,7 @@ class Org {
|
|
|
2062
1994
|
wasm.__wbg_set_org_sortie(this.ptr, ptr0, len0);
|
|
2063
1995
|
}
|
|
2064
1996
|
/**
|
|
1997
|
+
* @returns {string | undefined}
|
|
2065
1998
|
*/
|
|
2066
1999
|
get route_sup() {
|
|
2067
2000
|
try {
|
|
@@ -2080,6 +2013,7 @@ class Org {
|
|
|
2080
2013
|
}
|
|
2081
2014
|
}
|
|
2082
2015
|
/**
|
|
2016
|
+
* @param {string | undefined} arg0
|
|
2083
2017
|
*/
|
|
2084
2018
|
set route_sup(arg0) {
|
|
2085
2019
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2087,6 +2021,7 @@ class Org {
|
|
|
2087
2021
|
wasm.__wbg_set_org_route_sup(this.ptr, ptr0, len0);
|
|
2088
2022
|
}
|
|
2089
2023
|
/**
|
|
2024
|
+
* @returns {string | undefined}
|
|
2090
2025
|
*/
|
|
2091
2026
|
get boss_sup() {
|
|
2092
2027
|
try {
|
|
@@ -2105,6 +2040,7 @@ class Org {
|
|
|
2105
2040
|
}
|
|
2106
2041
|
}
|
|
2107
2042
|
/**
|
|
2043
|
+
* @param {string | undefined} arg0
|
|
2108
2044
|
*/
|
|
2109
2045
|
set boss_sup(arg0) {
|
|
2110
2046
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2374,16 +2310,6 @@ class Org {
|
|
|
2374
2310
|
return ret;
|
|
2375
2311
|
}
|
|
2376
2312
|
/**
|
|
2377
|
-
* @param {Ship} ship
|
|
2378
|
-
* @param {Formation} formation
|
|
2379
|
-
* @returns {WarfareShipEnvironment}
|
|
2380
|
-
*/
|
|
2381
|
-
create_warfare_ship_environment(ship, formation) {
|
|
2382
|
-
_assertClass(ship, Ship);
|
|
2383
|
-
const ret = wasm.org_create_warfare_ship_environment(this.ptr, ship.ptr, addHeapObject(formation));
|
|
2384
|
-
return takeObject(ret);
|
|
2385
|
-
}
|
|
2386
|
-
/**
|
|
2387
2313
|
* @returns {Org}
|
|
2388
2314
|
*/
|
|
2389
2315
|
static default() {
|
|
@@ -2417,6 +2343,7 @@ class Ship {
|
|
|
2417
2343
|
wasm.__wbg_ship_free(ptr);
|
|
2418
2344
|
}
|
|
2419
2345
|
/**
|
|
2346
|
+
* @returns {string}
|
|
2420
2347
|
*/
|
|
2421
2348
|
get id() {
|
|
2422
2349
|
try {
|
|
@@ -2431,6 +2358,7 @@ class Ship {
|
|
|
2431
2358
|
}
|
|
2432
2359
|
}
|
|
2433
2360
|
/**
|
|
2361
|
+
* @param {string} arg0
|
|
2434
2362
|
*/
|
|
2435
2363
|
set id(arg0) {
|
|
2436
2364
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2438,11 +2366,12 @@ class Ship {
|
|
|
2438
2366
|
wasm.__wbg_set_ship_id(this.ptr, ptr0, len0);
|
|
2439
2367
|
}
|
|
2440
2368
|
/**
|
|
2369
|
+
* @returns {bigint}
|
|
2441
2370
|
*/
|
|
2442
|
-
get
|
|
2371
|
+
get hash() {
|
|
2443
2372
|
try {
|
|
2444
2373
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2445
|
-
wasm.
|
|
2374
|
+
wasm.__wbg_get_ship_hash(retptr, this.ptr);
|
|
2446
2375
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2447
2376
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2448
2377
|
u32CvtShim[0] = r0;
|
|
@@ -2454,191 +2383,167 @@ class Ship {
|
|
|
2454
2383
|
}
|
|
2455
2384
|
}
|
|
2456
2385
|
/**
|
|
2457
|
-
|
|
2458
|
-
set xxh3(arg0) {
|
|
2459
|
-
uint64CvtShim[0] = arg0;
|
|
2460
|
-
const low0 = u32CvtShim[0];
|
|
2461
|
-
const high0 = u32CvtShim[1];
|
|
2462
|
-
wasm.__wbg_set_ship_xxh3(this.ptr, low0, high0);
|
|
2463
|
-
}
|
|
2464
|
-
/**
|
|
2386
|
+
* @returns {number}
|
|
2465
2387
|
*/
|
|
2466
2388
|
get ship_id() {
|
|
2467
2389
|
const ret = wasm.__wbg_get_ship_ship_id(this.ptr);
|
|
2468
2390
|
return ret;
|
|
2469
2391
|
}
|
|
2470
2392
|
/**
|
|
2471
|
-
|
|
2472
|
-
set ship_id(arg0) {
|
|
2473
|
-
wasm.__wbg_set_ship_ship_id(this.ptr, arg0);
|
|
2474
|
-
}
|
|
2475
|
-
/**
|
|
2393
|
+
* @returns {number}
|
|
2476
2394
|
*/
|
|
2477
2395
|
get level() {
|
|
2478
2396
|
const ret = wasm.__wbg_get_ship_level(this.ptr);
|
|
2479
2397
|
return ret;
|
|
2480
2398
|
}
|
|
2481
2399
|
/**
|
|
2482
|
-
|
|
2483
|
-
set level(arg0) {
|
|
2484
|
-
wasm.__wbg_set_ship_level(this.ptr, arg0);
|
|
2485
|
-
}
|
|
2486
|
-
/**
|
|
2400
|
+
* @returns {number}
|
|
2487
2401
|
*/
|
|
2488
2402
|
get current_hp() {
|
|
2489
2403
|
const ret = wasm.__wbg_get_ship_current_hp(this.ptr);
|
|
2490
2404
|
return ret;
|
|
2491
2405
|
}
|
|
2492
2406
|
/**
|
|
2493
|
-
|
|
2494
|
-
set current_hp(arg0) {
|
|
2495
|
-
wasm.__wbg_set_ship_current_hp(this.ptr, arg0);
|
|
2496
|
-
}
|
|
2497
|
-
/**
|
|
2407
|
+
* @returns {number}
|
|
2498
2408
|
*/
|
|
2499
2409
|
get morale() {
|
|
2500
2410
|
const ret = wasm.__wbg_get_ship_morale(this.ptr);
|
|
2501
2411
|
return ret;
|
|
2502
2412
|
}
|
|
2503
2413
|
/**
|
|
2504
|
-
|
|
2505
|
-
set morale(arg0) {
|
|
2506
|
-
wasm.__wbg_set_ship_morale(this.ptr, arg0);
|
|
2507
|
-
}
|
|
2508
|
-
/**
|
|
2414
|
+
* @returns {number}
|
|
2509
2415
|
*/
|
|
2510
2416
|
get ammo() {
|
|
2511
2417
|
const ret = wasm.__wbg_get_ship_ammo(this.ptr);
|
|
2512
2418
|
return ret;
|
|
2513
2419
|
}
|
|
2514
2420
|
/**
|
|
2515
|
-
|
|
2516
|
-
set ammo(arg0) {
|
|
2517
|
-
wasm.__wbg_set_ship_ammo(this.ptr, arg0);
|
|
2518
|
-
}
|
|
2519
|
-
/**
|
|
2421
|
+
* @returns {number}
|
|
2520
2422
|
*/
|
|
2521
2423
|
get fuel() {
|
|
2522
2424
|
const ret = wasm.__wbg_get_ship_fuel(this.ptr);
|
|
2523
2425
|
return ret;
|
|
2524
2426
|
}
|
|
2525
2427
|
/**
|
|
2526
|
-
|
|
2527
|
-
set fuel(arg0) {
|
|
2528
|
-
wasm.__wbg_set_ship_fuel(this.ptr, arg0);
|
|
2529
|
-
}
|
|
2530
|
-
/**
|
|
2428
|
+
* @returns {ShipType}
|
|
2531
2429
|
*/
|
|
2532
2430
|
get ship_type() {
|
|
2533
2431
|
const ret = wasm.__wbg_get_ship_ship_type(this.ptr);
|
|
2534
2432
|
return takeObject(ret);
|
|
2535
2433
|
}
|
|
2536
2434
|
/**
|
|
2537
|
-
|
|
2538
|
-
set ship_type(arg0) {
|
|
2539
|
-
wasm.__wbg_set_ship_ship_type(this.ptr, addHeapObject(arg0));
|
|
2540
|
-
}
|
|
2541
|
-
/**
|
|
2435
|
+
* @returns {number}
|
|
2542
2436
|
*/
|
|
2543
2437
|
get ctype() {
|
|
2544
2438
|
const ret = wasm.__wbg_get_ship_ctype(this.ptr);
|
|
2545
2439
|
return ret;
|
|
2546
2440
|
}
|
|
2547
2441
|
/**
|
|
2548
|
-
|
|
2549
|
-
set ctype(arg0) {
|
|
2550
|
-
wasm.__wbg_set_ship_ctype(this.ptr, arg0);
|
|
2551
|
-
}
|
|
2552
|
-
/**
|
|
2442
|
+
* @returns {SlotSizeVec}
|
|
2553
2443
|
*/
|
|
2554
2444
|
get slots() {
|
|
2555
2445
|
const ret = wasm.__wbg_get_ship_slots(this.ptr);
|
|
2556
2446
|
return takeObject(ret);
|
|
2557
2447
|
}
|
|
2558
2448
|
/**
|
|
2449
|
+
* @param {SlotSizeVec} arg0
|
|
2559
2450
|
*/
|
|
2560
2451
|
set slots(arg0) {
|
|
2561
2452
|
wasm.__wbg_set_ship_slots(this.ptr, addHeapObject(arg0));
|
|
2562
2453
|
}
|
|
2563
2454
|
/**
|
|
2455
|
+
* @returns {number | undefined}
|
|
2564
2456
|
*/
|
|
2565
2457
|
get naked_firepower() {
|
|
2566
2458
|
const ret = wasm.ship_naked_firepower(this.ptr);
|
|
2567
2459
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2568
2460
|
}
|
|
2569
2461
|
/**
|
|
2462
|
+
* @returns {number | undefined}
|
|
2570
2463
|
*/
|
|
2571
2464
|
get naked_torpedo() {
|
|
2572
2465
|
const ret = wasm.ship_naked_torpedo(this.ptr);
|
|
2573
2466
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2574
2467
|
}
|
|
2575
2468
|
/**
|
|
2469
|
+
* @returns {number | undefined}
|
|
2576
2470
|
*/
|
|
2577
2471
|
get naked_armor() {
|
|
2578
2472
|
const ret = wasm.ship_naked_armor(this.ptr);
|
|
2579
2473
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2580
2474
|
}
|
|
2581
2475
|
/**
|
|
2476
|
+
* @returns {number | undefined}
|
|
2582
2477
|
*/
|
|
2583
2478
|
get naked_anti_air() {
|
|
2584
2479
|
const ret = wasm.ship_naked_anti_air(this.ptr);
|
|
2585
2480
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2586
2481
|
}
|
|
2587
2482
|
/**
|
|
2483
|
+
* @returns {number | undefined}
|
|
2588
2484
|
*/
|
|
2589
2485
|
get naked_evasion() {
|
|
2590
2486
|
const ret = wasm.ship_naked_evasion(this.ptr);
|
|
2591
2487
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2592
2488
|
}
|
|
2593
2489
|
/**
|
|
2490
|
+
* @returns {number | undefined}
|
|
2594
2491
|
*/
|
|
2595
2492
|
get naked_asw() {
|
|
2596
2493
|
const ret = wasm.ship_naked_asw(this.ptr);
|
|
2597
2494
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2598
2495
|
}
|
|
2599
2496
|
/**
|
|
2497
|
+
* @returns {number | undefined}
|
|
2600
2498
|
*/
|
|
2601
2499
|
get naked_los() {
|
|
2602
2500
|
const ret = wasm.ship_naked_los(this.ptr);
|
|
2603
2501
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2604
2502
|
}
|
|
2605
2503
|
/**
|
|
2504
|
+
* @returns {number | undefined}
|
|
2606
2505
|
*/
|
|
2607
2506
|
get firepower() {
|
|
2608
2507
|
const ret = wasm.ship_firepower(this.ptr);
|
|
2609
2508
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2610
2509
|
}
|
|
2611
2510
|
/**
|
|
2511
|
+
* @returns {number | undefined}
|
|
2612
2512
|
*/
|
|
2613
2513
|
get torpedo() {
|
|
2614
2514
|
const ret = wasm.ship_torpedo(this.ptr);
|
|
2615
2515
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2616
2516
|
}
|
|
2617
2517
|
/**
|
|
2518
|
+
* @returns {number | undefined}
|
|
2618
2519
|
*/
|
|
2619
2520
|
get armor() {
|
|
2620
2521
|
const ret = wasm.ship_armor(this.ptr);
|
|
2621
2522
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2622
2523
|
}
|
|
2623
2524
|
/**
|
|
2525
|
+
* @returns {number | undefined}
|
|
2624
2526
|
*/
|
|
2625
2527
|
get anti_air() {
|
|
2626
2528
|
const ret = wasm.ship_anti_air(this.ptr);
|
|
2627
2529
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2628
2530
|
}
|
|
2629
2531
|
/**
|
|
2532
|
+
* @returns {number | undefined}
|
|
2630
2533
|
*/
|
|
2631
2534
|
get evasion() {
|
|
2632
2535
|
const ret = wasm.ship_evasion(this.ptr);
|
|
2633
2536
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2634
2537
|
}
|
|
2635
2538
|
/**
|
|
2539
|
+
* @returns {number | undefined}
|
|
2636
2540
|
*/
|
|
2637
2541
|
get asw() {
|
|
2638
2542
|
const ret = wasm.ship_asw(this.ptr);
|
|
2639
2543
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2640
2544
|
}
|
|
2641
2545
|
/**
|
|
2546
|
+
* @returns {number | undefined}
|
|
2642
2547
|
*/
|
|
2643
2548
|
get los() {
|
|
2644
2549
|
const ret = wasm.ship_los(this.ptr);
|
|
@@ -2683,6 +2588,7 @@ class Ship {
|
|
|
2683
2588
|
return takeObject(ret);
|
|
2684
2589
|
}
|
|
2685
2590
|
/**
|
|
2591
|
+
* @returns {string}
|
|
2686
2592
|
*/
|
|
2687
2593
|
get name() {
|
|
2688
2594
|
try {
|
|
@@ -2697,6 +2603,7 @@ class Ship {
|
|
|
2697
2603
|
}
|
|
2698
2604
|
}
|
|
2699
2605
|
/**
|
|
2606
|
+
* @returns {string}
|
|
2700
2607
|
*/
|
|
2701
2608
|
get yomi() {
|
|
2702
2609
|
try {
|
|
@@ -2711,12 +2618,14 @@ class Ship {
|
|
|
2711
2618
|
}
|
|
2712
2619
|
}
|
|
2713
2620
|
/**
|
|
2621
|
+
* @returns {number}
|
|
2714
2622
|
*/
|
|
2715
2623
|
get stype() {
|
|
2716
2624
|
const ret = wasm.ship_stype(this.ptr);
|
|
2717
2625
|
return ret;
|
|
2718
2626
|
}
|
|
2719
2627
|
/**
|
|
2628
|
+
* @returns {number}
|
|
2720
2629
|
*/
|
|
2721
2630
|
get sort_id() {
|
|
2722
2631
|
const ret = wasm.ship_sort_id(this.ptr);
|
|
@@ -2730,18 +2639,21 @@ class Ship {
|
|
|
2730
2639
|
return ret;
|
|
2731
2640
|
}
|
|
2732
2641
|
/**
|
|
2642
|
+
* @returns {number}
|
|
2733
2643
|
*/
|
|
2734
2644
|
get slotnum() {
|
|
2735
2645
|
const ret = wasm.ship_slotnum(this.ptr);
|
|
2736
2646
|
return ret >>> 0;
|
|
2737
2647
|
}
|
|
2738
2648
|
/**
|
|
2649
|
+
* @returns {number}
|
|
2739
2650
|
*/
|
|
2740
2651
|
get next_id() {
|
|
2741
2652
|
const ret = wasm.ship_next_id(this.ptr);
|
|
2742
2653
|
return ret;
|
|
2743
2654
|
}
|
|
2744
2655
|
/**
|
|
2656
|
+
* @returns {boolean}
|
|
2745
2657
|
*/
|
|
2746
2658
|
get useful() {
|
|
2747
2659
|
const ret = wasm.ship_useful(this.ptr);
|
|
@@ -2916,60 +2828,70 @@ class Ship {
|
|
|
2916
2828
|
return ret !== 0;
|
|
2917
2829
|
}
|
|
2918
2830
|
/**
|
|
2831
|
+
* @returns {number | undefined}
|
|
2919
2832
|
*/
|
|
2920
2833
|
get max_hp() {
|
|
2921
2834
|
const ret = wasm.ship_max_hp(this.ptr);
|
|
2922
2835
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2923
2836
|
}
|
|
2924
2837
|
/**
|
|
2838
|
+
* @returns {number}
|
|
2925
2839
|
*/
|
|
2926
2840
|
get max_ammo() {
|
|
2927
2841
|
const ret = wasm.ship_max_ammo(this.ptr);
|
|
2928
2842
|
return ret;
|
|
2929
2843
|
}
|
|
2930
2844
|
/**
|
|
2845
|
+
* @returns {number}
|
|
2931
2846
|
*/
|
|
2932
2847
|
get max_fuel() {
|
|
2933
2848
|
const ret = wasm.ship_max_fuel(this.ptr);
|
|
2934
2849
|
return ret;
|
|
2935
2850
|
}
|
|
2936
2851
|
/**
|
|
2852
|
+
* @returns {number | undefined}
|
|
2937
2853
|
*/
|
|
2938
2854
|
get naked_range() {
|
|
2939
2855
|
const ret = wasm.ship_naked_range(this.ptr);
|
|
2940
2856
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2941
2857
|
}
|
|
2942
2858
|
/**
|
|
2859
|
+
* @returns {number}
|
|
2943
2860
|
*/
|
|
2944
2861
|
get naked_speed() {
|
|
2945
2862
|
const ret = wasm.ship_naked_speed(this.ptr);
|
|
2946
2863
|
return ret;
|
|
2947
2864
|
}
|
|
2948
2865
|
/**
|
|
2866
|
+
* @returns {number | undefined}
|
|
2949
2867
|
*/
|
|
2950
2868
|
get luck() {
|
|
2951
2869
|
const ret = wasm.ship_luck(this.ptr);
|
|
2952
2870
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2953
2871
|
}
|
|
2954
2872
|
/**
|
|
2873
|
+
* @returns {number | undefined}
|
|
2955
2874
|
*/
|
|
2956
2875
|
get range() {
|
|
2957
2876
|
const ret = wasm.ship_range(this.ptr);
|
|
2958
2877
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
2959
2878
|
}
|
|
2960
2879
|
/**
|
|
2880
|
+
* @returns {number}
|
|
2961
2881
|
*/
|
|
2962
2882
|
get speed() {
|
|
2963
2883
|
const ret = wasm.ship_speed(this.ptr);
|
|
2964
2884
|
return ret;
|
|
2965
2885
|
}
|
|
2966
2886
|
/**
|
|
2887
|
+
* @returns {number}
|
|
2967
2888
|
*/
|
|
2968
2889
|
get accuracy() {
|
|
2969
2890
|
const ret = wasm.ship_accuracy(this.ptr);
|
|
2970
2891
|
return ret;
|
|
2971
2892
|
}
|
|
2972
2893
|
/**
|
|
2894
|
+
* @returns {number}
|
|
2973
2895
|
*/
|
|
2974
2896
|
get innate_torpedo_accuracy() {
|
|
2975
2897
|
const ret = wasm.ship_innate_torpedo_accuracy(this.ptr);
|
|
@@ -3042,6 +2964,23 @@ class Ship {
|
|
|
3042
2964
|
}
|
|
3043
2965
|
}
|
|
3044
2966
|
/**
|
|
2967
|
+
* 加重対空
|
|
2968
|
+
* @param {Side} side
|
|
2969
|
+
* @returns {number | undefined}
|
|
2970
|
+
*/
|
|
2971
|
+
ship_adjusted_anti_air(side) {
|
|
2972
|
+
try {
|
|
2973
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2974
|
+
wasm.ship_ship_adjusted_anti_air(retptr, this.ptr, addHeapObject(side));
|
|
2975
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2976
|
+
var r2 = getFloat64Memory0()[retptr / 8 + 1];
|
|
2977
|
+
return r0 === 0 ? undefined : r2;
|
|
2978
|
+
} finally {
|
|
2979
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
/**
|
|
2983
|
+
* 艦隊対空補正
|
|
3045
2984
|
* @returns {number}
|
|
3046
2985
|
*/
|
|
3047
2986
|
fleet_anti_air_mod() {
|
|
@@ -3153,12 +3092,6 @@ class Ship {
|
|
|
3153
3092
|
}
|
|
3154
3093
|
}
|
|
3155
3094
|
/**
|
|
3156
|
-
* @param {number} value
|
|
3157
|
-
*/
|
|
3158
|
-
take_damage(value) {
|
|
3159
|
-
wasm.ship_take_damage(this.ptr, value);
|
|
3160
|
-
}
|
|
3161
|
-
/**
|
|
3162
3095
|
* @returns {number | undefined}
|
|
3163
3096
|
*/
|
|
3164
3097
|
state_day_gunfit_accuracy() {
|
|
@@ -3198,15 +3131,6 @@ class Ship {
|
|
|
3198
3131
|
}
|
|
3199
3132
|
module.exports.Ship = Ship;
|
|
3200
3133
|
|
|
3201
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3202
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
3203
|
-
return addHeapObject(ret);
|
|
3204
|
-
};
|
|
3205
|
-
|
|
3206
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3207
|
-
takeObject(arg0);
|
|
3208
|
-
};
|
|
3209
|
-
|
|
3210
3134
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
3211
3135
|
const obj = getObject(arg1);
|
|
3212
3136
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -3216,13 +3140,17 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
3216
3140
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
3217
3141
|
};
|
|
3218
3142
|
|
|
3219
|
-
module.exports.
|
|
3220
|
-
|
|
3143
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
3144
|
+
takeObject(arg0);
|
|
3145
|
+
};
|
|
3146
|
+
|
|
3147
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3148
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3221
3149
|
return addHeapObject(ret);
|
|
3222
3150
|
};
|
|
3223
3151
|
|
|
3224
|
-
module.exports.
|
|
3225
|
-
const ret =
|
|
3152
|
+
module.exports.__wbg_createEquipmentBonuses_6bfec5b900d74071 = function(arg0, arg1) {
|
|
3153
|
+
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
3226
3154
|
return addHeapObject(ret);
|
|
3227
3155
|
};
|
|
3228
3156
|
|
|
@@ -3231,6 +3159,11 @@ module.exports.__wbg_ship_new = function(arg0) {
|
|
|
3231
3159
|
return addHeapObject(ret);
|
|
3232
3160
|
};
|
|
3233
3161
|
|
|
3162
|
+
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
3163
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
3164
|
+
return addHeapObject(ret);
|
|
3165
|
+
};
|
|
3166
|
+
|
|
3234
3167
|
module.exports.__wbg_new_693216e109162396 = function() {
|
|
3235
3168
|
const ret = new Error();
|
|
3236
3169
|
return addHeapObject(ret);
|
|
@@ -3306,17 +3239,17 @@ module.exports.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
|
|
|
3306
3239
|
return addHeapObject(ret);
|
|
3307
3240
|
};
|
|
3308
3241
|
|
|
3309
|
-
module.exports.
|
|
3242
|
+
module.exports.__wbg_new_ee1a3da85465d621 = function() {
|
|
3310
3243
|
const ret = new Array();
|
|
3311
3244
|
return addHeapObject(ret);
|
|
3312
3245
|
};
|
|
3313
3246
|
|
|
3314
|
-
module.exports.
|
|
3247
|
+
module.exports.__wbg_newnoargs_971e9a5abe185139 = function(arg0, arg1) {
|
|
3315
3248
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3316
3249
|
return addHeapObject(ret);
|
|
3317
3250
|
};
|
|
3318
3251
|
|
|
3319
|
-
module.exports.
|
|
3252
|
+
module.exports.__wbg_call_33d7bcddbbfa394a = function() { return handleError(function (arg0, arg1) {
|
|
3320
3253
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
3321
3254
|
return addHeapObject(ret);
|
|
3322
3255
|
}, arguments) };
|
|
@@ -3326,22 +3259,22 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
3326
3259
|
return addHeapObject(ret);
|
|
3327
3260
|
};
|
|
3328
3261
|
|
|
3329
|
-
module.exports.
|
|
3262
|
+
module.exports.__wbg_self_fd00a1ef86d1b2ed = function() { return handleError(function () {
|
|
3330
3263
|
const ret = self.self;
|
|
3331
3264
|
return addHeapObject(ret);
|
|
3332
3265
|
}, arguments) };
|
|
3333
3266
|
|
|
3334
|
-
module.exports.
|
|
3267
|
+
module.exports.__wbg_window_6f6e346d8bbd61d7 = function() { return handleError(function () {
|
|
3335
3268
|
const ret = window.window;
|
|
3336
3269
|
return addHeapObject(ret);
|
|
3337
3270
|
}, arguments) };
|
|
3338
3271
|
|
|
3339
|
-
module.exports.
|
|
3272
|
+
module.exports.__wbg_globalThis_3348936ac49df00a = function() { return handleError(function () {
|
|
3340
3273
|
const ret = globalThis.globalThis;
|
|
3341
3274
|
return addHeapObject(ret);
|
|
3342
3275
|
}, arguments) };
|
|
3343
3276
|
|
|
3344
|
-
module.exports.
|
|
3277
|
+
module.exports.__wbg_global_67175caf56f55ca9 = function() { return handleError(function () {
|
|
3345
3278
|
const ret = global.global;
|
|
3346
3279
|
return addHeapObject(ret);
|
|
3347
3280
|
}, arguments) };
|
|
@@ -3351,36 +3284,36 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
3351
3284
|
return ret;
|
|
3352
3285
|
};
|
|
3353
3286
|
|
|
3354
|
-
module.exports.
|
|
3287
|
+
module.exports.__wbg_push_0bc7fce4a139a883 = function(arg0, arg1) {
|
|
3355
3288
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
3356
3289
|
return ret;
|
|
3357
3290
|
};
|
|
3358
3291
|
|
|
3359
|
-
module.exports.
|
|
3292
|
+
module.exports.__wbg_buffer_34f5ec9f8a838ba0 = function(arg0) {
|
|
3360
3293
|
const ret = getObject(arg0).buffer;
|
|
3361
3294
|
return addHeapObject(ret);
|
|
3362
3295
|
};
|
|
3363
3296
|
|
|
3364
|
-
module.exports.
|
|
3297
|
+
module.exports.__wbg_new_cda198d9dbc6d7ea = function(arg0) {
|
|
3365
3298
|
const ret = new Uint8Array(getObject(arg0));
|
|
3366
3299
|
return addHeapObject(ret);
|
|
3367
3300
|
};
|
|
3368
3301
|
|
|
3369
|
-
module.exports.
|
|
3302
|
+
module.exports.__wbg_set_1a930cfcda1a8067 = function(arg0, arg1, arg2) {
|
|
3370
3303
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3371
3304
|
};
|
|
3372
3305
|
|
|
3373
|
-
module.exports.
|
|
3306
|
+
module.exports.__wbg_length_51f19f73d6d9eff3 = function(arg0) {
|
|
3374
3307
|
const ret = getObject(arg0).length;
|
|
3375
3308
|
return ret;
|
|
3376
3309
|
};
|
|
3377
3310
|
|
|
3378
|
-
module.exports.
|
|
3311
|
+
module.exports.__wbg_newwithlength_66e5530e7079ea1b = function(arg0) {
|
|
3379
3312
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3380
3313
|
return addHeapObject(ret);
|
|
3381
3314
|
};
|
|
3382
3315
|
|
|
3383
|
-
module.exports.
|
|
3316
|
+
module.exports.__wbg_subarray_270ff8dd5582c1ac = function(arg0, arg1, arg2) {
|
|
3384
3317
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3385
3318
|
return addHeapObject(ret);
|
|
3386
3319
|
};
|
|
@@ -3402,9 +3335,3 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
|
3402
3335
|
wasm = wasmInstance.exports;
|
|
3403
3336
|
module.exports.__wasm = wasm;
|
|
3404
3337
|
|
|
3405
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
3406
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
3407
|
-
cachedUint16Memory0 = new Uint16Array(wasm.memory.buffer);
|
|
3408
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
3409
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
3410
|
-
|