sonolus-bandori-engine 0.6.5 → 0.6.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.
Binary file
package/dist/EngineData CHANGED
Binary file
package/dist/Resource.js CHANGED
@@ -6,17 +6,17 @@ const fs_1 = require("fs");
6
6
  const path_1 = require("path");
7
7
  class Resource {
8
8
  constructor(path) {
9
- this.path = path_1.resolve(__dirname, path);
9
+ this.path = (0, path_1.resolve)(__dirname, path);
10
10
  }
11
11
  get hash() {
12
12
  if (!this._hash) {
13
- this._hash = crypto_1.createHash('sha1').update(this.buffer).digest('hex');
13
+ this._hash = (0, crypto_1.createHash)('sha1').update(this.buffer).digest('hex');
14
14
  }
15
15
  return this._hash;
16
16
  }
17
17
  get buffer() {
18
18
  if (!this._buffer) {
19
- this._buffer = fs_1.readFileSync(this.path);
19
+ this._buffer = (0, fs_1.readFileSync)(this.path);
20
20
  }
21
21
  return this._buffer;
22
22
  }
package/dist/convert.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SLevelData } from 'sonolus.js';
1
+ import { LevelData } from 'sonolus-core';
2
2
  export declare type ChartObject = SingleObject | DirectionalObject | SlideObject | LongObject | BPMObject | SystemObject;
3
3
  declare type ObjectBase = {
4
4
  beat: number;
@@ -48,5 +48,5 @@ export declare function fromBestdori(chart: ChartObject[], archetypes: {
48
48
  slideFlickNoteIndex: number;
49
49
  straightSliderIndex: number;
50
50
  curvedSliderIndex: number;
51
- }): SLevelData;
51
+ }): LevelData;
52
52
  export {};
package/dist/convert.js CHANGED
@@ -82,7 +82,7 @@ function fromBestdori(chart, archetypes) {
82
82
  case 'Long': {
83
83
  let segments = [];
84
84
  const hasHidden = chartObject.connections.some((connection) => connection.hidden);
85
- const canBeLong = chartObject.connections.length === 2 &&
85
+ const isLong = chartObject.connections.length === 2 &&
86
86
  chartObject.connections[0].lane ===
87
87
  chartObject.connections[1].lane
88
88
  ? 1
@@ -126,7 +126,7 @@ function fromBestdori(chart, archetypes) {
126
126
  lane,
127
127
  0,
128
128
  0,
129
- canBeLong,
129
+ isLong,
130
130
  ],
131
131
  },
132
132
  },
package/dist/index.d.ts CHANGED
@@ -1,23 +1,23 @@
1
- import { SLevelData } from 'sonolus.js';
1
+ import { LevelData } from 'sonolus-core';
2
2
  import { ChartObject } from './convert';
3
3
  import { Resource } from './Resource';
