@drincs/pixi-vn 1.3.13 → 1.3.15
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/dist/{classes/index.d.cts → CachedMap-DZLvJAnA.d.cts} +1 -1
- package/dist/{classes/index.d.ts → CachedMap-DZLvJAnA.d.ts} +1 -1
- package/dist/{OpenedLabel-DxlOwJKw.d.ts → HistoryChoiceMenuOption-BjnxDyK5.d.cts} +47 -2
- package/dist/{OpenedLabel-Dgkgemkv.d.cts → HistoryChoiceMenuOption-ZdrL_kYX.d.ts} +47 -2
- package/dist/{StorageElementType-DTGcnkzF.d.ts → StorageElementType-dAIVJeiw.d.cts} +1 -1
- package/dist/{StorageElementType-DTGcnkzF.d.cts → StorageElementType-dAIVJeiw.d.ts} +1 -1
- package/dist/history.cjs +1 -0
- package/dist/{history/index.d.ts → history.d.cts} +14 -8
- package/dist/{history/index.d.cts → history.d.ts} +14 -8
- package/dist/history.mjs +1 -0
- package/dist/index.cjs +143 -143
- package/dist/index.d.cts +3076 -216
- package/dist/index.d.ts +3076 -216
- package/dist/index.mjs +143 -143
- package/dist/narration.cjs +2 -0
- package/dist/{index-_rD16ks5.d.ts → narration.d.cts} +27 -44
- package/dist/{index-Bl9hiHQR.d.cts → narration.d.ts} +27 -44
- package/dist/narration.mjs +2 -0
- package/dist/storage.cjs +1 -0
- package/dist/{storage/index.d.ts → storage.d.cts} +75 -6
- package/dist/{storage/index.d.cts → storage.d.ts} +75 -6
- package/dist/storage.mjs +1 -0
- package/dist/unifier.cjs +1 -0
- package/dist/unifier.d.cts +230 -0
- package/dist/unifier.d.ts +230 -0
- package/dist/unifier.mjs +1 -0
- package/package.json +29 -2
- package/dist/ContainerMemory-CrY9QSo2.d.cts +0 -106
- package/dist/ContainerMemory-DrijxCcD.d.ts +0 -106
- package/dist/HistoryChoiceMenuOption-Kj_P28ke.d.ts +0 -49
- package/dist/HistoryChoiceMenuOption-unaLLfKR.d.cts +0 -49
- package/dist/HistoryGameState-i_gx3rGM.d.ts +0 -12
- package/dist/HistoryGameState-qeIMl_DH.d.cts +0 -12
- package/dist/NarrationGameState-CqDh48n_.d.ts +0 -24
- package/dist/NarrationGameState-Cu-OYzph.d.cts +0 -24
- package/dist/SoundGameState-BG_iPwjt.d.cts +0 -85
- package/dist/SoundGameState-BG_iPwjt.d.ts +0 -85
- package/dist/StorageGameState-B2kz-u_2.d.cts +0 -19
- package/dist/StorageGameState-Cnfj75sk.d.ts +0 -19
- package/dist/StoredClassModel-CjdhvNgB.d.cts +0 -56
- package/dist/StoredClassModel-CjdhvNgB.d.ts +0 -56
- package/dist/TickersSequence-Cf1Vcu22.d.cts +0 -133
- package/dist/TickersSequence-Cf1Vcu22.d.ts +0 -133
- package/dist/canvas/index.cjs +0 -3316
- package/dist/canvas/index.d.cts +0 -8
- package/dist/canvas/index.d.ts +0 -8
- package/dist/canvas/index.mjs +0 -3316
- package/dist/canvas/tickers/index.cjs +0 -3316
- package/dist/canvas/tickers/index.d.cts +0 -467
- package/dist/canvas/tickers/index.d.ts +0 -467
- package/dist/canvas/tickers/index.mjs +0 -3316
- package/dist/character/index.cjs +0 -572
- package/dist/character/index.d.cts +0 -3
- package/dist/character/index.d.ts +0 -3
- package/dist/character/index.mjs +0 -572
- package/dist/classes/index.cjs +0 -1
- package/dist/classes/index.mjs +0 -1
- package/dist/history/index.cjs +0 -1
- package/dist/history/index.mjs +0 -1
- package/dist/index-B4F3XaWz.d.cts +0 -1767
- package/dist/index-Cax-mGq_.d.cts +0 -216
- package/dist/index-Cvdua0o-.d.ts +0 -216
- package/dist/index-Czfdktw9.d.ts +0 -93
- package/dist/index-DZ1shoNp.d.cts +0 -93
- package/dist/index-DvpfJ2VQ.d.ts +0 -1767
- package/dist/interfaces/index.cjs +0 -1
- package/dist/interfaces/index.d.cts +0 -55
- package/dist/interfaces/index.d.ts +0 -55
- package/dist/interfaces/index.mjs +0 -0
- package/dist/narration/index.cjs +0 -573
- package/dist/narration/index.d.cts +0 -8
- package/dist/narration/index.d.ts +0 -8
- package/dist/narration/index.mjs +0 -573
- package/dist/sound/index.cjs +0 -572
- package/dist/sound/index.d.cts +0 -3
- package/dist/sound/index.d.ts +0 -3
- package/dist/sound/index.mjs +0 -572
- package/dist/storage/index.cjs +0 -1
- package/dist/storage/index.mjs +0 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.d.cts +0 -8
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/index.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drincs/pixi-vn",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pixi'VN is a npm package that provides various features for creating visual novels.",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsup",
|
|
13
|
+
"build:unifier": "tsup --config tsup.unifier.config.ts",
|
|
14
|
+
"build:submodules": "tsup --config tsup.submodules.config.ts",
|
|
15
|
+
"build:index": "tsup --config tsup.config.ts",
|
|
16
|
+
"build": "npm run build:unifier && npm run build:submodules && npm run build:index",
|
|
14
17
|
"test": "vitest"
|
|
15
18
|
},
|
|
16
19
|
"exports": {
|
|
@@ -19,6 +22,30 @@
|
|
|
19
22
|
"import": "./dist/index.mjs",
|
|
20
23
|
"require": "./dist/index.cjs",
|
|
21
24
|
"default": "./dist/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./unifier": {
|
|
27
|
+
"types": "./dist/unifier.d.ts",
|
|
28
|
+
"import": "./dist/unifier.mjs",
|
|
29
|
+
"require": "./dist/unifier.cjs",
|
|
30
|
+
"default": "./dist/unifier.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./narration": {
|
|
33
|
+
"types": "./dist/narration.d.ts",
|
|
34
|
+
"import": "./dist/narration.mjs",
|
|
35
|
+
"require": "./dist/narration.cjs",
|
|
36
|
+
"default": "./dist/narration.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./history": {
|
|
39
|
+
"types": "./dist/history.d.ts",
|
|
40
|
+
"import": "./dist/history.mjs",
|
|
41
|
+
"require": "./dist/history.cjs",
|
|
42
|
+
"default": "./dist/history.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./storage": {
|
|
45
|
+
"types": "./dist/storage.d.ts",
|
|
46
|
+
"import": "./dist/storage.mjs",
|
|
47
|
+
"require": "./dist/storage.cjs",
|
|
48
|
+
"default": "./dist/storage.mjs"
|
|
22
49
|
}
|
|
23
50
|
},
|
|
24
51
|
"repository": {
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { b as TickerHistory, d as TickersSequence } from './TickersSequence-Cf1Vcu22.cjs';
|
|
2
|
-
import { Container, ContainerOptions } from 'pixi.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This class is used to create a canvas element to add into a Pixi Application.
|
|
6
|
-
* You can use {@link canvas.add()} to add this element into the application.
|
|
7
|
-
* This class should be implemented and the memory method should be overridden.
|
|
8
|
-
* You must use the {@link canvasComponentDecorator} to register the canvas in the game.
|
|
9
|
-
* In Ren'Py is a displayable.
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* \@canvasComponentDecorator() // this is equivalent to canvasComponentDecorator("CanvasExample")
|
|
13
|
-
* export class CanvasExample extends Container implements CanvasBaseItem<ICanvasExampleMemory> {
|
|
14
|
-
* get memory(): ICanvasExampleMemory {
|
|
15
|
-
* return {
|
|
16
|
-
* pixivnId: "CanvasExample",
|
|
17
|
-
* // ... other properties
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
* set memory(value: ICanvasExampleMemory) {
|
|
21
|
-
* // ... set other properties
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare class CanvasBaseItem<T2 extends CanvasBaseItemMemory> {
|
|
27
|
-
/**
|
|
28
|
-
* This method return the memory of the canvas element.
|
|
29
|
-
*/
|
|
30
|
-
get memory(): T2;
|
|
31
|
-
/**
|
|
32
|
-
* This method set the memory of the canvas element.
|
|
33
|
-
*/
|
|
34
|
-
set memory(_value: T2);
|
|
35
|
-
/**
|
|
36
|
-
* This method set the memory of the canvas element. Is equivalent to the {@link CanvasBaseItem.memory} method, but this method is async.
|
|
37
|
-
*/
|
|
38
|
-
setMemory(_value: T2): Promise<void> | void;
|
|
39
|
-
/**
|
|
40
|
-
* Get the id of the canvas element. This variable is used in the system to get the canvas element by id, {@link getCanvasElementInstanceById}
|
|
41
|
-
*/
|
|
42
|
-
pixivnId: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Interface for the canvas base memory
|
|
47
|
-
*/
|
|
48
|
-
interface CanvasBaseItemMemory {
|
|
49
|
-
pixivnId: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
type PauseTickerType = {
|
|
53
|
-
/**
|
|
54
|
-
* Ticker ids excluded
|
|
55
|
-
*/
|
|
56
|
-
tickerIdsExcluded?: string[];
|
|
57
|
-
/**
|
|
58
|
-
* Ticker ids included
|
|
59
|
-
*/
|
|
60
|
-
tickerIdsIncluded?: string[];
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Interface exported canvas
|
|
65
|
-
*/
|
|
66
|
-
interface CanvasGameState {
|
|
67
|
-
tickers: {
|
|
68
|
-
[id: string]: TickerHistory<any>;
|
|
69
|
-
};
|
|
70
|
-
tickersSteps: {
|
|
71
|
-
[alias: string]: {
|
|
72
|
-
[tickerId: string]: TickersSequence;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
elements: {
|
|
76
|
-
[alias: string]: CanvasBaseItemMemory;
|
|
77
|
-
};
|
|
78
|
-
stage: Partial<ContainerMemory>;
|
|
79
|
-
elementAliasesOrder: string[];
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated
|
|
82
|
-
*/
|
|
83
|
-
tickersOnPause: {
|
|
84
|
-
[alias: string]: PauseTickerType;
|
|
85
|
-
};
|
|
86
|
-
tickersToCompleteOnStepEnd: {
|
|
87
|
-
tikersIds: {
|
|
88
|
-
id: string;
|
|
89
|
-
}[];
|
|
90
|
-
stepAlias: {
|
|
91
|
-
id: string;
|
|
92
|
-
alias: string;
|
|
93
|
-
}[];
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
type ContainerChild = Container & CanvasBaseItem<any>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Interface for the canvas container memory
|
|
101
|
-
*/
|
|
102
|
-
interface ContainerMemory<C extends ContainerChild = ContainerChild> extends ContainerOptions<C>, CanvasBaseItemMemory {
|
|
103
|
-
elements: CanvasBaseItemMemory[];
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export { CanvasBaseItem as C, type PauseTickerType as P, type CanvasGameState as a, type CanvasBaseItemMemory as b, type ContainerMemory as c, type ContainerChild as d };
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { b as TickerHistory, d as TickersSequence } from './TickersSequence-Cf1Vcu22.js';
|
|
2
|
-
import { Container, ContainerOptions } from 'pixi.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This class is used to create a canvas element to add into a Pixi Application.
|
|
6
|
-
* You can use {@link canvas.add()} to add this element into the application.
|
|
7
|
-
* This class should be implemented and the memory method should be overridden.
|
|
8
|
-
* You must use the {@link canvasComponentDecorator} to register the canvas in the game.
|
|
9
|
-
* In Ren'Py is a displayable.
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* \@canvasComponentDecorator() // this is equivalent to canvasComponentDecorator("CanvasExample")
|
|
13
|
-
* export class CanvasExample extends Container implements CanvasBaseItem<ICanvasExampleMemory> {
|
|
14
|
-
* get memory(): ICanvasExampleMemory {
|
|
15
|
-
* return {
|
|
16
|
-
* pixivnId: "CanvasExample",
|
|
17
|
-
* // ... other properties
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
* set memory(value: ICanvasExampleMemory) {
|
|
21
|
-
* // ... set other properties
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare class CanvasBaseItem<T2 extends CanvasBaseItemMemory> {
|
|
27
|
-
/**
|
|
28
|
-
* This method return the memory of the canvas element.
|
|
29
|
-
*/
|
|
30
|
-
get memory(): T2;
|
|
31
|
-
/**
|
|
32
|
-
* This method set the memory of the canvas element.
|
|
33
|
-
*/
|
|
34
|
-
set memory(_value: T2);
|
|
35
|
-
/**
|
|
36
|
-
* This method set the memory of the canvas element. Is equivalent to the {@link CanvasBaseItem.memory} method, but this method is async.
|
|
37
|
-
*/
|
|
38
|
-
setMemory(_value: T2): Promise<void> | void;
|
|
39
|
-
/**
|
|
40
|
-
* Get the id of the canvas element. This variable is used in the system to get the canvas element by id, {@link getCanvasElementInstanceById}
|
|
41
|
-
*/
|
|
42
|
-
pixivnId: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Interface for the canvas base memory
|
|
47
|
-
*/
|
|
48
|
-
interface CanvasBaseItemMemory {
|
|
49
|
-
pixivnId: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
type PauseTickerType = {
|
|
53
|
-
/**
|
|
54
|
-
* Ticker ids excluded
|
|
55
|
-
*/
|
|
56
|
-
tickerIdsExcluded?: string[];
|
|
57
|
-
/**
|
|
58
|
-
* Ticker ids included
|
|
59
|
-
*/
|
|
60
|
-
tickerIdsIncluded?: string[];
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Interface exported canvas
|
|
65
|
-
*/
|
|
66
|
-
interface CanvasGameState {
|
|
67
|
-
tickers: {
|
|
68
|
-
[id: string]: TickerHistory<any>;
|
|
69
|
-
};
|
|
70
|
-
tickersSteps: {
|
|
71
|
-
[alias: string]: {
|
|
72
|
-
[tickerId: string]: TickersSequence;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
elements: {
|
|
76
|
-
[alias: string]: CanvasBaseItemMemory;
|
|
77
|
-
};
|
|
78
|
-
stage: Partial<ContainerMemory>;
|
|
79
|
-
elementAliasesOrder: string[];
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated
|
|
82
|
-
*/
|
|
83
|
-
tickersOnPause: {
|
|
84
|
-
[alias: string]: PauseTickerType;
|
|
85
|
-
};
|
|
86
|
-
tickersToCompleteOnStepEnd: {
|
|
87
|
-
tikersIds: {
|
|
88
|
-
id: string;
|
|
89
|
-
}[];
|
|
90
|
-
stepAlias: {
|
|
91
|
-
id: string;
|
|
92
|
-
alias: string;
|
|
93
|
-
}[];
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
type ContainerChild = Container & CanvasBaseItem<any>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Interface for the canvas container memory
|
|
101
|
-
*/
|
|
102
|
-
interface ContainerMemory<C extends ContainerChild = ContainerChild> extends ContainerOptions<C>, CanvasBaseItemMemory {
|
|
103
|
-
elements: CanvasBaseItemMemory[];
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export { CanvasBaseItem as C, type PauseTickerType as P, type CanvasGameState as a, type CanvasBaseItemMemory as b, type ContainerMemory as c, type ContainerChild as d };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { S as StorageElementType } from './StorageElementType-DTGcnkzF.js';
|
|
2
|
-
import { D as DialogueInterface, C as CloseType, L as LabelRunModeType } from './OpenedLabel-DxlOwJKw.js';
|
|
3
|
-
|
|
4
|
-
interface NarrationHistory {
|
|
5
|
-
/**
|
|
6
|
-
* Dialogue to be shown in the game
|
|
7
|
-
*/
|
|
8
|
-
dialogue?: DialogueInterface;
|
|
9
|
-
/**
|
|
10
|
-
* List of choices asked of the player
|
|
11
|
-
*/
|
|
12
|
-
choices?: HistoryChoiceMenuOption[];
|
|
13
|
-
/**
|
|
14
|
-
* The player made a choice
|
|
15
|
-
*/
|
|
16
|
-
playerMadeChoice?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The index of the step in the history.
|
|
19
|
-
*/
|
|
20
|
-
stepIndex: number;
|
|
21
|
-
/**
|
|
22
|
-
* The input value of the player
|
|
23
|
-
*/
|
|
24
|
-
inputValue?: StorageElementType;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* HistoryChoiceMenuOption is a type that contains the history information of a choice menu option.
|
|
29
|
-
*/
|
|
30
|
-
type HistoryChoiceMenuOption = {
|
|
31
|
-
/**
|
|
32
|
-
* Text to be displayed in the menu
|
|
33
|
-
*/
|
|
34
|
-
text: string | string[];
|
|
35
|
-
/**
|
|
36
|
-
* Method used to open the label, or close the menu.
|
|
37
|
-
*/
|
|
38
|
-
type: CloseType | LabelRunModeType;
|
|
39
|
-
/**
|
|
40
|
-
* This choice is a response
|
|
41
|
-
*/
|
|
42
|
-
isResponse: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* The choice is hidden
|
|
45
|
-
*/
|
|
46
|
-
hidden: boolean;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type { HistoryChoiceMenuOption as H, NarrationHistory as N };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { S as StorageElementType } from './StorageElementType-DTGcnkzF.cjs';
|
|
2
|
-
import { D as DialogueInterface, C as CloseType, L as LabelRunModeType } from './OpenedLabel-Dgkgemkv.cjs';
|
|
3
|
-
|
|
4
|
-
interface NarrationHistory {
|
|
5
|
-
/**
|
|
6
|
-
* Dialogue to be shown in the game
|
|
7
|
-
*/
|
|
8
|
-
dialogue?: DialogueInterface;
|
|
9
|
-
/**
|
|
10
|
-
* List of choices asked of the player
|
|
11
|
-
*/
|
|
12
|
-
choices?: HistoryChoiceMenuOption[];
|
|
13
|
-
/**
|
|
14
|
-
* The player made a choice
|
|
15
|
-
*/
|
|
16
|
-
playerMadeChoice?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The index of the step in the history.
|
|
19
|
-
*/
|
|
20
|
-
stepIndex: number;
|
|
21
|
-
/**
|
|
22
|
-
* The input value of the player
|
|
23
|
-
*/
|
|
24
|
-
inputValue?: StorageElementType;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* HistoryChoiceMenuOption is a type that contains the history information of a choice menu option.
|
|
29
|
-
*/
|
|
30
|
-
type HistoryChoiceMenuOption = {
|
|
31
|
-
/**
|
|
32
|
-
* Text to be displayed in the menu
|
|
33
|
-
*/
|
|
34
|
-
text: string | string[];
|
|
35
|
-
/**
|
|
36
|
-
* Method used to open the label, or close the menu.
|
|
37
|
-
*/
|
|
38
|
-
type: CloseType | LabelRunModeType;
|
|
39
|
-
/**
|
|
40
|
-
* This choice is a response
|
|
41
|
-
*/
|
|
42
|
-
isResponse: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* The choice is hidden
|
|
45
|
-
*/
|
|
46
|
-
hidden: boolean;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type { HistoryChoiceMenuOption as H, NarrationHistory as N };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GameStepState } from '@drincs/pixi-vn';
|
|
2
|
-
import { H as HistoryStep } from './OpenedLabel-DxlOwJKw.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface exported step data
|
|
6
|
-
*/
|
|
7
|
-
interface HistoryGameState {
|
|
8
|
-
stepsHistory: HistoryStep[];
|
|
9
|
-
originalStepData: GameStepState | undefined;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type { HistoryGameState as H };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GameStepState } from '@drincs/pixi-vn';
|
|
2
|
-
import { H as HistoryStep } from './OpenedLabel-Dgkgemkv.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface exported step data
|
|
6
|
-
*/
|
|
7
|
-
interface HistoryGameState {
|
|
8
|
-
stepsHistory: HistoryStep[];
|
|
9
|
-
originalStepData: GameStepState | undefined;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type { HistoryGameState as H };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { GameStepState } from '@drincs/pixi-vn';
|
|
2
|
-
import { H as HistoryStep, O as OpenedLabel } from './OpenedLabel-DxlOwJKw.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface exported step data
|
|
6
|
-
*/
|
|
7
|
-
interface NarrationGameState {
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated moved to HistoryManagerStatic
|
|
10
|
-
*/
|
|
11
|
-
stepsHistory?: HistoryStep[];
|
|
12
|
-
openedLabels: OpenedLabel[];
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated use stepCounter
|
|
15
|
-
*/
|
|
16
|
-
lastStepIndex?: number;
|
|
17
|
-
stepCounter: number;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated moved to HistoryManagerStatic
|
|
20
|
-
*/
|
|
21
|
-
originalStepData?: GameStepState;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type { NarrationGameState as N };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { GameStepState } from '@drincs/pixi-vn';
|
|
2
|
-
import { H as HistoryStep, O as OpenedLabel } from './OpenedLabel-Dgkgemkv.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface exported step data
|
|
6
|
-
*/
|
|
7
|
-
interface NarrationGameState {
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated moved to HistoryManagerStatic
|
|
10
|
-
*/
|
|
11
|
-
stepsHistory?: HistoryStep[];
|
|
12
|
-
openedLabels: OpenedLabel[];
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated use stepCounter
|
|
15
|
-
*/
|
|
16
|
-
lastStepIndex?: number;
|
|
17
|
-
stepCounter: number;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated moved to HistoryManagerStatic
|
|
20
|
-
*/
|
|
21
|
-
originalStepData?: GameStepState;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type { NarrationGameState as N };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Options, PlayOptions } from '@pixi/sound';
|
|
2
|
-
|
|
3
|
-
interface SoundOptions extends Omit<Options, "complete" | "loaded" | "sprites" | "source"> {
|
|
4
|
-
}
|
|
5
|
-
interface SoundPlayOptions extends Omit<PlayOptions, "complete" | "loaded"> {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type DistortionFilter = {
|
|
9
|
-
type: "DistortionFilter";
|
|
10
|
-
amount?: number;
|
|
11
|
-
};
|
|
12
|
-
type EqualizerFilter = {
|
|
13
|
-
type: "EqualizerFilter";
|
|
14
|
-
f32?: number;
|
|
15
|
-
f64?: number;
|
|
16
|
-
f125?: number;
|
|
17
|
-
f250?: number;
|
|
18
|
-
f500?: number;
|
|
19
|
-
f1k?: number;
|
|
20
|
-
f2k?: number;
|
|
21
|
-
f4k?: number;
|
|
22
|
-
f8k?: number;
|
|
23
|
-
f16k?: number;
|
|
24
|
-
};
|
|
25
|
-
type MonoFilter = {
|
|
26
|
-
type: "MonoFilter";
|
|
27
|
-
};
|
|
28
|
-
type ReverbFilter = {
|
|
29
|
-
type: "ReverbFilter";
|
|
30
|
-
seconds?: number;
|
|
31
|
-
decay?: number;
|
|
32
|
-
reverse?: boolean;
|
|
33
|
-
};
|
|
34
|
-
type StereoFilter = {
|
|
35
|
-
type: "StereoFilter";
|
|
36
|
-
pan?: number;
|
|
37
|
-
};
|
|
38
|
-
type StreamFilter = {
|
|
39
|
-
type: "StreamFilter";
|
|
40
|
-
};
|
|
41
|
-
type TelephoneFilter = {
|
|
42
|
-
type: "TelephoneFilter";
|
|
43
|
-
};
|
|
44
|
-
type SoundFilterMemory = DistortionFilter | EqualizerFilter | MonoFilter | ReverbFilter | StereoFilter | StreamFilter | TelephoneFilter;
|
|
45
|
-
|
|
46
|
-
interface ExportedSound {
|
|
47
|
-
options: SoundOptions;
|
|
48
|
-
filters?: SoundFilterMemory[];
|
|
49
|
-
}
|
|
50
|
-
interface SoundPlay {
|
|
51
|
-
stepIndex: number;
|
|
52
|
-
paused: boolean;
|
|
53
|
-
options?: SoundPlayOptions | string;
|
|
54
|
-
}
|
|
55
|
-
interface ExportedSoundPlay extends SoundPlay {
|
|
56
|
-
sound: ExportedSound;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Interface exported sounds
|
|
60
|
-
*/
|
|
61
|
-
interface SoundGameState {
|
|
62
|
-
soundAliasesOrder: string[];
|
|
63
|
-
filters?: SoundFilterMemory[];
|
|
64
|
-
soundsPlaying: {
|
|
65
|
-
[key: string]: ExportedSoundPlay;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated
|
|
69
|
-
*/
|
|
70
|
-
playInStepIndex?: {
|
|
71
|
-
[key: string]: SoundPlay;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* @deprecated
|
|
75
|
-
*/
|
|
76
|
-
sounds?: ExportedSoundOld;
|
|
77
|
-
}
|
|
78
|
-
interface ExportedSoundOld {
|
|
79
|
-
[key: string]: {
|
|
80
|
-
options: SoundOptions;
|
|
81
|
-
filters?: SoundFilterMemory[];
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type { ExportedSound as E, SoundGameState as S, SoundOptions as a, SoundPlayOptions as b, SoundFilterMemory as c, SoundPlay as d };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Options, PlayOptions } from '@pixi/sound';
|
|
2
|
-
|
|
3
|
-
interface SoundOptions extends Omit<Options, "complete" | "loaded" | "sprites" | "source"> {
|
|
4
|
-
}
|
|
5
|
-
interface SoundPlayOptions extends Omit<PlayOptions, "complete" | "loaded"> {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type DistortionFilter = {
|
|
9
|
-
type: "DistortionFilter";
|
|
10
|
-
amount?: number;
|
|
11
|
-
};
|
|
12
|
-
type EqualizerFilter = {
|
|
13
|
-
type: "EqualizerFilter";
|
|
14
|
-
f32?: number;
|
|
15
|
-
f64?: number;
|
|
16
|
-
f125?: number;
|
|
17
|
-
f250?: number;
|
|
18
|
-
f500?: number;
|
|
19
|
-
f1k?: number;
|
|
20
|
-
f2k?: number;
|
|
21
|
-
f4k?: number;
|
|
22
|
-
f8k?: number;
|
|
23
|
-
f16k?: number;
|
|
24
|
-
};
|
|
25
|
-
type MonoFilter = {
|
|
26
|
-
type: "MonoFilter";
|
|
27
|
-
};
|
|
28
|
-
type ReverbFilter = {
|
|
29
|
-
type: "ReverbFilter";
|
|
30
|
-
seconds?: number;
|
|
31
|
-
decay?: number;
|
|
32
|
-
reverse?: boolean;
|
|
33
|
-
};
|
|
34
|
-
type StereoFilter = {
|
|
35
|
-
type: "StereoFilter";
|
|
36
|
-
pan?: number;
|
|
37
|
-
};
|
|
38
|
-
type StreamFilter = {
|
|
39
|
-
type: "StreamFilter";
|
|
40
|
-
};
|
|
41
|
-
type TelephoneFilter = {
|
|
42
|
-
type: "TelephoneFilter";
|
|
43
|
-
};
|
|
44
|
-
type SoundFilterMemory = DistortionFilter | EqualizerFilter | MonoFilter | ReverbFilter | StereoFilter | StreamFilter | TelephoneFilter;
|
|
45
|
-
|
|
46
|
-
interface ExportedSound {
|
|
47
|
-
options: SoundOptions;
|
|
48
|
-
filters?: SoundFilterMemory[];
|
|
49
|
-
}
|
|
50
|
-
interface SoundPlay {
|
|
51
|
-
stepIndex: number;
|
|
52
|
-
paused: boolean;
|
|
53
|
-
options?: SoundPlayOptions | string;
|
|
54
|
-
}
|
|
55
|
-
interface ExportedSoundPlay extends SoundPlay {
|
|
56
|
-
sound: ExportedSound;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Interface exported sounds
|
|
60
|
-
*/
|
|
61
|
-
interface SoundGameState {
|
|
62
|
-
soundAliasesOrder: string[];
|
|
63
|
-
filters?: SoundFilterMemory[];
|
|
64
|
-
soundsPlaying: {
|
|
65
|
-
[key: string]: ExportedSoundPlay;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated
|
|
69
|
-
*/
|
|
70
|
-
playInStepIndex?: {
|
|
71
|
-
[key: string]: SoundPlay;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* @deprecated
|
|
75
|
-
*/
|
|
76
|
-
sounds?: ExportedSoundOld;
|
|
77
|
-
}
|
|
78
|
-
interface ExportedSoundOld {
|
|
79
|
-
[key: string]: {
|
|
80
|
-
options: SoundOptions;
|
|
81
|
-
filters?: SoundFilterMemory[];
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type { ExportedSound as E, SoundGameState as S, SoundOptions as a, SoundPlayOptions as b, SoundFilterMemory as c, SoundPlay as d };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { S as StorageElementType } from './StorageElementType-DTGcnkzF.cjs';
|
|
2
|
-
|
|
3
|
-
interface StorageGameStateItem<T = StorageElementType> {
|
|
4
|
-
key: string;
|
|
5
|
-
value: T;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Interface exported storage data
|
|
9
|
-
*/
|
|
10
|
-
type StorageGameState = {
|
|
11
|
-
base: StorageGameStateItem[];
|
|
12
|
-
temp: StorageGameStateItem[];
|
|
13
|
-
tempDeadlines: StorageGameStateItem<number>[];
|
|
14
|
-
flags: string[];
|
|
15
|
-
} | StorageGameStateItem[] | {
|
|
16
|
-
[key: string]: StorageElementType;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type { StorageGameState as S, StorageGameStateItem as a };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { S as StorageElementType } from './StorageElementType-DTGcnkzF.js';
|
|
2
|
-
|
|
3
|
-
interface StorageGameStateItem<T = StorageElementType> {
|
|
4
|
-
key: string;
|
|
5
|
-
value: T;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Interface exported storage data
|
|
9
|
-
*/
|
|
10
|
-
type StorageGameState = {
|
|
11
|
-
base: StorageGameStateItem[];
|
|
12
|
-
temp: StorageGameStateItem[];
|
|
13
|
-
tempDeadlines: StorageGameStateItem<number>[];
|
|
14
|
-
flags: string[];
|
|
15
|
-
} | StorageGameStateItem[] | {
|
|
16
|
-
[key: string]: StorageElementType;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type { StorageGameState as S, StorageGameStateItem as a };
|