sonolus-deemo-engine 1.3.0 → 1.4.0-alpha.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
@@ -19,57 +19,33 @@ npm install sonolus-deemo-engine
19
19
 
20
20
  Package version.
21
21
 
22
- ### `engineInfo`
22
+ ### `databaseEngineItem`
23
23
 
24
- Partial engine information compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
24
+ Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
25
25
 
26
- ### `engineConfiguration`
26
+ ### `engineConfigurationPath`
27
27
 
28
- Engine Configuration.
28
+ Path to Engine Configuration file.
29
29
 
30
- - `engineConfiguration.path`: path to file.
31
- - `engineConfiguration.buffer`: buffer of file.
32
- - `engineConfiguration.hash`: hash of file.
30
+ ### `enginePlayDataPath`
33
31
 
34
- ### `enginePlayData`
32
+ Path to Engine Play Data file.
35
33
 
36
- Engine Play Data.
34
+ ### `engineWatchDataPath`
37
35
 
38
- - `enginePlayData.path`: path to file.
39
- - `enginePlayData.buffer`: buffer of file.
40
- - `enginePlayData.hash`: hash of file.
36
+ Path to Engine Watch Data file.
41
37
 
42
- ### `engineWatchData`
38
+ ### `enginePreviewDataPath`
43
39
 
44
- Engine Watch Data.
40
+ Path to Engine Preview Data file.
45
41
 
46
- - `engineWatchData.path`: path to file.
47
- - `engineWatchData.buffer`: buffer of file.
48
- - `engineWatchData.hash`: hash of file.
42
+ ### `engineTutorialDataPath`
49
43
 
50
- ### `enginePreviewData`
44
+ Path to Engine Tutorial Data file.
51
45
 
52
- Engine Preview Data.
46
+ ### `engineThumbnailPath`
53
47
 
54
- - `enginePreviewData.path`: path to file.
55
- - `enginePreviewData.buffer`: buffer of file.
56
- - `enginePreviewData.hash`: hash of file.
57
-
58
- ### `engineTutorialData`
59
-
60
- Engine Tutorial Data.
61
-
62
- - `engineTutorialData.path`: path to file.
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.
48
+ Path to Engine Thumbnail file.
73
49
 
74
50
  ### `dsToDC(ds)`
75
51
 
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -8,10 +8,6 @@ const dcToLevelData = (dc, offset = 0) => {
8
8
  archetype: 'Initialization',
9
9
  data: [],
10
10
  },
11
- {
12
- archetype: 'InputManager',
13
- data: [],
14
- },
15
11
  {
16
12
  archetype: 'Stage',
17
13
  data: [],
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.engineThumbnail = exports.engineTutorialData = exports.enginePreviewData = exports.engineWatchData = exports.enginePlayData = exports.engineConfiguration = exports.engineInfo = exports.version = exports.dsToDC = exports.dcToLevelData = void 0;
18
- const Resource_cjs_1 = require("./Resource.cjs");
17
+ exports.engineThumbnailPath = exports.engineTutorialDataPath = exports.enginePreviewDataPath = exports.engineWatchDataPath = exports.enginePlayDataPath = exports.engineConfigurationPath = exports.databaseEngineItem = exports.version = exports.dsToDC = exports.dcToLevelData = void 0;
18
+ const node_path_1 = require("node:path");
19
19
  var convert_cjs_1 = require("./dc/convert.cjs");
20
20
  Object.defineProperty(exports, "dcToLevelData", { enumerable: true, get: function () { return convert_cjs_1.dcToLevelData; } });
21
21
  __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.3.0';
26
- exports.engineInfo = {
25
+ exports.version = '1.4.0-alpha.1';
26
+ exports.databaseEngineItem = {
27
27
  name: 'deemo',
28
- version: 11,
28
+ version: 12,
29
29
  title: {
30
30
  en: 'Deemo',
31
31
  },
@@ -47,9 +47,9 @@ exports.engineInfo = {
47
47
  ].join('\n'),
48
48
  },
49
49
  };
50
- exports.engineConfiguration = new Resource_cjs_1.Resource('EngineConfiguration');
51
- exports.enginePlayData = new Resource_cjs_1.Resource('EnginePlayData');
52
- exports.engineWatchData = new Resource_cjs_1.Resource('EngineWatchData');
53
- exports.enginePreviewData = new Resource_cjs_1.Resource('EnginePreviewData');
54
- exports.engineTutorialData = new Resource_cjs_1.Resource('EngineTutorialData');
55
- exports.engineThumbnail = new Resource_cjs_1.Resource('thumbnail.png');
50
+ exports.engineConfigurationPath = (0, node_path_1.resolve)(__dirname, 'EngineConfiguration');
51
+ exports.enginePlayDataPath = (0, node_path_1.resolve)(__dirname, 'EnginePlayData');
52
+ exports.engineWatchDataPath = (0, node_path_1.resolve)(__dirname, 'EngineWatchData');
53
+ exports.enginePreviewDataPath = (0, node_path_1.resolve)(__dirname, 'EnginePreviewData');
54
+ exports.engineTutorialDataPath = (0, node_path_1.resolve)(__dirname, 'EngineTutorialData');
55
+ 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 { dcToLevelData } from './dc/convert.cjs';
3
2
  export * from './dc/index.cjs';
4
3
  export { dsToDC } from './ds/convert.cjs';
5
4
  export * from './ds/index.cjs';
6
- export declare const version = "1.3.0";
7
- export declare const engineInfo: {
5
+ export declare const version = "1.4.0-alpha.1";
6
+ export declare const databaseEngineItem: {
8
7
  readonly name: "deemo";
9
- readonly version: 11;
8
+ readonly version: 12;
10
9
  readonly title: {
11
10
  readonly en: "Deemo";
12
11
  };
@@ -20,9 +19,9 @@ export declare const engineInfo: {
20
19
  readonly en: string;
21
20
  };
22
21
  };
23
- export declare const engineConfiguration: Resource;
24
- export declare const enginePlayData: Resource;
25
- export declare const engineWatchData: Resource;
26
- export declare const enginePreviewData: Resource;
27
- export declare const engineTutorialData: Resource;
28
- export declare const engineThumbnail: Resource;
22
+ export declare const engineConfigurationPath: string;
23
+ export declare const enginePlayDataPath: string;
24
+ export declare const engineWatchDataPath: string;
25
+ export declare const enginePreviewDataPath: string;
26
+ export declare const engineTutorialDataPath: string;
27
+ export declare const engineThumbnailPath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-deemo-engine",
3
- "version": "1.3.0",
3
+ "version": "1.4.0-alpha.1",
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,17 @@
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.4.0"
24
+ "sonolus-core": "7.5.0-alpha.4"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "^16.18.65",
28
- "@typescript-eslint/eslint-plugin": "^6.12.0",
29
- "@typescript-eslint/parser": "^6.12.0",
30
- "eslint": "^8.54.0",
31
- "eslint-config-prettier": "^9.0.0",
32
- "prettier": "^3.1.0",
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
33
  "prettier-plugin-organize-imports": "^3.2.4",
34
- "sonolus.js": "~9.3.0",
35
- "typescript": "~5.2.2"
34
+ "sonolus.js": "9.4.0-alpha.4",
35
+ "typescript": "~5.3.3"
36
36
  }
37
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;
@@ -1,9 +0,0 @@
1
- /// <reference types="node" />
2
- export declare class Resource {
3
- readonly path: string;
4
- private _hash;
5
- private _buffer;
6
- constructor(path: string);
7
- get hash(): string;
8
- get buffer(): Buffer;
9
- }