sonolus-d4dj-engine 1.5.4 → 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/dist/EnginePlayData +0 -0
- package/dist/EnginePreviewData +0 -0
- package/dist/EngineWatchData +0 -0
- package/dist/b34dj/convert.js +6 -5
- package/dist/d4c/convert.js +6 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/EnginePlayData
CHANGED
|
Binary file
|
package/dist/EnginePreviewData
CHANGED
|
Binary file
|
package/dist/EngineWatchData
CHANGED
|
Binary file
|
package/dist/b34dj/convert.js
CHANGED
|
@@ -352,10 +352,11 @@ function note(chart) {
|
|
|
352
352
|
],
|
|
353
353
|
name: `note${i}`,
|
|
354
354
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
355
|
+
if (arr[1] !== 7)
|
|
356
|
+
notes[arr[2]]
|
|
357
|
+
? notes[arr[2]].push({ name: `note${i}`, lane: arr[0] })
|
|
358
|
+
: (notes[arr[2]] = [{ name: `note${i}`, lane: arr[0] }]);
|
|
359
|
+
if (arr[3] && (arr[1] === 4 || arr[1] === 6 || arr[1] === 7)) {
|
|
359
360
|
let note = {};
|
|
360
361
|
note.head = not.name;
|
|
361
362
|
note.tail = `note${arr[3]}`;
|
|
@@ -380,7 +381,7 @@ function note(chart) {
|
|
|
380
381
|
ref: sld.prev,
|
|
381
382
|
});
|
|
382
383
|
}
|
|
383
|
-
if (arr[1] === 5 || arr[1] === 8) {
|
|
384
|
+
if (arr[1] === 5 || arr[1] === 8 || arr[1] === 7) {
|
|
384
385
|
not.data.push({
|
|
385
386
|
name: "head",
|
|
386
387
|
ref: hold.find((note) => note.tail === not.name).head,
|
package/dist/d4c/convert.js
CHANGED
|
@@ -160,10 +160,11 @@ function note(chart) {
|
|
|
160
160
|
],
|
|
161
161
|
name: `note${i}`,
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
if (Type !== D4CNoteType.LongMiddle)
|
|
164
|
+
notes[Beat]
|
|
165
|
+
? notes[Beat].push({ name: `note${i}`, lane: LaneId })
|
|
166
|
+
: (notes[Beat] = [{ name: `note${i}`, lane: LaneId }]);
|
|
167
|
+
if (NextId && (Type === D4CNoteType.LongStart || Type === D4CNoteType.StopStart || Type === D4CNoteType.LongMiddle)) {
|
|
167
168
|
let note = {};
|
|
168
169
|
note.head = not.name;
|
|
169
170
|
note.tail = `note${NextId}`;
|
|
@@ -188,7 +189,7 @@ function note(chart) {
|
|
|
188
189
|
ref: sld.prev,
|
|
189
190
|
});
|
|
190
191
|
}
|
|
191
|
-
if (Type === D4CNoteType.LongEnd || Type === D4CNoteType.StopEnd) {
|
|
192
|
+
if (Type === D4CNoteType.LongEnd || Type === D4CNoteType.StopEnd || D4CNoteType.LongMiddle) {
|
|
192
193
|
not.data.push({
|
|
193
194
|
name: "head",
|
|
194
195
|
ref: hold.find((note) => note.tail === not.name).head,
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { b34djToLevelData, d4djToLevelData } from './b34dj/convert.js';
|
|
|
2
2
|
export { d4cToLevelData } from './d4c/convert.js';
|
|
3
3
|
export * from './b34dj/index.js';
|
|
4
4
|
export * from './d4c/index.js';
|
|
5
|
-
export declare const version = "1.
|
|
5
|
+
export declare const version = "1.6.0";
|
|
6
6
|
export declare const databaseEngineItem: {
|
|
7
7
|
readonly name: "d4dj";
|
|
8
8
|
readonly version: 13;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { b34djToLevelData, d4djToLevelData } from './b34dj/convert.js';
|
|
|
2
2
|
export { d4cToLevelData } from './d4c/convert.js';
|
|
3
3
|
export * from './b34dj/index.js';
|
|
4
4
|
export * from './d4c/index.js';
|
|
5
|
-
export const version = '1.
|
|
5
|
+
export const version = '1.6.0';
|
|
6
6
|
export const databaseEngineItem = {
|
|
7
7
|
name: 'd4dj',
|
|
8
8
|
version: 13,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonolus-d4dj-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "A recreation of D4DJ Groovy Mix engine in Sonolus.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Gorengan Hunter",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.mjs"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@sonolus/core": "^7.14.
|
|
36
|
+
"@sonolus/core": "^7.14.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@eslint/js": "^8.57.0",
|