sonolus-voez-engine 1.4.0-alpha.0 → 1.4.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/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 NonSpicyBurrito
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 NonSpicyBurrito
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,85 +1,85 @@
1
- # Sonolus VOEZ Engine
2
-
3
- A recreation of VOEZ engine in [Sonolus](https://sonolus.com).
4
-
5
- ## Links
6
-
7
- - [Sonolus Website](https://sonolus.com)
8
- - [Sonolus Wiki](https://github.com/NonSpicyBurrito/sonolus-wiki)
9
-
10
- ## Installation
11
-
12
- ```
13
- npm install sonolus-voez-engine
14
- ```
15
-
16
- ## Custom Resources
17
-
18
- ### Skin Sprites
19
-
20
- | Name |
21
- | ------------------------------ |
22
- | `VOEZ Track Body 0` |
23
- | `VOEZ Track Body 1` |
24
- | `VOEZ Track Body 2` |
25
- | `VOEZ Track Body 3` |
26
- | `VOEZ Track Body 4` |
27
- | `VOEZ Track Body 5` |
28
- | `VOEZ Track Body 6` |
29
- | `VOEZ Track Body 7` |
30
- | `VOEZ Track Body 8` |
31
- | `VOEZ Track Body 9` |
32
- | `VOEZ Track Line` |
33
- | `VOEZ Track Left Border` |
34
- | `VOEZ Track Right Border` |
35
- | `VOEZ Track Glow Body` |
36
- | `VOEZ Track Glow Left Border` |
37
- | `VOEZ Track Glow Right Border` |
38
- | `VOEZ Flick` |
39
-
40
- ## Documentation
41
-
42
- ### `version`
43
-
44
- Package version.
45
-
46
- ### `databaseEngineItem`
47
-
48
- Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
49
-
50
- ### `engineConfigurationPath`
51
-
52
- Path to Engine Configuration file.
53
-
54
- ### `enginePlayDataPath`
55
-
56
- Path to Engine Play Data file.
57
-
58
- ### `engineWatchDataPath`
59
-
60
- Path to Engine Watch Data file.
61
-
62
- ### `enginePreviewDataPath`
63
-
64
- Path to Engine Preview Data file.
65
-
66
- ### `engineTutorialDataPath`
67
-
68
- Path to Engine Tutorial Data file.
69
-
70
- ### `engineThumbnailPath`
71
-
72
- Path to Engine Thumbnail file.
73
-
74
- ### `vsToVC(vs)`
75
-
76
- Converts VS (VOEZ Source) to VC (VOEZ Chart).
77
-
78
- - `vs`: VOEZ source.
79
-
80
- ### `vcToLevelData(vc, offset?)`
81
-
82
- Converts VC (VOEZ Chart) to Level Data.
83
-
84
- - `vc`: VOEZ chart.
85
- - `offset`: offset (default: `0`).
1
+ # Sonolus VOEZ Engine
2
+
3
+ A recreation of VOEZ engine in [Sonolus](https://sonolus.com).
4
+
5
+ ## Links
6
+
7
+ - [Sonolus Website](https://sonolus.com)
8
+ - [Sonolus Wiki](https://github.com/NonSpicyBurrito/sonolus-wiki)
9
+
10
+ ## Installation
11
+
12
+ ```
13
+ npm install sonolus-voez-engine
14
+ ```
15
+
16
+ ## Custom Resources
17
+
18
+ ### Skin Sprites
19
+
20
+ | Name |
21
+ | ------------------------------ |
22
+ | `VOEZ Track Body 0` |
23
+ | `VOEZ Track Body 1` |
24
+ | `VOEZ Track Body 2` |
25
+ | `VOEZ Track Body 3` |
26
+ | `VOEZ Track Body 4` |
27
+ | `VOEZ Track Body 5` |
28
+ | `VOEZ Track Body 6` |
29
+ | `VOEZ Track Body 7` |
30
+ | `VOEZ Track Body 8` |
31
+ | `VOEZ Track Body 9` |
32
+ | `VOEZ Track Line` |
33
+ | `VOEZ Track Left Border` |
34
+ | `VOEZ Track Right Border` |
35
+ | `VOEZ Track Glow Body` |
36
+ | `VOEZ Track Glow Left Border` |
37
+ | `VOEZ Track Glow Right Border` |
38
+ | `VOEZ Flick` |
39
+
40
+ ## Documentation
41
+
42
+ ### `version`
43
+
44
+ Package version.
45
+
46
+ ### `databaseEngineItem`
47
+
48
+ Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
49
+
50
+ ### `engineConfigurationPath`
51
+
52
+ Path to Engine Configuration file.
53
+
54
+ ### `enginePlayDataPath`
55
+
56
+ Path to Engine Play Data file.
57
+
58
+ ### `engineWatchDataPath`
59
+
60
+ Path to Engine Watch Data file.
61
+
62
+ ### `enginePreviewDataPath`
63
+
64
+ Path to Engine Preview Data file.
65
+
66
+ ### `engineTutorialDataPath`
67
+
68
+ Path to Engine Tutorial Data file.
69
+
70
+ ### `engineThumbnailPath`
71
+
72
+ Path to Engine Thumbnail file.
73
+
74
+ ### `vsToVC(vs)`
75
+
76
+ Converts VS (VOEZ Source) to VC (VOEZ Chart).
77
+
78
+ - `vs`: VOEZ source.
79
+
80
+ ### `vcToLevelData(vc, offset?)`
81
+
82
+ Converts VC (VOEZ Chart) to Level Data.
83
+
84
+ - `vc`: VOEZ chart.
85
+ - `offset`: offset (default: `0`).
Binary file
package/dist/index.cjs CHANGED
@@ -22,7 +22,7 @@ __exportStar(require("./vc/index.cjs"), exports);
22
22
  var convert_cjs_2 = require("./vs/convert.cjs");
23
23
  Object.defineProperty(exports, "vsToVC", { enumerable: true, get: function () { return convert_cjs_2.vsToVC; } });
24
24
  __exportStar(require("./vs/index.cjs"), exports);
25
- exports.version = '1.4.0-alpha.0';
25
+ exports.version = '1.4.1';
26
26
  exports.databaseEngineItem = {
27
27
  name: 'voez',
28
28
  version: 12,
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ export { vcToLevelData } from './vc/convert.cjs';
2
2
  export * from './vc/index.cjs';
3
3
  export { vsToVC } from './vs/convert.cjs';
4
4
  export * from './vs/index.cjs';
5
- export declare const version = "1.4.0-alpha.0";
5
+ export declare const version = "1.4.1";
6
6
  export declare const databaseEngineItem: {
7
7
  readonly name: "voez";
8
8
  readonly version: 12;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.vcToLevelData = void 0;
4
- const sonolus_core_1 = require("sonolus-core");
4
+ const core_1 = require("@sonolus/core");
5
5
  const ease = [
6
6
  'InSine',
7
7
  'OutSine',
@@ -59,10 +59,10 @@ const vcToLevelData = (vc, offset = 0) => {
59
59
  const next = () => `${id++}`;
60
60
  for (const bpm of vc.bpms) {
61
61
  add({
62
- archetype: sonolus_core_1.EngineArchetypeName.BpmChange,
62
+ archetype: core_1.EngineArchetypeName.BpmChange,
63
63
  data: {
64
- [sonolus_core_1.EngineArchetypeDataName.Beat]: bpm.beat,
65
- [sonolus_core_1.EngineArchetypeDataName.Bpm]: bpm.bpm,
64
+ [core_1.EngineArchetypeDataName.Beat]: bpm.beat,
65
+ [core_1.EngineArchetypeDataName.Bpm]: bpm.bpm,
66
66
  },
67
67
  });
68
68
  }
@@ -122,7 +122,7 @@ const vcToLevelData = (vc, offset = 0) => {
122
122
  archetype: 'TapNote',
123
123
  data: {
124
124
  trackRef: ref,
125
- [sonolus_core_1.EngineArchetypeDataName.Beat]: note.beat,
125
+ [core_1.EngineArchetypeDataName.Beat]: note.beat,
126
126
  },
127
127
  });
128
128
  break;
@@ -131,7 +131,7 @@ const vcToLevelData = (vc, offset = 0) => {
131
131
  archetype: 'SlideNote',
132
132
  data: {
133
133
  trackRef: ref,
134
- [sonolus_core_1.EngineArchetypeDataName.Beat]: note.beat,
134
+ [core_1.EngineArchetypeDataName.Beat]: note.beat,
135
135
  },
136
136
  });
137
137
  break;
@@ -140,7 +140,7 @@ const vcToLevelData = (vc, offset = 0) => {
140
140
  archetype: 'FlickNote',
141
141
  data: {
142
142
  trackRef: ref,
143
- [sonolus_core_1.EngineArchetypeDataName.Beat]: note.beat,
143
+ [core_1.EngineArchetypeDataName.Beat]: note.beat,
144
144
  direction: note.direction === 'left' ? -1 : 1,
145
145
  },
146
146
  });
@@ -153,7 +153,7 @@ const vcToLevelData = (vc, offset = 0) => {
153
153
  archetype: 'HoldStartNote',
154
154
  data: {
155
155
  trackRef: ref,
156
- [sonolus_core_1.EngineArchetypeDataName.Beat]: note.beat,
156
+ [core_1.EngineArchetypeDataName.Beat]: note.beat,
157
157
  },
158
158
  });
159
159
  add({
@@ -161,7 +161,7 @@ const vcToLevelData = (vc, offset = 0) => {
161
161
  archetype: 'HoldEndNote',
162
162
  data: {
163
163
  trackRef: ref,
164
- [sonolus_core_1.EngineArchetypeDataName.Beat]: note.toBeat,
164
+ [core_1.EngineArchetypeDataName.Beat]: note.toBeat,
165
165
  headRef,
166
166
  },
167
167
  });
@@ -1,3 +1,3 @@
1
- import { LevelData } from 'sonolus-core';
1
+ import { LevelData } from '@sonolus/core';
2
2
  import { VC } from './index.cjs';
3
3
  export declare const vcToLevelData: (vc: VC, offset?: number) => LevelData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-voez-engine",
3
- "version": "1.4.0-alpha.0",
3
+ "version": "1.4.1",
4
4
  "description": "A recreation of VOEZ engine in Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:NonSpicyBurrito/sonolus-voez-engine",
@@ -21,17 +21,18 @@
21
21
  "build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.mjs"
22
22
  },
23
23
  "dependencies": {
24
- "sonolus-core": "7.5.0-alpha.4"
24
+ "@sonolus/core": "~7.9.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "^16.18.68",
28
- "@typescript-eslint/eslint-plugin": "^6.14.0",
29
- "@typescript-eslint/parser": "^6.14.0",
30
- "eslint": "^8.55.0",
27
+ "@eslint/js": "^9.9.0",
28
+ "@sonolus/sonolus.js": "~9.4.5",
29
+ "@types/eslint__js": "^8.42.3",
30
+ "@types/node": "^20.16.1",
31
+ "eslint": "^9.9.0",
31
32
  "eslint-config-prettier": "^9.1.0",
32
- "prettier": "^3.1.1",
33
- "prettier-plugin-organize-imports": "^3.2.4",
34
- "sonolus.js": "9.4.0-alpha.4",
35
- "typescript": "~5.3.3"
33
+ "prettier": "^3.3.3",
34
+ "prettier-plugin-organize-imports": "^4.0.0",
35
+ "typescript": "~5.5.4",
36
+ "typescript-eslint": "^8.2.0"
36
37
  }
37
38
  }