narrat 0.11.4 → 1.0.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/lib/app.vue.d.ts +83 -17
- package/lib/components/MainMenu.vue.d.ts +8 -49
- package/lib/components/Skills.vue.d.ts +6 -7
- package/lib/components/debug/debug-menu.vue.d.ts +18 -8
- package/lib/components/dialog-picture.vue.d.ts +4 -5
- package/lib/components/hud.vue.d.ts +4 -2
- package/lib/components/loading-bar.vue.d.ts +4 -7
- package/lib/components/menu.vue.d.ts +2 -48
- package/lib/components/notification-toast.vue.d.ts +3 -4
- package/lib/components/utils/modal.vue.d.ts +3 -5
- package/lib/components/volume-controls.vue.d.ts +1 -1
- package/lib/config.d.ts +1 -2
- package/lib/dialog-box.vue.d.ts +9 -8
- package/lib/exports/plugins.d.ts +0 -3
- package/lib/gameloop.d.ts +1 -3
- package/lib/index.d.ts +1 -4
- package/lib/index.esm.js +7310 -7157
- package/lib/index.js +7309 -7156
- package/lib/plugins/NarratPlugin.d.ts +1 -1
- package/lib/stores/audio-store.d.ts +11 -0
- package/lib/stores/dialog-store.d.ts +27 -0
- package/lib/stores/hud-stats-store.d.ts +20 -0
- package/lib/stores/main-store.d.ts +256 -0
- package/lib/stores/notification-store.d.ts +12 -0
- package/lib/stores/rendering-store.d.ts +13 -0
- package/lib/stores/screens-store.d.ts +23 -0
- package/lib/stores/skills.d.ts +32 -0
- package/lib/stores/vm-store.d.ts +151 -0
- package/lib/types/dialog-box-types.d.ts +1 -1
- package/lib/types/game-save.d.ts +17 -17
- package/lib/types/state.d.ts +0 -96
- package/lib/utils/audio-loader.d.ts +4 -6
- package/lib/utils/data-helpers.d.ts +4 -5
- package/lib/utils/error-handling.d.ts +2 -3
- package/lib/utils/skillchecks.d.ts +6 -9
- package/lib/utils/string-helpers.d.ts +1 -3
- package/lib/vm/commands/choice.d.ts +1 -3
- package/lib/vm/commands/command-plugin.d.ts +3 -5
- package/lib/vm/vm-helpers.d.ts +7 -9
- package/lib/vm/vm-parser.d.ts +1 -1
- package/lib/vm/vm.d.ts +4 -8
- package/package.json +5 -5
package/lib/app.vue.d.ts
CHANGED
|
@@ -1,13 +1,81 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { DialogKey } from './types/state';
|
|
3
2
|
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
4
3
|
import { GameConfig } from './types/app-types';
|
|
5
4
|
import { AppOptions } from '.';
|
|
6
5
|
import { Parser } from './types/parser';
|
|
6
|
+
import { DialogKey } from './stores/dialog-store';
|
|
7
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
config: PropType<GameConfig>;
|
|
9
9
|
options: PropType<AppOptions>;
|
|
10
|
-
},
|
|
10
|
+
}, {
|
|
11
|
+
dialog: import("vue").ComputedRef<{
|
|
12
|
+
speaker: string;
|
|
13
|
+
text: string;
|
|
14
|
+
pose?: string;
|
|
15
|
+
choices?: {
|
|
16
|
+
choice: string;
|
|
17
|
+
originalIndex: number;
|
|
18
|
+
allowed: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
interactive: boolean;
|
|
21
|
+
id: string;
|
|
22
|
+
}[]>;
|
|
23
|
+
stack: import("vue").ComputedRef<{
|
|
24
|
+
currentIndex: number;
|
|
25
|
+
branch: {
|
|
26
|
+
code: string;
|
|
27
|
+
args: string[];
|
|
28
|
+
operator: string;
|
|
29
|
+
commandType: string;
|
|
30
|
+
options: Parser.EmptyOptions | {
|
|
31
|
+
condition: string;
|
|
32
|
+
success: any[];
|
|
33
|
+
failure?: any[];
|
|
34
|
+
} | {
|
|
35
|
+
label: string;
|
|
36
|
+
} | {
|
|
37
|
+
text: string;
|
|
38
|
+
} | {
|
|
39
|
+
prompt: any;
|
|
40
|
+
choices: {
|
|
41
|
+
choice: string;
|
|
42
|
+
branch: any[];
|
|
43
|
+
condition?: string;
|
|
44
|
+
skillCheck?: {
|
|
45
|
+
id: string;
|
|
46
|
+
skill: string;
|
|
47
|
+
value: number;
|
|
48
|
+
hideAfterRoll: boolean;
|
|
49
|
+
success: {
|
|
50
|
+
text: string;
|
|
51
|
+
branch: any[];
|
|
52
|
+
};
|
|
53
|
+
failure: {
|
|
54
|
+
text: string;
|
|
55
|
+
branch?: any[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
index: number;
|
|
59
|
+
}[];
|
|
60
|
+
} | {
|
|
61
|
+
screen: string;
|
|
62
|
+
} | {
|
|
63
|
+
mode: "sound" | "music";
|
|
64
|
+
audio: string;
|
|
65
|
+
} | {
|
|
66
|
+
mode: "sound" | "music";
|
|
67
|
+
audio?: string;
|
|
68
|
+
} | {
|
|
69
|
+
duration: number;
|
|
70
|
+
};
|
|
71
|
+
fileName: string;
|
|
72
|
+
line: number;
|
|
73
|
+
}[];
|
|
74
|
+
label: string;
|
|
75
|
+
}[]>;
|
|
76
|
+
modal: import("vue").ComputedRef<string | false>;
|
|
77
|
+
flowState: import("vue").ComputedRef<"menu" | "playing">;
|
|
78
|
+
}, {
|
|
11
79
|
lineTitle: string;
|
|
12
80
|
lineText: string;
|
|
13
81
|
gameLoaded: boolean;
|
|
@@ -15,8 +83,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
83
|
loadingPercentage: number;
|
|
16
84
|
hasSave: boolean;
|
|
17
85
|
}, {
|
|
18
|
-
dialog(): DialogKey[];
|
|
19
|
-
openModal(): string | false;
|
|
20
86
|
dialogLength(): number;
|
|
21
87
|
lastDialog(): DialogKey | undefined;
|
|
22
88
|
command(): Parser.Command;
|
|
@@ -24,18 +90,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
90
|
backgroundStyle(): any;
|
|
25
91
|
layoutWidth(): number;
|
|
26
92
|
gameTitle(): string;
|
|
27
|
-
flowState(): string;
|
|
28
93
|
inGame(): boolean;
|
|
29
94
|
layoutHeight(): number;
|
|
30
|
-
screenWidth(): number;
|
|
31
|
-
screenHeight(): number;
|
|
32
95
|
backgroundSize(): {
|
|
33
96
|
width: number;
|
|
34
97
|
height: number;
|
|
35
98
|
left: number;
|
|
36
99
|
top: number;
|
|
37
100
|
};
|
|
38
|
-
layoutMode(): string;
|
|
39
101
|
dialogWidth(): number;
|
|
40
102
|
dialogStyle(): any;
|
|
41
103
|
gameWidth(): number;
|
|
@@ -44,22 +106,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
106
|
gameStyle(): any;
|
|
45
107
|
screenRatio(): number;
|
|
46
108
|
dialogContainerStyle(): any;
|
|
109
|
+
currentLine: () => Parser.Command;
|
|
110
|
+
screenWidth: () => number;
|
|
111
|
+
screenHeight: () => number;
|
|
112
|
+
canvasWidth: () => number;
|
|
113
|
+
canvasHeight: () => number;
|
|
114
|
+
topOffset: () => number;
|
|
115
|
+
leftOffset: () => number;
|
|
116
|
+
layoutMode: () => "horizontal" | "vertical";
|
|
47
117
|
}, {
|
|
48
|
-
setupMachine(): Promise<
|
|
118
|
+
setupMachine(): Promise<void>;
|
|
49
119
|
getSaveFile(): string | null;
|
|
50
120
|
startGame(): Promise<void>;
|
|
51
121
|
loadGame(): Promise<void>;
|
|
52
122
|
isDialogActive(i: number): boolean;
|
|
53
123
|
nextLine(): void;
|
|
54
|
-
choosePrompt(index: number): void;
|
|
55
124
|
updateScreenSize(): void;
|
|
56
125
|
closeModal(): void;
|
|
57
126
|
getDialogBoxOptions(dialogKey: DialogKey, index: number): DialogBoxParameters;
|
|
58
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
59
|
-
config
|
|
60
|
-
options
|
|
61
|
-
}
|
|
62
|
-
config?: GameConfig;
|
|
63
|
-
options?: AppOptions;
|
|
64
|
-
}> & {}, {}>;
|
|
127
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
|
+
config: PropType<GameConfig>;
|
|
129
|
+
options: PropType<AppOptions>;
|
|
130
|
+
}>>, {}>;
|
|
65
131
|
export default _default;
|
|
@@ -1,59 +1,18 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
2
|
[x: string]: unknown;
|
|
3
|
-
}>>, unknown, void, {
|
|
3
|
+
}>>, unknown, void, {
|
|
4
|
+
playTime: () => {
|
|
5
|
+
start: number;
|
|
6
|
+
previousPlaytime: number;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
4
9
|
quit(): void;
|
|
5
10
|
close(): void;
|
|
6
11
|
mainMenu(): void;
|
|
7
12
|
getPlayTimeString(): string;
|
|
8
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps,
|
|
9
|
-
[x: number]: string;
|
|
10
|
-
} & {
|
|
11
|
-
[Symbol.iterator]?: IterableIterator<string>;
|
|
12
|
-
length?: number;
|
|
13
|
-
toString?: string;
|
|
14
|
-
toLocaleString?: string;
|
|
15
|
-
concat?: string[];
|
|
16
|
-
join?: string;
|
|
17
|
-
slice?: string[];
|
|
18
|
-
indexOf?: (searchElement: string, fromIndex?: number) => number;
|
|
19
|
-
lastIndexOf?: (searchElement: string, fromIndex?: number) => number;
|
|
20
|
-
every?: {
|
|
21
|
-
<S extends string>(predicate: (value: string, index: number, array: readonly string[]) => value is S, thisArg?: any): this is readonly S[];
|
|
22
|
-
(predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any): boolean;
|
|
23
|
-
};
|
|
24
|
-
some?: (predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any) => boolean;
|
|
25
|
-
forEach?: (callbackfn: (value: string, index: number, array: readonly string[]) => void, thisArg?: any) => void;
|
|
26
|
-
map?: <U>(callbackfn: (value: string, index: number, array: readonly string[]) => U, thisArg?: any) => U[];
|
|
27
|
-
filter?: {
|
|
28
|
-
<S_1 extends string>(predicate: (value: string, index: number, array: readonly string[]) => value is S_1, thisArg?: any): S_1[];
|
|
29
|
-
(predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any): string[];
|
|
30
|
-
};
|
|
31
|
-
reduce?: {
|
|
32
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string): string;
|
|
33
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string, initialValue: string): string;
|
|
34
|
-
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: readonly string[]) => U_1, initialValue: U_1): U_1;
|
|
35
|
-
};
|
|
36
|
-
reduceRight?: {
|
|
37
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string): string;
|
|
38
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string, initialValue: string): string;
|
|
39
|
-
<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: readonly string[]) => U_2, initialValue: U_2): U_2;
|
|
40
|
-
};
|
|
41
|
-
find?: {
|
|
42
|
-
<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: readonly string[]) => value is S_2, thisArg?: any): S_2;
|
|
43
|
-
(predicate: (value: string, index: number, obj: readonly string[]) => unknown, thisArg?: any): string;
|
|
44
|
-
};
|
|
45
|
-
findIndex?: (predicate: (value: string, index: number, obj: readonly string[]) => unknown, thisArg?: any) => number;
|
|
46
|
-
entries?: IterableIterator<[number, string]>;
|
|
47
|
-
keys?: IterableIterator<number>;
|
|
48
|
-
values?: IterableIterator<string>;
|
|
49
|
-
includes?: (searchElement: string, fromIndex?: number) => boolean;
|
|
50
|
-
flatMap?: <U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This) => U_3[];
|
|
51
|
-
flat?: unknown[];
|
|
52
|
-
}) | ({
|
|
53
|
-
[x: string]: unknown;
|
|
54
|
-
} & {} & {
|
|
13
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
55
14
|
[x: string]: unknown;
|
|
56
|
-
}
|
|
15
|
+
}>>>>, {
|
|
57
16
|
[x: number]: string;
|
|
58
17
|
} | {}>;
|
|
59
18
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { SkillData } from '@/config';
|
|
2
|
-
import { SkillsState } from '@/
|
|
2
|
+
import { SkillsState } from '@/stores/skills';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
close: any;
|
|
5
|
-
},
|
|
5
|
+
}, {
|
|
6
|
+
skills: import("vue").ComputedRef<SkillsState>;
|
|
7
|
+
}, {
|
|
6
8
|
chosenSkill: boolean | String;
|
|
7
9
|
}, {
|
|
8
10
|
skillsToDisplay(): SkillsState;
|
|
9
|
-
skills(): SkillsState;
|
|
10
11
|
skillConf(): {
|
|
11
12
|
[key: string]: SkillData;
|
|
12
13
|
};
|
|
@@ -19,11 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
20
|
xpBarWidth(xp: number): {
|
|
20
21
|
width: string;
|
|
21
22
|
};
|
|
22
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
23
|
-
close?: unknown;
|
|
24
|
-
} & {
|
|
23
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
24
|
close: any;
|
|
26
|
-
}
|
|
25
|
+
}>>, {
|
|
27
26
|
close: any;
|
|
28
27
|
}>;
|
|
29
28
|
export default _default;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { ErrorState, SkillCheckState, SkillsState } from '@/types/state';
|
|
2
1
|
import { Parser } from '@/types/parser';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
skills: import("vue").ComputedRef<import("@/stores/skills").SkillsState>;
|
|
4
|
+
skillChecks: import("vue").ComputedRef<{
|
|
5
|
+
[key: string]: import("@/stores/skills").SkillCheckState;
|
|
6
|
+
}>;
|
|
7
|
+
}, {
|
|
4
8
|
showDebug: boolean;
|
|
5
9
|
jumping: boolean;
|
|
6
10
|
searchString: string;
|
|
@@ -8,14 +12,20 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
8
12
|
matchCursor: number;
|
|
9
13
|
}, {
|
|
10
14
|
labels(): string[];
|
|
11
|
-
errors(): ErrorState[];
|
|
12
|
-
skills(): SkillsState;
|
|
13
|
-
skillChecks(): {
|
|
14
|
-
[key: string]: SkillCheckState;
|
|
15
|
-
};
|
|
16
15
|
variables(): {
|
|
17
16
|
[key: string]: any;
|
|
18
17
|
};
|
|
18
|
+
playing: () => boolean;
|
|
19
|
+
errors: () => {
|
|
20
|
+
text: string;
|
|
21
|
+
}[];
|
|
22
|
+
playTime: () => {
|
|
23
|
+
start: number;
|
|
24
|
+
previousPlaytime: number;
|
|
25
|
+
};
|
|
26
|
+
flowState: () => "menu" | "playing";
|
|
27
|
+
data: () => import("@/stores/vm-store").DataState;
|
|
28
|
+
script: () => Parser.ParsedScript;
|
|
19
29
|
}, {
|
|
20
30
|
finishJumping(): void;
|
|
21
31
|
labelSelected(event: any): void;
|
|
@@ -34,5 +44,5 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
34
44
|
countWordsInString(string: string): number;
|
|
35
45
|
countWordsInScriptBranch(branch: Parser.Branch): number;
|
|
36
46
|
getPlayTimeString(): string;
|
|
37
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
47
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
38
48
|
export default _default;
|
|
@@ -2,9 +2,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2
2
|
pictureUrl: StringConstructor;
|
|
3
3
|
}, unknown, unknown, {
|
|
4
4
|
boxStyle(): any;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}> & {}, {}>;
|
|
5
|
+
layoutMode: () => "horizontal" | "vertical";
|
|
6
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
pictureUrl: StringConstructor;
|
|
8
|
+
}>>, {}>;
|
|
10
9
|
export default _default;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { HudStatConfig } from '@/config';
|
|
2
|
-
import { HudStatsState } from '@/
|
|
2
|
+
import { HudStatsState } from '@/stores/hud-stats-store';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{}, {}, void, {
|
|
4
4
|
statsConfig(): {
|
|
5
5
|
[key: string]: HudStatConfig;
|
|
6
6
|
};
|
|
7
7
|
stats(): HudStatsState;
|
|
8
8
|
hudStyle(): any;
|
|
9
|
-
|
|
9
|
+
layoutMode: () => "horizontal" | "vertical";
|
|
10
|
+
hudStats: () => HudStatsState;
|
|
11
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
10
12
|
export default _default;
|
|
@@ -3,11 +3,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
step: StringConstructor;
|
|
4
4
|
}, unknown, unknown, {}, {
|
|
5
5
|
loadingStyle(): any;
|
|
6
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
7
|
-
percentage
|
|
8
|
-
step
|
|
9
|
-
}
|
|
10
|
-
percentage?: number;
|
|
11
|
-
step?: string;
|
|
12
|
-
}> & {}, {}>;
|
|
6
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
percentage: NumberConstructor;
|
|
8
|
+
step: StringConstructor;
|
|
9
|
+
}>>, {}>;
|
|
13
10
|
export default _default;
|
|
@@ -9,55 +9,9 @@ declare const _default: import("vue").DefineComponent<Readonly<import("vue").Com
|
|
|
9
9
|
openSkills(): void;
|
|
10
10
|
closeMenu(): void;
|
|
11
11
|
toggleMenu(): void;
|
|
12
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps,
|
|
13
|
-
[x: number]: string;
|
|
14
|
-
} & {
|
|
15
|
-
[Symbol.iterator]?: IterableIterator<string>;
|
|
16
|
-
length?: number;
|
|
17
|
-
toString?: string;
|
|
18
|
-
toLocaleString?: string;
|
|
19
|
-
concat?: string[];
|
|
20
|
-
join?: string;
|
|
21
|
-
slice?: string[];
|
|
22
|
-
indexOf?: (searchElement: string, fromIndex?: number) => number;
|
|
23
|
-
lastIndexOf?: (searchElement: string, fromIndex?: number) => number;
|
|
24
|
-
every?: {
|
|
25
|
-
<S extends string>(predicate: (value: string, index: number, array: readonly string[]) => value is S, thisArg?: any): this is readonly S[];
|
|
26
|
-
(predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any): boolean;
|
|
27
|
-
};
|
|
28
|
-
some?: (predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any) => boolean;
|
|
29
|
-
forEach?: (callbackfn: (value: string, index: number, array: readonly string[]) => void, thisArg?: any) => void;
|
|
30
|
-
map?: <U>(callbackfn: (value: string, index: number, array: readonly string[]) => U, thisArg?: any) => U[];
|
|
31
|
-
filter?: {
|
|
32
|
-
<S_1 extends string>(predicate: (value: string, index: number, array: readonly string[]) => value is S_1, thisArg?: any): S_1[];
|
|
33
|
-
(predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any): string[];
|
|
34
|
-
};
|
|
35
|
-
reduce?: {
|
|
36
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string): string;
|
|
37
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string, initialValue: string): string;
|
|
38
|
-
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: readonly string[]) => U_1, initialValue: U_1): U_1;
|
|
39
|
-
};
|
|
40
|
-
reduceRight?: {
|
|
41
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string): string;
|
|
42
|
-
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string, initialValue: string): string;
|
|
43
|
-
<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: readonly string[]) => U_2, initialValue: U_2): U_2;
|
|
44
|
-
};
|
|
45
|
-
find?: {
|
|
46
|
-
<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: readonly string[]) => value is S_2, thisArg?: any): S_2;
|
|
47
|
-
(predicate: (value: string, index: number, obj: readonly string[]) => unknown, thisArg?: any): string;
|
|
48
|
-
};
|
|
49
|
-
findIndex?: (predicate: (value: string, index: number, obj: readonly string[]) => unknown, thisArg?: any) => number;
|
|
50
|
-
entries?: IterableIterator<[number, string]>;
|
|
51
|
-
keys?: IterableIterator<number>;
|
|
52
|
-
values?: IterableIterator<string>;
|
|
53
|
-
includes?: (searchElement: string, fromIndex?: number) => boolean;
|
|
54
|
-
flatMap?: <U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This) => U_3[];
|
|
55
|
-
flat?: unknown[];
|
|
56
|
-
}) | ({
|
|
57
|
-
[x: string]: unknown;
|
|
58
|
-
} & {} & {
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
59
13
|
[x: string]: unknown;
|
|
60
|
-
}
|
|
14
|
+
}>>>>, {
|
|
61
15
|
[x: number]: string;
|
|
62
16
|
} | {}>;
|
|
63
17
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NotificationState } from '@/types/state';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{}, {}, void, {
|
|
3
|
-
notifications()
|
|
4
|
-
[key: string]: NotificationState;
|
|
2
|
+
notifications: () => {
|
|
3
|
+
[key: string]: import("@/stores/notification-store").NotificationState;
|
|
5
4
|
};
|
|
6
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
5
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
6
|
export default _default;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
containerCssClass: StringConstructor;
|
|
3
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
4
|
-
containerCssClass
|
|
5
|
-
}
|
|
6
|
-
containerCssClass?: string;
|
|
7
|
-
}> & {}, {}>;
|
|
3
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
containerCssClass: StringConstructor;
|
|
5
|
+
}>>, {}>;
|
|
8
6
|
export default _default;
|
|
@@ -3,5 +3,5 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
3
3
|
}, {}, {
|
|
4
4
|
changeVolume(event: Event): void;
|
|
5
5
|
toggleMute(): void;
|
|
6
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
6
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
7
|
export default _default;
|
package/lib/config.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Commit } from 'vuex';
|
|
2
1
|
export declare function setConfig(conf: Config): void;
|
|
3
2
|
export declare function getConfig(): Config;
|
|
4
|
-
export declare function getSkillConfig(
|
|
3
|
+
export declare function getSkillConfig(id: string): SkillData;
|
|
5
4
|
export interface Config {
|
|
6
5
|
gameTitle: string;
|
|
7
6
|
images: {
|
package/lib/dialog-box.vue.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { DialogChoice } from './stores/dialog-store';
|
|
2
3
|
import { DialogStyle } from './types/character-types';
|
|
3
4
|
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
4
|
-
import { DialogChoice } from './types/state';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
options: {
|
|
7
7
|
type: PropType<DialogBoxParameters>;
|
|
@@ -18,17 +18,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
textStyle(): any;
|
|
19
19
|
choices(): DialogChoice[] | undefined;
|
|
20
20
|
canInteract(): boolean;
|
|
21
|
+
paused: () => boolean;
|
|
21
22
|
}, {
|
|
22
23
|
chooseOption(choice: DialogChoice): void;
|
|
23
24
|
dialogStyle(choice: DialogChoice): any;
|
|
24
25
|
dialogClass(choice: DialogChoice): "strike-anim";
|
|
25
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
26
|
-
options
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
active:
|
|
31
|
-
}
|
|
26
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
options: {
|
|
28
|
+
type: PropType<DialogBoxParameters>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
active: BooleanConstructor;
|
|
32
|
+
}>>, {
|
|
32
33
|
active: boolean;
|
|
33
34
|
}>;
|
|
34
35
|
export default _default;
|
package/lib/exports/plugins.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { State } from 'vue';
|
|
2
|
-
import { ActionContext } from 'vuex';
|
|
3
1
|
import { NarratPlugin } from '../plugins/NarratPlugin';
|
|
4
2
|
import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
|
|
5
3
|
import type { CommandRunner } from '../vm/commands/command-plugin';
|
|
@@ -17,6 +15,5 @@ declare type NarratPluginObject = {
|
|
|
17
15
|
};
|
|
18
16
|
declare function registerPlugin(plugin: NarratPluginObject): void;
|
|
19
17
|
declare function addCommand(command: CommandPlugin): void;
|
|
20
|
-
export declare type NarratActionContext = ActionContext<State, State>;
|
|
21
18
|
export { CommandRunner };
|
|
22
19
|
export { CommandPlugin, NarratPluginObject, NarratPlugin, registerPlugin, addCommand, generateParser, };
|
package/lib/gameloop.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { Store } from 'vuex';
|
|
3
|
-
export declare function startGameLoop(appStore: Store<State>): void;
|
|
1
|
+
export declare function startGameLoop(): void;
|
|
4
2
|
export declare function gameLoop(): void;
|
|
5
3
|
export declare function mouseclick(e: MouseEvent): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import 'es6-promise/auto';
|
|
2
2
|
import './/sass/main.css';
|
|
3
|
-
import { App
|
|
3
|
+
import { App } from 'vue';
|
|
4
4
|
import { GameConfig } from './types/app-types';
|
|
5
|
-
import { Store } from 'vuex';
|
|
6
5
|
export interface AppOptions {
|
|
7
6
|
logging: boolean;
|
|
8
7
|
debug: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare function startApp(config: GameConfig, options: AppOptions): Promise<void>;
|
|
11
10
|
export declare type Narrat = {
|
|
12
|
-
store: Store<State>;
|
|
13
11
|
app: App;
|
|
14
|
-
state: State;
|
|
15
12
|
};
|
|
16
13
|
declare global {
|
|
17
14
|
export interface Window {
|