aoe2rec-js 0.1.6 → 0.1.7
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/aoe2rec_js.d.ts +2 -1
- package/aoe2rec_js_bg.js +30 -17
- package/aoe2rec_js_bg.wasm +0 -0
- package/package.json +1 -1
package/aoe2rec_js.d.ts
CHANGED
|
@@ -92,12 +92,13 @@ export class SavegameHeader {
|
|
|
92
92
|
timestamp: number;
|
|
93
93
|
game_settings: GameSettings;
|
|
94
94
|
replay: Replay;
|
|
95
|
-
teams: (Team)[];
|
|
96
95
|
}
|
|
97
96
|
export class SavegameSummary {
|
|
98
97
|
private constructor();
|
|
99
98
|
free(): void;
|
|
100
99
|
header: SavegameHeader;
|
|
100
|
+
teams: (Team)[];
|
|
101
|
+
duration: number;
|
|
101
102
|
}
|
|
102
103
|
export class Team {
|
|
103
104
|
private constructor();
|
package/aoe2rec_js_bg.js
CHANGED
|
@@ -1371,23 +1371,6 @@ export class SavegameHeader {
|
|
|
1371
1371
|
var ptr0 = arg0.__destroy_into_raw();
|
|
1372
1372
|
wasm.__wbg_set_savegameheader_replay(this.__wbg_ptr, ptr0);
|
|
1373
1373
|
}
|
|
1374
|
-
/**
|
|
1375
|
-
* @returns {(Team)[]}
|
|
1376
|
-
*/
|
|
1377
|
-
get teams() {
|
|
1378
|
-
const ret = wasm.__wbg_get_savegameheader_teams(this.__wbg_ptr);
|
|
1379
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1380
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1381
|
-
return v1;
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
* @param {(Team)[]} arg0
|
|
1385
|
-
*/
|
|
1386
|
-
set teams(arg0) {
|
|
1387
|
-
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1388
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1389
|
-
wasm.__wbg_set_savegameheader_teams(this.__wbg_ptr, ptr0, len0);
|
|
1390
|
-
}
|
|
1391
1374
|
}
|
|
1392
1375
|
|
|
1393
1376
|
const SavegameSummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1430,6 +1413,36 @@ export class SavegameSummary {
|
|
|
1430
1413
|
var ptr0 = arg0.__destroy_into_raw();
|
|
1431
1414
|
wasm.__wbg_set_savegamesummary_header(this.__wbg_ptr, ptr0);
|
|
1432
1415
|
}
|
|
1416
|
+
/**
|
|
1417
|
+
* @returns {(Team)[]}
|
|
1418
|
+
*/
|
|
1419
|
+
get teams() {
|
|
1420
|
+
const ret = wasm.__wbg_get_savegamesummary_teams(this.__wbg_ptr);
|
|
1421
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1422
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1423
|
+
return v1;
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* @param {(Team)[]} arg0
|
|
1427
|
+
*/
|
|
1428
|
+
set teams(arg0) {
|
|
1429
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1430
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1431
|
+
wasm.__wbg_set_savegamesummary_teams(this.__wbg_ptr, ptr0, len0);
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* @returns {number}
|
|
1435
|
+
*/
|
|
1436
|
+
get duration() {
|
|
1437
|
+
const ret = wasm.__wbg_get_savegamesummary_duration(this.__wbg_ptr);
|
|
1438
|
+
return ret >>> 0;
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* @param {number} arg0
|
|
1442
|
+
*/
|
|
1443
|
+
set duration(arg0) {
|
|
1444
|
+
wasm.__wbg_set_savegamesummary_duration(this.__wbg_ptr, arg0);
|
|
1445
|
+
}
|
|
1433
1446
|
}
|
|
1434
1447
|
|
|
1435
1448
|
const TeamFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/aoe2rec_js_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"Stéphane Bisinger <stephane@sbisinger.ch>"
|
|
6
6
|
],
|
|
7
7
|
"description": "WASM version of aoe2rec to parse Age of Empires II: Definitive Edition recorded games in the browser",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.7",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"files": [
|
|
11
11
|
"aoe2rec_js_bg.wasm",
|