sonolus-bandori-engine 1.0.1 → 1.0.3

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 ADDED
@@ -0,0 +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
21
+ SOFTWARE.
@@ -1,38 +1,38 @@
1
- export type BestdoriChart = ChartObject[];
2
- export type ChartObject = SingleObject | DirectionalObject | SlideObject | LongObject | BPMObject | SystemObject;
3
- type ObjectBase = {
1
+ export type BestdoriChart = BestdoriObject[];
2
+ export type BestdoriObject = BestdoriSingleNote | BestdoriDirectionalNote | BestdoriSlideNote | BestdoriLongNote | BestdoriBPMObject | BestdoriSystemObject;
3
+ type BaseBestdoriObject = {
4
4
  beat: number;
5
5
  };
6
- type NoteBase = ObjectBase & {
6
+ type BaseBestdoriNote = BaseBestdoriObject & {
7
7
  lane: number;
8
8
  flick?: true;
9
9
  skill?: true;
10
10
  charge?: true;
11
11
  };
12
- export type SingleObject = NoteBase & {
12
+ export type BestdoriSingleNote = BaseBestdoriNote & {
13
13
  type: 'Single';
14
14
  };
15
- export type DirectionalObject = NoteBase & {
15
+ export type BestdoriDirectionalNote = BaseBestdoriNote & {
16
16
  type: 'Directional';
17
17
  direction: 'Left' | 'Right';
18
18
  width: number;
19
19
  };
20
- export type SlideObject = {
20
+ export type BestdoriSlideNote = {
21
21
  type: 'Slide';
22
- connections: Connection[];
22
+ connections: BestdoriConnectionNote[];
23
23
  };
24
- export type LongObject = {
24
+ export type BestdoriLongNote = {
25
25
  type: 'Long';
26
- connections: Connection[];
26
+ connections: BestdoriConnectionNote[];
27
27
  };
28
- export type Connection = NoteBase & {
28
+ export type BestdoriConnectionNote = BaseBestdoriNote & {
29
29
  hidden?: true;
30
30
  };
31
- export type BPMObject = ObjectBase & {
31
+ export type BestdoriBPMObject = BaseBestdoriObject & {
32
32
  type: 'BPM';
33
33
  bpm: number;
34
34
  };
35
- export type SystemObject = ObjectBase & {
35
+ export type BestdoriSystemObject = BaseBestdoriObject & {
36
36
  type: 'System';
37
37
  data: string;
38
38
  };
package/dist/index.cjs CHANGED
@@ -1,10 +1,25 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.engineThumbnail = exports.engineData = exports.engineConfiguration = exports.engineInfo = exports.version = exports.bestdoriToLevelData = void 0;
4
18
  const Resource_cjs_1 = require("./Resource.cjs");
5
19
  var convert_cjs_1 = require("./bestdori/convert.cjs");
6
20
  Object.defineProperty(exports, "bestdoriToLevelData", { enumerable: true, get: function () { return convert_cjs_1.bestdoriToLevelData; } });
7
- exports.version = '1.0.1';
21
+ __exportStar(require("./bestdori/index.cjs"), exports);
22
+ exports.version = '1.0.3';
8
23
  exports.engineInfo = {
9
24
  name: 'bandori',
10
25
  version: 8,
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Resource } from './Resource.cjs';
2
2
  export { bestdoriToLevelData } from './bestdori/convert.cjs';
3
- export declare const version = "1.0.1";
3
+ export * from './bestdori/index.cjs';
4
+ export declare const version = "1.0.3";
4
5
  export declare const engineInfo: {
5
6
  readonly name: "bandori";
6
7
  readonly version: 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-bandori-engine",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A recreation of BanG Dream! Girls Band Party engine in Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:NonSpicyBurrito/sonolus-bandori-engine",