sonolus-llsif-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 +20 -20
- package/README.md +69 -69
- package/dist/EnginePlayData +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/sifc/convert.cjs +9 -10
- package/dist/sifc/convert.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,69 +1,69 @@
|
|
|
1
|
-
# Sonolus LLSIF Engine
|
|
2
|
-
|
|
3
|
-
A recreation of Love Live! School idol festival 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-llsif-engine
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Custom Resources
|
|
17
|
-
|
|
18
|
-
### Skin Sprites
|
|
19
|
-
|
|
20
|
-
| Name |
|
|
21
|
-
| ------------------------- |
|
|
22
|
-
| `LLSIF Connection Active` |
|
|
23
|
-
|
|
24
|
-
## Documentation
|
|
25
|
-
|
|
26
|
-
### `version`
|
|
27
|
-
|
|
28
|
-
Package version.
|
|
29
|
-
|
|
30
|
-
### `databaseEngineItem`
|
|
31
|
-
|
|
32
|
-
Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
|
|
33
|
-
|
|
34
|
-
### `engineConfigurationPath`
|
|
35
|
-
|
|
36
|
-
Path to Engine Configuration file.
|
|
37
|
-
|
|
38
|
-
### `enginePlayDataPath`
|
|
39
|
-
|
|
40
|
-
Path to Engine Play Data file.
|
|
41
|
-
|
|
42
|
-
### `engineWatchDataPath`
|
|
43
|
-
|
|
44
|
-
Path to Engine Watch Data file.
|
|
45
|
-
|
|
46
|
-
### `enginePreviewDataPath`
|
|
47
|
-
|
|
48
|
-
Path to Engine Preview Data file.
|
|
49
|
-
|
|
50
|
-
### `engineTutorialDataPath`
|
|
51
|
-
|
|
52
|
-
Path to Engine Tutorial Data file.
|
|
53
|
-
|
|
54
|
-
### `engineThumbnailPath`
|
|
55
|
-
|
|
56
|
-
Path to Engine Thumbnail file.
|
|
57
|
-
|
|
58
|
-
### `nssToSIFC(nss)`
|
|
59
|
-
|
|
60
|
-
Converts NSS (note setting asset) to SIFC (SIF Chart).
|
|
61
|
-
|
|
62
|
-
- `nss`: note setting asset.
|
|
63
|
-
|
|
64
|
-
### `sifcToLevelData(chart, offset?)`
|
|
65
|
-
|
|
66
|
-
Converts SIFC (SIF Chart) to Level Data.
|
|
67
|
-
|
|
68
|
-
- `chart`: SIF Chart.
|
|
69
|
-
- `offset`: offset (default: `0`).
|
|
1
|
+
# Sonolus LLSIF Engine
|
|
2
|
+
|
|
3
|
+
A recreation of Love Live! School idol festival 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-llsif-engine
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Custom Resources
|
|
17
|
+
|
|
18
|
+
### Skin Sprites
|
|
19
|
+
|
|
20
|
+
| Name |
|
|
21
|
+
| ------------------------- |
|
|
22
|
+
| `LLSIF Connection Active` |
|
|
23
|
+
|
|
24
|
+
## Documentation
|
|
25
|
+
|
|
26
|
+
### `version`
|
|
27
|
+
|
|
28
|
+
Package version.
|
|
29
|
+
|
|
30
|
+
### `databaseEngineItem`
|
|
31
|
+
|
|
32
|
+
Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
|
|
33
|
+
|
|
34
|
+
### `engineConfigurationPath`
|
|
35
|
+
|
|
36
|
+
Path to Engine Configuration file.
|
|
37
|
+
|
|
38
|
+
### `enginePlayDataPath`
|
|
39
|
+
|
|
40
|
+
Path to Engine Play Data file.
|
|
41
|
+
|
|
42
|
+
### `engineWatchDataPath`
|
|
43
|
+
|
|
44
|
+
Path to Engine Watch Data file.
|
|
45
|
+
|
|
46
|
+
### `enginePreviewDataPath`
|
|
47
|
+
|
|
48
|
+
Path to Engine Preview Data file.
|
|
49
|
+
|
|
50
|
+
### `engineTutorialDataPath`
|
|
51
|
+
|
|
52
|
+
Path to Engine Tutorial Data file.
|
|
53
|
+
|
|
54
|
+
### `engineThumbnailPath`
|
|
55
|
+
|
|
56
|
+
Path to Engine Thumbnail file.
|
|
57
|
+
|
|
58
|
+
### `nssToSIFC(nss)`
|
|
59
|
+
|
|
60
|
+
Converts NSS (note setting asset) to SIFC (SIF Chart).
|
|
61
|
+
|
|
62
|
+
- `nss`: note setting asset.
|
|
63
|
+
|
|
64
|
+
### `sifcToLevelData(chart, offset?)`
|
|
65
|
+
|
|
66
|
+
Converts SIFC (SIF Chart) to Level Data.
|
|
67
|
+
|
|
68
|
+
- `chart`: SIF Chart.
|
|
69
|
+
- `offset`: offset (default: `0`).
|
package/dist/EnginePlayData
CHANGED
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ __exportStar(require("./nss/index.cjs"), exports);
|
|
|
22
22
|
var convert_cjs_2 = require("./sifc/convert.cjs");
|
|
23
23
|
Object.defineProperty(exports, "sifcToLevelData", { enumerable: true, get: function () { return convert_cjs_2.sifcToLevelData; } });
|
|
24
24
|
__exportStar(require("./sifc/index.cjs"), exports);
|
|
25
|
-
exports.version = '1.4.
|
|
25
|
+
exports.version = '1.4.1';
|
|
26
26
|
exports.databaseEngineItem = {
|
|
27
27
|
name: 'llsif',
|
|
28
28
|
version: 12,
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ export { nssToSIFC } from './nss/convert.cjs';
|
|
|
2
2
|
export * from './nss/index.cjs';
|
|
3
3
|
export { sifcToLevelData } from './sifc/convert.cjs';
|
|
4
4
|
export * from './sifc/index.cjs';
|
|
5
|
-
export declare const version = "1.4.
|
|
5
|
+
export declare const version = "1.4.1";
|
|
6
6
|
export declare const databaseEngineItem: {
|
|
7
7
|
readonly name: "llsif";
|
|
8
8
|
readonly version: 12;
|
package/dist/sifc/convert.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sifcToLevelData =
|
|
4
|
-
const
|
|
3
|
+
exports.sifcToLevelData = sifcToLevelData;
|
|
4
|
+
const core_1 = require("@sonolus/core");
|
|
5
5
|
function sifcToLevelData(chart, offset = 0) {
|
|
6
6
|
const entities = [];
|
|
7
7
|
const beatToIntermediates = new Map();
|
|
@@ -25,7 +25,7 @@ function sifcToLevelData(chart, offset = 0) {
|
|
|
25
25
|
data: [],
|
|
26
26
|
};
|
|
27
27
|
if (intermediate.sim) {
|
|
28
|
-
const beat = intermediate.data[
|
|
28
|
+
const beat = intermediate.data[core_1.EngineArchetypeDataName.Beat];
|
|
29
29
|
if (typeof beat !== 'number')
|
|
30
30
|
throw new Error('Unexpected beat');
|
|
31
31
|
const intermediates = beatToIntermediates.get(beat);
|
|
@@ -89,13 +89,12 @@ function sifcToLevelData(chart, offset = 0) {
|
|
|
89
89
|
entities,
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
exports.sifcToLevelData = sifcToLevelData;
|
|
93
92
|
const bpm = (object, append) => {
|
|
94
93
|
append({
|
|
95
|
-
archetype:
|
|
94
|
+
archetype: core_1.EngineArchetypeName.BpmChange,
|
|
96
95
|
data: {
|
|
97
|
-
[
|
|
98
|
-
[
|
|
96
|
+
[core_1.EngineArchetypeDataName.Beat]: object.beat,
|
|
97
|
+
[core_1.EngineArchetypeDataName.Bpm]: object.bpm,
|
|
99
98
|
},
|
|
100
99
|
sim: false,
|
|
101
100
|
});
|
|
@@ -104,7 +103,7 @@ const tap = (object, append) => {
|
|
|
104
103
|
const note = {
|
|
105
104
|
archetype: 'TapNote',
|
|
106
105
|
data: {
|
|
107
|
-
[
|
|
106
|
+
[core_1.EngineArchetypeDataName.Beat]: object.beat,
|
|
108
107
|
lane: object.lane,
|
|
109
108
|
},
|
|
110
109
|
sim: true,
|
|
@@ -120,7 +119,7 @@ const swing = (object, append) => {
|
|
|
120
119
|
const note = {
|
|
121
120
|
archetype: 'SwingNote',
|
|
122
121
|
data: {
|
|
123
|
-
[
|
|
122
|
+
[core_1.EngineArchetypeDataName.Beat]: object.beat,
|
|
124
123
|
lane: object.lane,
|
|
125
124
|
direction: object.direction === 'Left' ? -1 : 1,
|
|
126
125
|
},
|
|
@@ -138,7 +137,7 @@ const hold = (head, beat, append) => {
|
|
|
138
137
|
const tail = {
|
|
139
138
|
archetype: 'HoldNote',
|
|
140
139
|
data: {
|
|
141
|
-
[
|
|
140
|
+
[core_1.EngineArchetypeDataName.Beat]: beat,
|
|
142
141
|
prev: head,
|
|
143
142
|
},
|
|
144
143
|
sim: false,
|
package/dist/sifc/convert.d.cts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonolus-llsif-engine",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "A recreation of Love Live! School idol festival engine in Sonolus",
|
|
5
5
|
"author": "NonSpicyBurrito",
|
|
6
6
|
"repository": "github:NonSpicyBurrito/sonolus-llsif-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
|
|
24
|
+
"@sonolus/core": "~7.9.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"
|
|
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.
|
|
33
|
-
"prettier-plugin-organize-imports": "^
|
|
34
|
-
"
|
|
35
|
-
"typescript": "
|
|
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
|
}
|