@r2o3/rgskin-nodejs 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -27,7 +27,7 @@ A library for loading and creating skins for various rhythm games. It supports c
27
27
  Add this to your `Cargo.toml`:
28
28
  ```toml
29
29
  [dependencies]
30
- rgskin = "0.0.2"
30
+ rgskin = "0.0.3"
31
31
  ```
32
32
 
33
33
  Or run:
package/package.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "collaborators": [
4
4
  "menvae"
5
5
  ],
6
- "description": "A library for converting rhythm game skins.",
7
- "version": "0.0.2",
6
+ "description": "A library for converting, loading and creating skins for various rhythm games.",
7
+ "version": "0.0.3",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
package/rgskin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
 
5
- const { createDirAll, isDirectory, joinPath, readDir, readFileBytes, readFileString, writeFile } = require(String.raw`./snippets/rgskin-65f1492efda13f32/inline0.js`);
5
+ const { createDirAll, isDirectory, joinPath, readDir, readFileBytes, readFileString, writeFile } = require(String.raw`./snippets/rgskin-ff9cecd6cd32cd1f/inline0.js`);
6
6
 
7
7
  function addToExternrefTable0(obj) {
8
8
  const idx = wasm.__externref_table_alloc();
@@ -335,7 +335,7 @@ class BinaryStore {
335
335
  wasm.__wbg_binarystore_free(ptr, 0);
336
336
  }
337
337
  constructor() {
338
- const ret = wasm.binarystore_new();
338
+ const ret = wasm.binarystore_new_wasm();
339
339
  this.__wbg_ptr = ret >>> 0;
340
340
  BinaryStoreFinalization.register(this, this.__wbg_ptr, this);
341
341
  return this;
@@ -2388,7 +2388,7 @@ class OsuSkin {
2388
2388
  * @returns {TextureStore}
2389
2389
  */
2390
2390
  get textures() {
2391
- const ret = wasm.__wbg_get_genericmaniaskin_textures(this.__wbg_ptr);
2391
+ const ret = wasm.__wbg_get_osuskin_textures(this.__wbg_ptr);
2392
2392
  return TextureStore.__wrap(ret);
2393
2393
  }
2394
2394
  /**
@@ -2397,13 +2397,13 @@ class OsuSkin {
2397
2397
  set textures(arg0) {
2398
2398
  _assertClass(arg0, TextureStore);
2399
2399
  var ptr0 = arg0.__destroy_into_raw();
2400
- wasm.__wbg_set_genericmaniaskin_textures(this.__wbg_ptr, ptr0);
2400
+ wasm.__wbg_set_osuskin_textures(this.__wbg_ptr, ptr0);
2401
2401
  }
2402
2402
  /**
2403
2403
  * @returns {BinaryStore}
2404
2404
  */
2405
2405
  get samples() {
2406
- const ret = wasm.__wbg_get_genericmaniaskin_samples(this.__wbg_ptr);
2406
+ const ret = wasm.__wbg_get_osuskin_samples(this.__wbg_ptr);
2407
2407
  return BinaryStore.__wrap(ret);
2408
2408
  }
2409
2409
  /**
@@ -2412,7 +2412,7 @@ class OsuSkin {
2412
2412
  set samples(arg0) {
2413
2413
  _assertClass(arg0, BinaryStore);
2414
2414
  var ptr0 = arg0.__destroy_into_raw();
2415
- wasm.__wbg_set_genericmaniaskin_samples(this.__wbg_ptr, ptr0);
2415
+ wasm.__wbg_set_osuskin_samples(this.__wbg_ptr, ptr0);
2416
2416
  }
2417
2417
  /**
2418
2418
  * @param {OsuSkinIni} skin_ini
@@ -3074,7 +3074,7 @@ class TextureStore {
3074
3074
  wasm.__wbg_texturestore_free(ptr, 0);
3075
3075
  }
3076
3076
  constructor() {
3077
- const ret = wasm.texturestore_new();
3077
+ const ret = wasm.texturestore_new_wasm();
3078
3078
  this.__wbg_ptr = ret >>> 0;
3079
3079
  TextureStoreFinalization.register(this, this.__wbg_ptr, this);
3080
3080
  return this;
@@ -3542,7 +3542,7 @@ exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
3542
3542
  throw new Error(getStringFromWasm0(arg0, arg1));
3543
3543
  };
3544
3544
 
3545
- exports.__wbg_createDirAll_ed59516d327d16d7 = function() { return handleError(function (arg0, arg1) {
3545
+ exports.__wbg_createDirAll_b4ab3f4be6b815d3 = function() { return handleError(function (arg0, arg1) {
3546
3546
  createDirAll(getStringFromWasm0(arg0, arg1));
3547
3547
  }, arguments) };
3548
3548
 
@@ -3561,12 +3561,12 @@ exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
3561
3561
  return ret;
3562
3562
  };
3563
3563
 
3564
- exports.__wbg_isDirectory_d9447fc59d890759 = function() { return handleError(function (arg0, arg1) {
3564
+ exports.__wbg_isDirectory_b8396ef27601feb9 = function() { return handleError(function (arg0, arg1) {
3565
3565
  const ret = isDirectory(getStringFromWasm0(arg0, arg1));
3566
3566
  return ret;
3567
3567
  }, arguments) };
3568
3568
 
3569
- exports.__wbg_joinPath_09e3f297160d67ae = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3569
+ exports.__wbg_joinPath_56fee88db03b855c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3570
3570
  const ret = joinPath(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3571
3571
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3572
3572
  const len1 = WASM_VECTOR_LEN;
@@ -3618,17 +3618,17 @@ exports.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
3618
3618
  return ret;
3619
3619
  };
3620
3620
 
3621
- exports.__wbg_readDir_d68d219c55b1d4c0 = function() { return handleError(function (arg0, arg1) {
3621
+ exports.__wbg_readDir_cb6d41e9444bdebf = function() { return handleError(function (arg0, arg1) {
3622
3622
  const ret = readDir(getStringFromWasm0(arg0, arg1));
3623
3623
  return ret;
3624
3624
  }, arguments) };
3625
3625
 
3626
- exports.__wbg_readFileBytes_2c1b7dda2708a44c = function() { return handleError(function (arg0, arg1) {
3626
+ exports.__wbg_readFileBytes_4ed95deb280a788e = function() { return handleError(function (arg0, arg1) {
3627
3627
  const ret = readFileBytes(getStringFromWasm0(arg0, arg1));
3628
3628
  return ret;
3629
3629
  }, arguments) };
3630
3630
 
3631
- exports.__wbg_readFileString_fecdefcb119365ed = function() { return handleError(function (arg0, arg1, arg2) {
3631
+ exports.__wbg_readFileString_e878ad0e1ac6272c = function() { return handleError(function (arg0, arg1, arg2) {
3632
3632
  const ret = readFileString(getStringFromWasm0(arg1, arg2));
3633
3633
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3634
3634
  const len1 = WASM_VECTOR_LEN;
@@ -3636,7 +3636,7 @@ exports.__wbg_readFileString_fecdefcb119365ed = function() { return handleError(
3636
3636
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3637
3637
  }, arguments) };
3638
3638
 
3639
- exports.__wbg_writeFile_be43d94d078ac294 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3639
+ exports.__wbg_writeFile_f73926b68eea6ec7 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3640
3640
  writeFile(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
3641
3641
  }, arguments) };
3642
3642
 
package/rgskin_bg.wasm CHANGED
Binary file