sonolus-voez-engine 1.5.4 → 1.6.1

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
@@ -85,4 +85,4 @@ The following assets are exposed as package entry points:
85
85
  - `EngineTutorialData`
86
86
  - `EngineThumbnail`
87
87
 
88
- In Node.js, you can obtain path to assets using `require.resolve('sonolus-voez-engine/EngineConfiguration')` or `import.meta.resolve('sonolus-voez-engine/EngineConfiguration')`.
88
+ In Node.js, you can obtain path to assets using `import.meta.resolve('sonolus-voez-engine/EngineConfiguration')`.
Binary file
@@ -1,8 +1,8 @@
1
- export { vcToLevelData } from './vc/convert.cjs';
2
- export * from './vc/index.cjs';
3
- export { vsToVC } from './vs/convert.cjs';
4
- export * from './vs/index.cjs';
5
- export declare const version = "1.5.4";
1
+ export { vcToLevelData } from './vc/convert.js';
2
+ export * from './vc/index.js';
3
+ export { vsToVC } from './vs/convert.js';
4
+ export * from './vs/index.js';
5
+ export declare const version = "1.6.1";
6
6
  export declare const databaseEngineItem: {
7
7
  readonly name: "voez";
8
8
  readonly version: 13;
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ export { vcToLevelData } from './vc/convert.js';
2
+ export * from './vc/index.js';
3
+ export { vsToVC } from './vs/convert.js';
4
+ export * from './vs/index.js';
5
+ export const version = '1.6.1';
6
+ export const databaseEngineItem = {
7
+ name: 'voez',
8
+ version: 13,
9
+ title: {
10
+ en: 'VOEZ',
11
+ },
12
+ subtitle: {
13
+ en: 'VOEZ',
14
+ },
15
+ author: {
16
+ en: 'Burrito#1000',
17
+ },
18
+ description: {
19
+ en: [
20
+ 'A recreation of VOEZ engine in Sonolus.',
21
+ '',
22
+ 'Version:',
23
+ version,
24
+ '',
25
+ 'GitHub Repository:',
26
+ 'https://github.com/NonSpicyBurrito/sonolus-voez-engine',
27
+ ].join('\n'),
28
+ },
29
+ };
@@ -1,3 +1,3 @@
1
1
  import { LevelData } from '@sonolus/core';
2
- import { VC } from './index.cjs';
2
+ import { VC } from './index.js';
3
3
  export declare const vcToLevelData: (vc: VC, offset?: number) => LevelData;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vcToLevelData = void 0;
4
- const core_1 = require("@sonolus/core");
1
+ import { EngineArchetypeDataName, EngineArchetypeName, } from '@sonolus/core';
5
2
  const ease = [
6
3
  'InSine',
7
4
  'OutSine',
@@ -40,7 +37,7 @@ const ease = [
40
37
  'InOutElastic',
41
38
  'OutInElastic',
42
39
  ];
43
- const vcToLevelData = (vc, offset = 0) => {
40
+ export const vcToLevelData = (vc, offset = 0) => {
44
41
  const entities = [
45
42
  {
46
43
  archetype: 'Initialization',
@@ -59,10 +56,10 @@ const vcToLevelData = (vc, offset = 0) => {
59
56
  const next = () => `${id++}`;
60
57
  for (const bpm of vc.bpms) {
61
58
  add({
62
- archetype: core_1.EngineArchetypeName.BpmChange,
59
+ archetype: EngineArchetypeName.BpmChange,
63
60
  data: {
64
- [core_1.EngineArchetypeDataName.Beat]: bpm.beat,
65
- [core_1.EngineArchetypeDataName.Bpm]: bpm.bpm,
61
+ [EngineArchetypeDataName.Beat]: bpm.beat,
62
+ [EngineArchetypeDataName.Bpm]: bpm.bpm,
66
63
  },
67
64
  });
68
65
  }
@@ -122,7 +119,7 @@ const vcToLevelData = (vc, offset = 0) => {
122
119
  archetype: 'TapNote',
123
120
  data: {
124
121
  trackRef: ref,
125
- [core_1.EngineArchetypeDataName.Beat]: note.beat,
122
+ [EngineArchetypeDataName.Beat]: note.beat,
126
123
  },
127
124
  });
128
125
  break;
@@ -131,7 +128,7 @@ const vcToLevelData = (vc, offset = 0) => {
131
128
  archetype: 'SlideNote',
132
129
  data: {
133
130
  trackRef: ref,
134
- [core_1.EngineArchetypeDataName.Beat]: note.beat,
131
+ [EngineArchetypeDataName.Beat]: note.beat,
135
132
  },
136
133
  });
137
134
  break;
@@ -140,7 +137,7 @@ const vcToLevelData = (vc, offset = 0) => {
140
137
  archetype: 'FlickNote',
141
138
  data: {
142
139
  trackRef: ref,
143
- [core_1.EngineArchetypeDataName.Beat]: note.beat,
140
+ [EngineArchetypeDataName.Beat]: note.beat,
144
141
  direction: note.direction === 'left' ? -1 : 1,
145
142
  },
146
143
  });
@@ -153,7 +150,7 @@ const vcToLevelData = (vc, offset = 0) => {
153
150
  archetype: 'HoldStartNote',
154
151
  data: {
155
152
  trackRef: ref,
156
- [core_1.EngineArchetypeDataName.Beat]: note.beat,
153
+ [EngineArchetypeDataName.Beat]: note.beat,
157
154
  },
158
155
  });
159
156
  add({
@@ -161,7 +158,7 @@ const vcToLevelData = (vc, offset = 0) => {
161
158
  archetype: 'HoldEndNote',
162
159
  data: {
163
160
  trackRef: ref,
164
- [core_1.EngineArchetypeDataName.Beat]: note.toBeat,
161
+ [EngineArchetypeDataName.Beat]: note.toBeat,
165
162
  headRef,
166
163
  },
167
164
  });
@@ -182,4 +179,3 @@ const vcToLevelData = (vc, offset = 0) => {
182
179
  entities,
183
180
  };
184
181
  };
185
- exports.vcToLevelData = vcToLevelData;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { VC } from '../vc/index.js';
2
+ import { VS } from './index.js';
3
+ export declare const vsToVC: (vs: VS) => VC;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vsToVC = void 0;
4
1
  const easeMap = {
5
2
  easeinsine: 'InSine',
6
3
  easeoutsine: 'OutSine',
@@ -40,7 +37,7 @@ const easeMap = {
40
37
  easeinoutelastic: 'InOutElastic',
41
38
  easeoutinelastic: 'OutInElastic',
42
39
  };
43
- const vsToVC = (vs) => {
40
+ export const vsToVC = (vs) => {
44
41
  const vc = {
45
42
  bpms: [
46
43
  {
@@ -133,4 +130,3 @@ const vsToVC = (vs) => {
133
130
  }
134
131
  return vc;
135
132
  };
136
- exports.vsToVC = vsToVC;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-voez-engine",
3
- "version": "1.5.4",
3
+ "version": "1.6.1",
4
4
  "description": "A recreation of VOEZ engine in Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:NonSpicyBurrito/sonolus-voez-engine",
@@ -11,8 +11,9 @@
11
11
  "files": [
12
12
  "dist"
13
13
  ],
14
+ "type": "module",
14
15
  "exports": {
15
- ".": "./dist/index.cjs",
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:play": "sonolus-cli --dev ./play",
25
- "dev:watch": "sonolus-cli --dev ./watch",
26
- "dev:preview": "sonolus-cli --dev ./preview",
27
- "dev:tutorial": "sonolus-cli --dev ./tutorial",
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.mjs"
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.13.2"
35
+ "@sonolus/core": "~7.15.0"
35
36
  },
36
37
  "devDependencies": {
37
- "@eslint/js": "^9.30.0",
38
- "@sonolus/sonolus.js": "~9.5.6",
39
- "@types/node": "^20.19.1",
40
- "eslint": "^9.30.0",
41
- "eslint-config-prettier": "^10.1.5",
42
- "prettier": "^3.6.2",
43
- "prettier-plugin-organize-imports": "^4.1.0",
44
- "typescript": "~5.8.3",
45
- "typescript-eslint": "^8.35.0"
38
+ "@eslint/js": "^9.39.2",
39
+ "@sonolus/sonolus.js": "~9.7.0",
40
+ "@types/node": "^22.19.7",
41
+ "eslint": "^9.39.2",
42
+ "eslint-config-prettier": "^10.1.8",
43
+ "prettier": "^3.8.1",
44
+ "prettier-plugin-organize-imports": "^4.3.0",
45
+ "typescript": "~5.9.3",
46
+ "typescript-eslint": "^8.53.1"
46
47
  }
47
48
  }
package/dist/index.cjs DELETED
@@ -1,48 +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.vsToVC = exports.vcToLevelData = void 0;
18
- var convert_cjs_1 = require("./vc/convert.cjs");
19
- Object.defineProperty(exports, "vcToLevelData", { enumerable: true, get: function () { return convert_cjs_1.vcToLevelData; } });
20
- __exportStar(require("./vc/index.cjs"), exports);
21
- var convert_cjs_2 = require("./vs/convert.cjs");
22
- Object.defineProperty(exports, "vsToVC", { enumerable: true, get: function () { return convert_cjs_2.vsToVC; } });
23
- __exportStar(require("./vs/index.cjs"), exports);
24
- exports.version = '1.5.4';
25
- exports.databaseEngineItem = {
26
- name: 'voez',
27
- version: 13,
28
- title: {
29
- en: 'VOEZ',
30
- },
31
- subtitle: {
32
- en: 'VOEZ',
33
- },
34
- author: {
35
- en: 'Burrito#1000',
36
- },
37
- description: {
38
- en: [
39
- 'A recreation of VOEZ engine in Sonolus.',
40
- '',
41
- 'Version:',
42
- exports.version,
43
- '',
44
- 'GitHub Repository:',
45
- 'https://github.com/NonSpicyBurrito/sonolus-voez-engine',
46
- ].join('\n'),
47
- },
48
- };
package/dist/vc/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { VC } from '../vc/index.cjs';
2
- import { VS } from './index.cjs';
3
- export declare const vsToVC: (vs: VS) => VC;
package/dist/vs/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
File without changes
File without changes