sonolus-llsif-engine 1.2.1 → 1.4.0-alpha.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/README.md +14 -30
- package/dist/EngineConfiguration +0 -0
- package/dist/EnginePlayData +0 -0
- package/dist/EnginePreviewData +0 -0
- package/dist/EngineTutorialData +0 -0
- package/dist/EngineWatchData +0 -0
- package/dist/index.cjs +11 -10
- package/dist/index.d.cts +9 -9
- package/dist/sifc/convert.cjs +2 -7
- package/package.json +14 -13
- package/dist/Resource.cjs +0 -20
- package/dist/Resource.d.cts +0 -9
package/README.md
CHANGED
|
@@ -27,49 +27,33 @@ npm install sonolus-llsif-engine
|
|
|
27
27
|
|
|
28
28
|
Package version.
|
|
29
29
|
|
|
30
|
-
### `
|
|
30
|
+
### `databaseEngineItem`
|
|
31
31
|
|
|
32
|
-
Partial engine
|
|
32
|
+
Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
|
|
33
33
|
|
|
34
|
-
### `
|
|
34
|
+
### `engineConfigurationPath`
|
|
35
35
|
|
|
36
|
-
Engine Configuration.
|
|
36
|
+
Path to Engine Configuration file.
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
- `engineConfiguration.buffer`: buffer of file.
|
|
40
|
-
- `engineConfiguration.hash`: hash of file.
|
|
38
|
+
### `enginePlayDataPath`
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
Path to Engine Play Data file.
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
### `engineWatchDataPath`
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
- `enginePlayData.buffer`: buffer of file.
|
|
48
|
-
- `enginePlayData.hash`: hash of file.
|
|
44
|
+
Path to Engine Watch Data file.
|
|
49
45
|
|
|
50
|
-
### `
|
|
46
|
+
### `enginePreviewDataPath`
|
|
51
47
|
|
|
52
|
-
Engine Preview Data.
|
|
48
|
+
Path to Engine Preview Data file.
|
|
53
49
|
|
|
54
|
-
|
|
55
|
-
- `enginePreviewData.buffer`: buffer of file.
|
|
56
|
-
- `enginePreviewData.hash`: hash of file.
|
|
50
|
+
### `engineTutorialDataPath`
|
|
57
51
|
|
|
58
|
-
|
|
52
|
+
Path to Engine Tutorial Data file.
|
|
59
53
|
|
|
60
|
-
|
|
54
|
+
### `engineThumbnailPath`
|
|
61
55
|
|
|
62
|
-
|
|
63
|
-
- `engineTutorialData.buffer`: buffer of file.
|
|
64
|
-
- `engineTutorialData.hash`: hash of file.
|
|
65
|
-
|
|
66
|
-
### `engineThumbnail`
|
|
67
|
-
|
|
68
|
-
Engine Thumbnail.
|
|
69
|
-
|
|
70
|
-
- `engineThumbnail.path`: path to file.
|
|
71
|
-
- `engineThumbnail.buffer`: buffer of file.
|
|
72
|
-
- `engineThumbnail.hash`: hash of file.
|
|
56
|
+
Path to Engine Thumbnail file.
|
|
73
57
|
|
|
74
58
|
### `nssToSIFC(nss)`
|
|
75
59
|
|
package/dist/EngineConfiguration
CHANGED
|
Binary file
|
package/dist/EnginePlayData
CHANGED
|
Binary file
|
package/dist/EnginePreviewData
CHANGED
|
Binary file
|
package/dist/EngineTutorialData
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -14,18 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.engineThumbnailPath = exports.engineTutorialDataPath = exports.enginePreviewDataPath = exports.engineWatchDataPath = exports.enginePlayDataPath = exports.engineConfigurationPath = exports.databaseEngineItem = exports.version = exports.sifcToLevelData = exports.nssToSIFC = void 0;
|
|
18
|
+
const node_path_1 = require("node:path");
|
|
19
19
|
var convert_cjs_1 = require("./nss/convert.cjs");
|
|
20
20
|
Object.defineProperty(exports, "nssToSIFC", { enumerable: true, get: function () { return convert_cjs_1.nssToSIFC; } });
|
|
21
21
|
__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.
|
|
26
|
-
exports.
|
|
25
|
+
exports.version = '1.4.0-alpha.0';
|
|
26
|
+
exports.databaseEngineItem = {
|
|
27
27
|
name: 'llsif',
|
|
28
|
-
version:
|
|
28
|
+
version: 12,
|
|
29
29
|
title: {
|
|
30
30
|
en: 'Love Live!',
|
|
31
31
|
ja: 'ラブライブ!',
|
|
@@ -55,8 +55,9 @@ exports.engineInfo = {
|
|
|
55
55
|
].join('\n'),
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
58
|
+
exports.engineConfigurationPath = (0, node_path_1.resolve)(__dirname, 'EngineConfiguration');
|
|
59
|
+
exports.enginePlayDataPath = (0, node_path_1.resolve)(__dirname, 'EnginePlayData');
|
|
60
|
+
exports.engineWatchDataPath = (0, node_path_1.resolve)(__dirname, 'EngineWatchData');
|
|
61
|
+
exports.enginePreviewDataPath = (0, node_path_1.resolve)(__dirname, 'EnginePreviewData');
|
|
62
|
+
exports.engineTutorialDataPath = (0, node_path_1.resolve)(__dirname, 'EngineTutorialData');
|
|
63
|
+
exports.engineThumbnailPath = (0, node_path_1.resolve)(__dirname, 'thumbnail.png');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Resource } from './Resource.cjs';
|
|
2
1
|
export { nssToSIFC } from './nss/convert.cjs';
|
|
3
2
|
export * from './nss/index.cjs';
|
|
4
3
|
export { sifcToLevelData } from './sifc/convert.cjs';
|
|
5
4
|
export * from './sifc/index.cjs';
|
|
6
|
-
export declare const version = "1.
|
|
7
|
-
export declare const
|
|
5
|
+
export declare const version = "1.4.0-alpha.0";
|
|
6
|
+
export declare const databaseEngineItem: {
|
|
8
7
|
readonly name: "llsif";
|
|
9
|
-
readonly version:
|
|
8
|
+
readonly version: 12;
|
|
10
9
|
readonly title: {
|
|
11
10
|
readonly en: "Love Live!";
|
|
12
11
|
readonly ja: "ラブライブ!";
|
|
@@ -28,8 +27,9 @@ export declare const engineInfo: {
|
|
|
28
27
|
readonly en: string;
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
|
-
export declare const
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
34
|
-
export declare const
|
|
35
|
-
export declare const
|
|
30
|
+
export declare const engineConfigurationPath: string;
|
|
31
|
+
export declare const enginePlayDataPath: string;
|
|
32
|
+
export declare const engineWatchDataPath: string;
|
|
33
|
+
export declare const enginePreviewDataPath: string;
|
|
34
|
+
export declare const engineTutorialDataPath: string;
|
|
35
|
+
export declare const engineThumbnailPath: string;
|
package/dist/sifc/convert.cjs
CHANGED
|
@@ -16,7 +16,7 @@ function sifcToLevelData(chart, offset = 0) {
|
|
|
16
16
|
intermediateToRef.set(intermediate, ref);
|
|
17
17
|
const entity = intermediateToEntity.get(intermediate);
|
|
18
18
|
if (entity)
|
|
19
|
-
entity.
|
|
19
|
+
entity.name = ref;
|
|
20
20
|
return ref;
|
|
21
21
|
};
|
|
22
22
|
const append = (intermediate) => {
|
|
@@ -38,7 +38,7 @@ function sifcToLevelData(chart, offset = 0) {
|
|
|
38
38
|
}
|
|
39
39
|
const ref = intermediateToRef.get(intermediate);
|
|
40
40
|
if (ref)
|
|
41
|
-
entity.
|
|
41
|
+
entity.name = ref;
|
|
42
42
|
intermediateToEntity.set(intermediate, entity);
|
|
43
43
|
entities.push(entity);
|
|
44
44
|
for (const [name, value] of Object.entries(intermediate.data)) {
|
|
@@ -63,11 +63,6 @@ function sifcToLevelData(chart, offset = 0) {
|
|
|
63
63
|
},
|
|
64
64
|
sim: false,
|
|
65
65
|
});
|
|
66
|
-
append({
|
|
67
|
-
archetype: 'InputManager',
|
|
68
|
-
data: {},
|
|
69
|
-
sim: false,
|
|
70
|
-
});
|
|
71
66
|
append({
|
|
72
67
|
archetype: 'Stage',
|
|
73
68
|
data: {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonolus-llsif-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-alpha.0",
|
|
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",
|
|
@@ -14,23 +14,24 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"dev:play": "sonolus-cli --dev ./play",
|
|
17
|
+
"dev:watch": "sonolus-cli --dev ./watch",
|
|
17
18
|
"dev:preview": "sonolus-cli --dev ./preview",
|
|
18
19
|
"dev:tutorial": "sonolus-cli --dev ./tutorial",
|
|
19
|
-
"prebuild": "tsc -p ./lib --noEmit && tsc -p ./shared --noEmit && tsc -p ./play --noEmit && tsc -p ./preview --noEmit && tsc -p ./tutorial --noEmit && eslint . && prettier . --check",
|
|
20
|
-
"build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.mjs"
|
|
20
|
+
"prebuild": "tsc -p ./lib --noEmit && tsc -p ./shared --noEmit && tsc -p ./play --noEmit && tsc -p ./watch --noEmit && tsc -p ./preview --noEmit && tsc -p ./tutorial --noEmit && eslint . && prettier . --check",
|
|
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"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"sonolus-core": "
|
|
24
|
+
"sonolus-core": "7.5.0-alpha.4"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^16.18.
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
28
|
-
"@typescript-eslint/parser": "^6.
|
|
29
|
-
"eslint": "^8.
|
|
30
|
-
"eslint-config-prettier": "^9.
|
|
31
|
-
"prettier": "^3.
|
|
32
|
-
"prettier-plugin-organize-imports": "^3.2.
|
|
33
|
-
"sonolus.js": "
|
|
34
|
-
"typescript": "~5.
|
|
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",
|
|
31
|
+
"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"
|
|
35
36
|
}
|
|
36
37
|
}
|
package/dist/Resource.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Resource = void 0;
|
|
4
|
-
const node_crypto_1 = require("node:crypto");
|
|
5
|
-
const node_fs_1 = require("node:fs");
|
|
6
|
-
const node_path_1 = require("node:path");
|
|
7
|
-
class Resource {
|
|
8
|
-
constructor(path) {
|
|
9
|
-
this.path = (0, node_path_1.resolve)(__dirname, path);
|
|
10
|
-
}
|
|
11
|
-
get hash() {
|
|
12
|
-
this._hash ??= (0, node_crypto_1.createHash)('sha1').update(this.buffer).digest('hex');
|
|
13
|
-
return this._hash;
|
|
14
|
-
}
|
|
15
|
-
get buffer() {
|
|
16
|
-
this._buffer ??= (0, node_fs_1.readFileSync)(this.path);
|
|
17
|
-
return this._buffer;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Resource = Resource;
|