sonolus-bandori-engine 1.5.6 → 1.6.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/README.md +1 -1
- package/dist/bestdori/{convert.d.cts → convert.d.ts} +1 -1
- package/dist/bestdori/{convert.cjs → convert.js} +12 -15
- package/dist/bestdori/index.js +1 -0
- package/dist/{index.d.cts → index.d.ts} +3 -3
- package/dist/index.js +35 -0
- package/package.json +17 -16
- package/dist/bestdori/index.cjs +0 -2
- package/dist/index.cjs +0 -53
- /package/dist/bestdori/{index.d.cts → index.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -71,4 +71,4 @@ The following assets are exposed as package entry points:
|
|
|
71
71
|
- `EngineTutorialData`
|
|
72
72
|
- `EngineThumbnail`
|
|
73
73
|
|
|
74
|
-
In Node.js, you can obtain path to assets using `
|
|
74
|
+
In Node.js, you can obtain path to assets using `import.meta.resolve('sonolus-bandori-engine/EngineConfiguration')`.
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.bestdoriToLevelData = bestdoriToLevelData;
|
|
4
|
-
const core_1 = require("@sonolus/core");
|
|
5
|
-
function bestdoriToLevelData(chart, offset = 0) {
|
|
1
|
+
import { EngineArchetypeDataName, EngineArchetypeName, } from '@sonolus/core';
|
|
2
|
+
export function bestdoriToLevelData(chart, offset = 0) {
|
|
6
3
|
const entities = [];
|
|
7
4
|
const beatToIntermediates = new Map();
|
|
8
5
|
const intermediateToRef = new Map();
|
|
@@ -25,7 +22,7 @@ function bestdoriToLevelData(chart, offset = 0) {
|
|
|
25
22
|
data: [],
|
|
26
23
|
};
|
|
27
24
|
if (intermediate.sim) {
|
|
28
|
-
const beat = intermediate.data[
|
|
25
|
+
const beat = intermediate.data[EngineArchetypeDataName.Beat];
|
|
29
26
|
if (typeof beat !== 'number')
|
|
30
27
|
throw new Error('Unexpected beat');
|
|
31
28
|
const intermediates = beatToIntermediates.get(beat);
|
|
@@ -89,10 +86,10 @@ function bestdoriToLevelData(chart, offset = 0) {
|
|
|
89
86
|
}
|
|
90
87
|
const bpm = (object, append) => {
|
|
91
88
|
append({
|
|
92
|
-
archetype:
|
|
89
|
+
archetype: EngineArchetypeName.BpmChange,
|
|
93
90
|
data: {
|
|
94
|
-
[
|
|
95
|
-
[
|
|
91
|
+
[EngineArchetypeDataName.Beat]: object.beat,
|
|
92
|
+
[EngineArchetypeDataName.Bpm]: object.bpm,
|
|
96
93
|
},
|
|
97
94
|
sim: false,
|
|
98
95
|
});
|
|
@@ -101,7 +98,7 @@ const single = (object, append) => {
|
|
|
101
98
|
append({
|
|
102
99
|
archetype: object.flick ? 'FlickNote' : 'TapNote',
|
|
103
100
|
data: {
|
|
104
|
-
[
|
|
101
|
+
[EngineArchetypeDataName.Beat]: object.beat,
|
|
105
102
|
lane: object.lane - 3,
|
|
106
103
|
},
|
|
107
104
|
sim: true,
|
|
@@ -111,7 +108,7 @@ const directional = (object, append) => {
|
|
|
111
108
|
append({
|
|
112
109
|
archetype: 'DirectionalFlickNote',
|
|
113
110
|
data: {
|
|
114
|
-
[
|
|
111
|
+
[EngineArchetypeDataName.Beat]: object.beat,
|
|
115
112
|
lane: object.lane - 3,
|
|
116
113
|
direction: object.direction === 'Left' ? -1 : 1,
|
|
117
114
|
size: object.width,
|
|
@@ -138,7 +135,7 @@ const longAndSlide = (object, append) => {
|
|
|
138
135
|
{
|
|
139
136
|
archetype: 'SlideStartNote',
|
|
140
137
|
data: {
|
|
141
|
-
[
|
|
138
|
+
[EngineArchetypeDataName.Beat]: connection.beat,
|
|
142
139
|
lane: connection.lane - 3,
|
|
143
140
|
},
|
|
144
141
|
sim: true,
|
|
@@ -156,7 +153,7 @@ const longAndSlide = (object, append) => {
|
|
|
156
153
|
const tail = {
|
|
157
154
|
archetype: connection.flick ? 'SlideEndFlickNote' : 'SlideEndNote',
|
|
158
155
|
data: {
|
|
159
|
-
[
|
|
156
|
+
[EngineArchetypeDataName.Beat]: connection.beat,
|
|
160
157
|
lane: connection.lane - 3,
|
|
161
158
|
first,
|
|
162
159
|
prev: start,
|
|
@@ -190,7 +187,7 @@ const longAndSlide = (object, append) => {
|
|
|
190
187
|
const tail = {
|
|
191
188
|
archetype: 'IgnoredNote',
|
|
192
189
|
data: {
|
|
193
|
-
[
|
|
190
|
+
[EngineArchetypeDataName.Beat]: connection.beat,
|
|
194
191
|
lane: connection.lane - 3,
|
|
195
192
|
},
|
|
196
193
|
sim: false,
|
|
@@ -212,7 +209,7 @@ const longAndSlide = (object, append) => {
|
|
|
212
209
|
const tail = {
|
|
213
210
|
archetype: 'SlideTickNote',
|
|
214
211
|
data: {
|
|
215
|
-
[
|
|
212
|
+
[EngineArchetypeDataName.Beat]: connection.beat,
|
|
216
213
|
lane: connection.lane - 3,
|
|
217
214
|
first,
|
|
218
215
|
prev: start,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { bestdoriToLevelData } from './bestdori/convert.
|
|
2
|
-
export * from './bestdori/index.
|
|
3
|
-
export declare const version = "1.
|
|
1
|
+
export { bestdoriToLevelData } from './bestdori/convert.js';
|
|
2
|
+
export * from './bestdori/index.js';
|
|
3
|
+
export declare const version = "1.6.0";
|
|
4
4
|
export declare const databaseEngineItem: {
|
|
5
5
|
readonly name: "bandori";
|
|
6
6
|
readonly version: 13;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { bestdoriToLevelData } from './bestdori/convert.js';
|
|
2
|
+
export * from './bestdori/index.js';
|
|
3
|
+
export const version = '1.6.0';
|
|
4
|
+
export const databaseEngineItem = {
|
|
5
|
+
name: 'bandori',
|
|
6
|
+
version: 13,
|
|
7
|
+
title: {
|
|
8
|
+
en: 'BanG Dream!',
|
|
9
|
+
ja: 'バンドリ!',
|
|
10
|
+
ko: '뱅드림!',
|
|
11
|
+
zhs: 'BanG Dream!',
|
|
12
|
+
zht: 'BanG Dream!',
|
|
13
|
+
},
|
|
14
|
+
subtitle: {
|
|
15
|
+
en: 'BanG Dream! Girls Band Party!',
|
|
16
|
+
ja: 'バンドリ! ガールズバンドパーティ!',
|
|
17
|
+
ko: '뱅드림! 걸즈 밴드 파티!',
|
|
18
|
+
zhs: 'BanG Dream! 少女乐团派对!',
|
|
19
|
+
zht: 'BanG Dream! 少女樂團派對',
|
|
20
|
+
},
|
|
21
|
+
author: {
|
|
22
|
+
en: 'Burrito#1000',
|
|
23
|
+
},
|
|
24
|
+
description: {
|
|
25
|
+
en: [
|
|
26
|
+
'A recreation of BanG Dream! Girls Band Party engine in Sonolus.',
|
|
27
|
+
'',
|
|
28
|
+
'Version:',
|
|
29
|
+
version,
|
|
30
|
+
'',
|
|
31
|
+
'GitHub Repository:',
|
|
32
|
+
'https://github.com/NonSpicyBurrito/sonolus-bandori-engine',
|
|
33
|
+
].join('\n'),
|
|
34
|
+
},
|
|
35
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonolus-bandori-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
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",
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
|
+
"type": "module",
|
|
14
15
|
"exports": {
|
|
15
|
-
".": "./dist/index.
|
|
16
|
+
".": "./dist/index.js",
|
|
16
17
|
"./EngineConfiguration": "./dist/EngineConfiguration",
|
|
17
18
|
"./EnginePlayData": "./dist/EnginePlayData",
|
|
18
19
|
"./EngineWatchData": "./dist/EngineWatchData",
|
|
@@ -21,27 +22,27 @@
|
|
|
21
22
|
"./EngineThumbnail": "./dist/thumbnail.png"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
|
-
"dev
|
|
25
|
-
"dev
|
|
26
|
-
"dev
|
|
27
|
-
"dev
|
|
25
|
+
"dev-play": "sonolus-cli --dev ./play",
|
|
26
|
+
"dev-watch": "sonolus-cli --dev ./watch",
|
|
27
|
+
"dev-preview": "sonolus-cli --dev ./preview",
|
|
28
|
+
"dev-tutorial": "sonolus-cli --dev ./tutorial",
|
|
28
29
|
"check-type": "tsc -p ./lib --noEmit && tsc -p ./shared --noEmit && tsc -p ./play --noEmit && tsc -p ./watch --noEmit && tsc -p ./preview --noEmit && tsc -p ./tutorial --noEmit",
|
|
29
30
|
"check-lint": "eslint .",
|
|
30
31
|
"check-format": "prettier . --check",
|
|
31
|
-
"build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.
|
|
32
|
+
"build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.js"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@sonolus/core": "~7.
|
|
35
|
+
"@sonolus/core": "~7.14.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@eslint/js": "^9.
|
|
38
|
-
"@sonolus/sonolus.js": "~9.
|
|
39
|
-
"@types/node": "^
|
|
40
|
-
"eslint": "^9.
|
|
41
|
-
"eslint-config-prettier": "^10.1.
|
|
42
|
-
"prettier": "^3.6.
|
|
43
|
-
"prettier-plugin-organize-imports": "^4.
|
|
38
|
+
"@eslint/js": "^9.31.0",
|
|
39
|
+
"@sonolus/sonolus.js": "~9.6.0",
|
|
40
|
+
"@types/node": "^22.16.5",
|
|
41
|
+
"eslint": "^9.31.0",
|
|
42
|
+
"eslint-config-prettier": "^10.1.8",
|
|
43
|
+
"prettier": "^3.6.2",
|
|
44
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
44
45
|
"typescript": "~5.8.3",
|
|
45
|
-
"typescript-eslint": "^8.
|
|
46
|
+
"typescript-eslint": "^8.38.0"
|
|
46
47
|
}
|
|
47
48
|
}
|
package/dist/bestdori/index.cjs
DELETED
package/dist/index.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.databaseEngineItem = exports.version = exports.bestdoriToLevelData = void 0;
|
|
18
|
-
var convert_cjs_1 = require("./bestdori/convert.cjs");
|
|
19
|
-
Object.defineProperty(exports, "bestdoriToLevelData", { enumerable: true, get: function () { return convert_cjs_1.bestdoriToLevelData; } });
|
|
20
|
-
__exportStar(require("./bestdori/index.cjs"), exports);
|
|
21
|
-
exports.version = '1.5.6';
|
|
22
|
-
exports.databaseEngineItem = {
|
|
23
|
-
name: 'bandori',
|
|
24
|
-
version: 13,
|
|
25
|
-
title: {
|
|
26
|
-
en: 'BanG Dream!',
|
|
27
|
-
ja: 'バンドリ!',
|
|
28
|
-
ko: '뱅드림!',
|
|
29
|
-
zhs: 'BanG Dream!',
|
|
30
|
-
zht: 'BanG Dream!',
|
|
31
|
-
},
|
|
32
|
-
subtitle: {
|
|
33
|
-
en: 'BanG Dream! Girls Band Party!',
|
|
34
|
-
ja: 'バンドリ! ガールズバンドパーティ!',
|
|
35
|
-
ko: '뱅드림! 걸즈 밴드 파티!',
|
|
36
|
-
zhs: 'BanG Dream! 少女乐团派对!',
|
|
37
|
-
zht: 'BanG Dream! 少女樂團派對',
|
|
38
|
-
},
|
|
39
|
-
author: {
|
|
40
|
-
en: 'Burrito#1000',
|
|
41
|
-
},
|
|
42
|
-
description: {
|
|
43
|
-
en: [
|
|
44
|
-
'A recreation of BanG Dream! Girls Band Party engine in Sonolus.',
|
|
45
|
-
'',
|
|
46
|
-
'Version:',
|
|
47
|
-
exports.version,
|
|
48
|
-
'',
|
|
49
|
-
'GitHub Repository:',
|
|
50
|
-
'https://github.com/NonSpicyBurrito/sonolus-bandori-engine',
|
|
51
|
-
].join('\n'),
|
|
52
|
-
},
|
|
53
|
-
};
|
|
File without changes
|