sonolus-bandori-engine 0.6.3 → 0.6.6

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
@@ -13,14 +13,24 @@ A recreation of BanG Dream! Girls Band Party engine in [Sonolus](https://sonolus
13
13
  npm install sonolus-bandori-engine --save
14
14
  ```
15
15
 
16
- ## Custom Sprites
16
+ ## Custom Resources
17
17
 
18
18
  Engine ID: `1`
19
19
 
20
- |ID|Sprite|Bandori Asset Path|
21
- |---|---|---|
22
- |1|Stage|`/ingameskin/fieldskin/{name}/bg_line_rhythm.png`|
23
- |2|Judgment Line|`/ingameskin/fieldskin/{name}/game_play_line.png`|
20
+ ### Skin Sprites
21
+
22
+ | ID | Sprite | Bandori Asset Path |
23
+ | --- | ------------- | ------------------------------------------------- |
24
+ | 1 | Stage | `/ingameskin/fieldskin/{name}/bg_line_rhythm.png` |
25
+ | 2 | Judgment Line | `/ingameskin/fieldskin/{name}/game_play_line.png` |
26
+
27
+ ### Effect Clips
28
+
29
+ | ID | Sprite | Bandori Asset Path |
30
+ | --- | ------------------------ | ---------------------------------------------- |
31
+ | 1 | Directional Flick Single | `/sound/tapseskin/{name}/directional_fl.mp3` |
32
+ | 2 | Directional Flick Double | `/sound/tapseskin/{name}/directional_fl_2.mp3` |
33
+ | 3 | Directional Flick Triple | `/sound/tapseskin/{name}/directional_fl_3.mp3` |
24
34
 
25
35
  ## Documentation
26
36
 
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/index.d.ts CHANGED
@@ -1,32 +1,32 @@
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.3";
4
+ export declare const version = "0.6.6";
5
5
  export declare const engineInfo: {
6
- name: string;
7
- version: number;
8
- title: {
9
- en: string;
10
- ja: string;
11
- ko: string;
12
- 'zh-hans': string;
13
- 'zh-hant': string;
6
+ readonly name: "bandori";
7
+ readonly version: 5;
8
+ readonly title: {
9
+ readonly en: "BanG Dream!";
10
+ readonly ja: "バンドリ!";
11
+ readonly ko: "뱅드림!";
12
+ readonly 'zh-hans': "BanG Dream!";
13
+ readonly 'zh-hant': "BanG Dream!";
14
14
  };
15
- subtitle: {
16
- en: string;
17
- ja: string;
18
- ko: string;
19
- 'zh-hans': string;
20
- 'zh-hant': string;
15
+ readonly subtitle: {
16
+ readonly en: "BanG Dream! Girls Band Party!";
17
+ readonly ja: "バンドリ! ガールズバンドパーティ!";
18
+ readonly ko: "뱅드림! 걸즈 밴드 파티!";
19
+ readonly 'zh-hans': "BanG Dream! 少女乐团派对!";
20
+ readonly 'zh-hant': "BanG Dream! 少女樂團派對";
21
21
  };
22
- author: {
23
- en: string;
22
+ readonly author: {
23
+ readonly en: "Burrito";
24
24
  };
25
- description: {
26
- en: string;
25
+ readonly description: {
26
+ readonly en: string;
27
27
  };
28
28
  };
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,10 +5,10 @@ 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.3';
8
+ exports.version = '0.6.6';
9
9
  exports.engineInfo = {
10
10
  name: 'bandori',
11
- version: 3,
11
+ version: 5,
12
12
  title: {
13
13
  en: 'BanG Dream!',
14
14
  ja: 'バンドリ!',
@@ -30,7 +30,10 @@ exports.engineInfo = {
30
30
  en: [
31
31
  'A recreation of BanG Dream! Girls Band Party engine in Sonolus.',
32
32
  '',
33
- 'GitHub Repository',
33
+ 'Version:',
34
+ exports.version,
35
+ '',
36
+ 'GitHub Repository:',
34
37
  'https://github.com/NonSpicyBurrito/sonolus-bandori-engine',
35
38
  ].join('\n'),
36
39
  },
@@ -39,6 +42,6 @@ exports.engineConfiguration = new Resource_1.Resource('EngineConfiguration');
39
42
  exports.engineData = new Resource_1.Resource('EngineData');
40
43
  exports.engineThumbnail = new Resource_1.Resource('thumbnail.png');
41
44
  function fromBestdori(chart) {
42
- return convert_1.fromBestdori(chart, archetypes);
45
+ return (0, convert_1.fromBestdori)(chart, archetypes);
43
46
  }
44
47
  exports.fromBestdori = fromBestdori;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-bandori-engine",
3
- "version": "0.6.3",
3
+ "version": "0.6.6",
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": "^2.2.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": "^1.1.2",
30
+ "sonolus.js": "^5.2.1",
31
+ "ts-node": "^10.7.0",
32
+ "ts-node-dev": "^1.1.8",
33
+ "typescript": "^4.6.3"
33
34
  }
34
35
  }