sonolus-deemo-engine 1.4.0 → 1.4.2
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 +20 -20
- package/README.md +61 -61
- package/dist/EnginePlayData +0 -0
- package/dist/ds/convert.cjs +3 -2
- package/dist/ds/index.d.cts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/package.json +11 -10
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,61 +1,61 @@
|
|
|
1
|
-
# Sonolus Deemo Engine
|
|
2
|
-
|
|
3
|
-
A recreation of Deemo 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-deemo-engine
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Documentation
|
|
17
|
-
|
|
18
|
-
### `version`
|
|
19
|
-
|
|
20
|
-
Package version.
|
|
21
|
-
|
|
22
|
-
### `databaseEngineItem`
|
|
23
|
-
|
|
24
|
-
Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
|
|
25
|
-
|
|
26
|
-
### `engineConfigurationPath`
|
|
27
|
-
|
|
28
|
-
Path to Engine Configuration file.
|
|
29
|
-
|
|
30
|
-
### `enginePlayDataPath`
|
|
31
|
-
|
|
32
|
-
Path to Engine Play Data file.
|
|
33
|
-
|
|
34
|
-
### `engineWatchDataPath`
|
|
35
|
-
|
|
36
|
-
Path to Engine Watch Data file.
|
|
37
|
-
|
|
38
|
-
### `enginePreviewDataPath`
|
|
39
|
-
|
|
40
|
-
Path to Engine Preview Data file.
|
|
41
|
-
|
|
42
|
-
### `engineTutorialDataPath`
|
|
43
|
-
|
|
44
|
-
Path to Engine Tutorial Data file.
|
|
45
|
-
|
|
46
|
-
### `engineThumbnailPath`
|
|
47
|
-
|
|
48
|
-
Path to Engine Thumbnail file.
|
|
49
|
-
|
|
50
|
-
### `dsToDC(ds)`
|
|
51
|
-
|
|
52
|
-
Converts DS (Deemo Source) to DC (Deemo Chart).
|
|
53
|
-
|
|
54
|
-
- `ds`: Deemo Source.
|
|
55
|
-
|
|
56
|
-
### `dcToLevelData(dc, offset?)`
|
|
57
|
-
|
|
58
|
-
Converts DC (Deemo Chart) to Level Data.
|
|
59
|
-
|
|
60
|
-
- `dc`: Deemo Chart.
|
|
61
|
-
- `offset`: offset (default: `0`).
|
|
1
|
+
# Sonolus Deemo Engine
|
|
2
|
+
|
|
3
|
+
A recreation of Deemo 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-deemo-engine
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Documentation
|
|
17
|
+
|
|
18
|
+
### `version`
|
|
19
|
+
|
|
20
|
+
Package version.
|
|
21
|
+
|
|
22
|
+
### `databaseEngineItem`
|
|
23
|
+
|
|
24
|
+
Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
|
|
25
|
+
|
|
26
|
+
### `engineConfigurationPath`
|
|
27
|
+
|
|
28
|
+
Path to Engine Configuration file.
|
|
29
|
+
|
|
30
|
+
### `enginePlayDataPath`
|
|
31
|
+
|
|
32
|
+
Path to Engine Play Data file.
|
|
33
|
+
|
|
34
|
+
### `engineWatchDataPath`
|
|
35
|
+
|
|
36
|
+
Path to Engine Watch Data file.
|
|
37
|
+
|
|
38
|
+
### `enginePreviewDataPath`
|
|
39
|
+
|
|
40
|
+
Path to Engine Preview Data file.
|
|
41
|
+
|
|
42
|
+
### `engineTutorialDataPath`
|
|
43
|
+
|
|
44
|
+
Path to Engine Tutorial Data file.
|
|
45
|
+
|
|
46
|
+
### `engineThumbnailPath`
|
|
47
|
+
|
|
48
|
+
Path to Engine Thumbnail file.
|
|
49
|
+
|
|
50
|
+
### `dsToDC(ds)`
|
|
51
|
+
|
|
52
|
+
Converts DS (Deemo Source) to DC (Deemo Chart).
|
|
53
|
+
|
|
54
|
+
- `ds`: Deemo Source.
|
|
55
|
+
|
|
56
|
+
### `dcToLevelData(dc, offset?)`
|
|
57
|
+
|
|
58
|
+
Converts DC (Deemo Chart) to Level Data.
|
|
59
|
+
|
|
60
|
+
- `dc`: Deemo Chart.
|
|
61
|
+
- `offset`: offset (default: `0`).
|
package/dist/EnginePlayData
CHANGED
|
Binary file
|
package/dist/ds/convert.cjs
CHANGED
|
@@ -11,12 +11,13 @@ const dsToDC = (ds) => {
|
|
|
11
11
|
];
|
|
12
12
|
const slideIds = ds.links.flatMap((link) => link.notes.map((note) => note.$ref));
|
|
13
13
|
for (const note of ds.notes) {
|
|
14
|
-
|
|
14
|
+
const pos = note.pos ?? 0;
|
|
15
|
+
if (pos > 2)
|
|
15
16
|
continue;
|
|
16
17
|
dc.push({
|
|
17
18
|
type: slideIds.includes(note.$id) ? 'slide' : 'tap',
|
|
18
19
|
beat: note._time,
|
|
19
|
-
lane:
|
|
20
|
+
lane: pos * 4,
|
|
20
21
|
size: note.size * 2,
|
|
21
22
|
});
|
|
22
23
|
}
|
package/dist/ds/index.d.cts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ __exportStar(require("./dc/index.cjs"), exports);
|
|
|
22
22
|
var convert_cjs_2 = require("./ds/convert.cjs");
|
|
23
23
|
Object.defineProperty(exports, "dsToDC", { enumerable: true, get: function () { return convert_cjs_2.dsToDC; } });
|
|
24
24
|
__exportStar(require("./ds/index.cjs"), exports);
|
|
25
|
-
exports.version = '1.4.
|
|
25
|
+
exports.version = '1.4.2';
|
|
26
26
|
exports.databaseEngineItem = {
|
|
27
27
|
name: 'deemo',
|
|
28
28
|
version: 12,
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ export { dcToLevelData } from './dc/convert.cjs';
|
|
|
2
2
|
export * from './dc/index.cjs';
|
|
3
3
|
export { dsToDC } from './ds/convert.cjs';
|
|
4
4
|
export * from './ds/index.cjs';
|
|
5
|
-
export declare const version = "1.4.
|
|
5
|
+
export declare const version = "1.4.2";
|
|
6
6
|
export declare const databaseEngineItem: {
|
|
7
7
|
readonly name: "deemo";
|
|
8
8
|
readonly version: 12;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonolus-deemo-engine",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "A recreation of Deemo engine in Sonolus",
|
|
5
5
|
"author": "NonSpicyBurrito",
|
|
6
6
|
"repository": "github:NonSpicyBurrito/sonolus-deemo-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.
|
|
24
|
+
"@sonolus/core": "~7.9.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"eslint": "^
|
|
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",
|
|
32
32
|
"eslint-config-prettier": "^9.1.0",
|
|
33
|
-
"prettier": "^3.
|
|
34
|
-
"prettier-plugin-organize-imports": "^
|
|
35
|
-
"typescript": "~5.
|
|
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
|
}
|