4
- export declare const version = "0.6.5";
4
+ export declare const version = "0.6.7";
5
5
  export declare const engineInfo: {
6
6
  readonly name: "bandori";
7
- readonly version: 4;
7
+ readonly version: 6;
8
8
  readonly title: {
9
9
  readonly en: "BanG Dream!";
10
10
  readonly ja: "バンドリ!";
11
11
  readonly ko: "뱅드림!";
12
- readonly 'zh-hans': "BanG Dream!";
13
- readonly 'zh-hant': "BanG Dream!";
12
+ readonly zhs: "BanG Dream!";
13
+ readonly zht: "BanG Dream!";
14
14
  };
15
15
  readonly subtitle: {
16
16
  readonly en: "BanG Dream! Girls Band Party!";
17
17
  readonly ja: "バンドリ! ガールズバンドパーティ!";
18
18
  readonly ko: "뱅드림! 걸즈 밴드 파티!";
19
- readonly 'zh-hans': "BanG Dream! 少女乐团派对!";
20
- readonly 'zh-hant': "BanG Dream! 少女樂團派對";
19
+ readonly zhs: "BanG Dream! 少女乐团派对!";
20
+ readonly zht: "BanG Dream! 少女樂團派對";
21
21
  };
22
22
  readonly author: {
23
23
  readonly en: "Burrito";
@@ -29,4 +29,4 @@ export declare const engineInfo: {
29
29
  export declare const engineConfiguration: Resource;
30
30
  export declare const engineData: Resource;
31
31
  export declare const engineThumbnail: Resource;
32
- export declare function fromBestdori(chart: ChartObject[]): SLevelData;
32
+ export declare function fromBestdori(chart: ChartObject[]): LevelData;
package/dist/index.js CHANGED
@@ -5,23 +5,23 @@ const convert_1 = require("./convert");
5
5
  const Resource_1 = require("./Resource");
6
6
  // eslint-disable-next-line @typescript-eslint/no-var-requires
7
7
  const archetypes = require('./archetypes');
8
- exports.version = '0.6.5';
8
+ exports.version = '0.6.7';
9
9
  exports.engineInfo = {
10
10
  name: 'bandori',
11
- version: 4,
11
+ version: 6,
12
12
  title: {
13
13
  en: 'BanG Dream!',
14
14
  ja: 'バンドリ!',
15
15
  ko: '뱅드림!',
16
- 'zh-hans': 'BanG Dream!',
17
- 'zh-hant': 'BanG Dream!',
16
+ zhs: 'BanG Dream!',
17
+ zht: 'BanG Dream!',
18
18
  },
19
19
  subtitle: {
20
20
  en: 'BanG Dream! Girls Band Party!',
21
21
  ja: 'バンドリ! ガールズバンドパーティ!',
22
22
  ko: '뱅드림! 걸즈 밴드 파티!',
23
- 'zh-hans': 'BanG Dream! 少女乐团派对!',
24
- 'zh-hant': 'BanG Dream! 少女樂團派對',
23
+ zhs: 'BanG Dream! 少女乐团派对!',
24
+ zht: 'BanG Dream! 少女樂團派對',
25
25
  },
26
26
  author: {
27
27
  en: 'Burrito',
@@ -42,6 +42,6 @@ exports.engineConfiguration = new Resource_1.Resource('EngineConfiguration');
42
42
  exports.engineData = new Resource_1.Resource('EngineData');
43
43
  exports.engineThumbnail = new Resource_1.Resource('thumbnail.png');
44
44
  function fromBestdori(chart) {
45
- return convert_1.fromBestdori(chart, archetypes);
45
+ return (0, convert_1.fromBestdori)(chart, archetypes);
46
46
  }
47
47
  exports.fromBestdori = fromBestdori;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-bandori-engine",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "A recreation of BanG Dream! Girls Band Party engine in Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:NonSpicyBurrito/sonolus-bandori-engine",
@@ -13,22 +13,23 @@
13
13
  "dist"
14
14
  ],
15
15
  "scripts": {
16
- "lint": "eslint --ext .ts src/",
17
- "serve": "nodemon",
16
+ "lint": "tsc -p . --noEmit && eslint --ext .ts src/",
17
+ "serve": "ts-node-dev --respawn --transpile-only ./src/serve",
18
18
  "build": "ts-node ./src/build && tsc -p ./tsconfig.lib.json"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/fs-extra": "^9.0.12",
22
- "@typescript-eslint/eslint-plugin": "^4.28.5",
23
- "@typescript-eslint/parser": "^4.28.5",
24
- "eslint": "^7.31.0",
25
- "eslint-config-prettier": "^8.3.0",
26
- "eslint-plugin-prettier": "^3.4.0",
27
- "fs-extra": "^10.0.0",
28
- "nodemon": "^2.0.12",
29
- "prettier": "^2.3.2",
30
- "sonolus.js": "^3.1.0",
31
- "ts-node": "^10.1.0",
32
- "typescript": "^4.3.5"
21
+ "@types/fs-extra": "^9.0.13",
22
+ "@typescript-eslint/eslint-plugin": "^5.20.0",
23
+ "@typescript-eslint/parser": "^5.20.0",
24
+ "eslint": "^8.13.0",
25
+ "eslint-config-prettier": "^8.5.0",
26
+ "eslint-plugin-prettier": "^4.0.0",
27
+ "fs-extra": "^10.1.0",
28
+ "prettier": "^2.6.2",
29
+ "sonolus-core": "^2.0.0",
30
+ "sonolus.js": "^5.2.3",
31
+ "ts-node": "^10.7.0",
32
+ "ts-node-dev": "^1.1.8",
33
+ "typescript": "^4.6.3"
33
34
  }
34
35
  }