narrat 0.8.4 → 0.9.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/lib/app.vue.d.ts +6 -2
- package/lib/components/MainMenu.vue.d.ts +58 -0
- package/lib/components/Skills.vue.d.ts +25 -0
- package/lib/components/debug/debug-menu.vue.d.ts +14 -0
- package/lib/components/menu.vue.d.ts +5 -3
- package/lib/components/utils/modal.vue.d.ts +7 -1
- package/lib/defaultConfig.d.ts +2 -0
- package/lib/gameloop.d.ts +5 -0
- package/lib/index.esm.js +2682 -334
- package/lib/index.js +2681 -333
- package/lib/store.d.ts +2 -1
- package/lib/utils/audio-loader.d.ts +2 -2
- package/lib/utils/randomId.d.ts +1 -0
- package/lib/vm/renpy-vm.d.ts +3 -2
- package/package.json +3 -1
package/lib/app.vue.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
lineTitle: string;
|
|
11
11
|
lineText: string;
|
|
12
12
|
gameLoaded: boolean;
|
|
13
|
-
dialogPlaying: boolean;
|
|
14
13
|
loadingStep: string;
|
|
15
14
|
loadingPercentage: number;
|
|
16
15
|
}, {
|
|
17
16
|
dialog(): DialogKey[];
|
|
17
|
+
openModal(): string | false;
|
|
18
18
|
dialogLength(): number;
|
|
19
19
|
lastDialog(): DialogKey | undefined;
|
|
20
20
|
command(): Parser.Command;
|
|
@@ -22,6 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
saveFile(): string | null;
|
|
23
23
|
backgroundStyle(): any;
|
|
24
24
|
layoutWidth(): number;
|
|
25
|
+
gameTitle(): string;
|
|
26
|
+
flowState(): string;
|
|
27
|
+
inGame(): boolean;
|
|
25
28
|
layoutHeight(): number;
|
|
26
29
|
screenWidth(): number;
|
|
27
30
|
screenHeight(): number;
|
|
@@ -41,13 +44,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
44
|
screenRatio(): number;
|
|
42
45
|
dialogContainerStyle(): any;
|
|
43
46
|
}, {
|
|
44
|
-
|
|
47
|
+
setupMachine(): Promise<any>;
|
|
45
48
|
startGame(): Promise<void>;
|
|
46
49
|
loadGame(): Promise<void>;
|
|
47
50
|
isDialogActive(i: number): boolean;
|
|
48
51
|
nextLine(): void;
|
|
49
52
|
choosePrompt(index: number): void;
|
|
50
53
|
updateScreenSize(): void;
|
|
54
|
+
closeModal(): void;
|
|
51
55
|
getDialogBoxOptions(dialogKey: DialogKey, index: number): DialogBoxParameters;
|
|
52
56
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
53
57
|
config?: unknown;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
|
+
[x: string]: unknown;
|
|
3
|
+
}>>, unknown, void, {}, {
|
|
4
|
+
quit(): void;
|
|
5
|
+
mainMenu(): void;
|
|
6
|
+
getPlayTimeString(): string;
|
|
7
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<(readonly unknown[] & {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} & {
|
|
10
|
+
[Symbol.iterator]?: IterableIterator<string>;
|
|
11
|
+
length?: number;
|
|
12
|
+
toString?: string;
|
|
13
|
+
toLocaleString?: string;
|
|
14
|
+
concat?: string[];
|
|
15
|
+
join?: string;
|
|
16
|
+
slice?: string[];
|
|
17
|
+
indexOf?: (searchElement: string, fromIndex?: number) => number;
|
|
18
|
+
lastIndexOf?: (searchElement: string, fromIndex?: number) => number;
|
|
19
|
+
every?: {
|
|
20
|
+
<S extends string>(predicate: (value: string, index: number, array: readonly string[]) => value is S, thisArg?: any): this is readonly S[];
|
|
21
|
+
(predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any): boolean;
|
|
22
|
+
};
|
|
23
|
+
some?: (predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any) => boolean;
|
|
24
|
+
forEach?: (callbackfn: (value: string, index: number, array: readonly string[]) => void, thisArg?: any) => void;
|
|
25
|
+
map?: <U>(callbackfn: (value: string, index: number, array: readonly string[]) => U, thisArg?: any) => U[];
|
|
26
|
+
filter?: {
|
|
27
|
+
<S_1 extends string>(predicate: (value: string, index: number, array: readonly string[]) => value is S_1, thisArg?: any): S_1[];
|
|
28
|
+
(predicate: (value: string, index: number, array: readonly string[]) => unknown, thisArg?: any): string[];
|
|
29
|
+
};
|
|
30
|
+
reduce?: {
|
|
31
|
+
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string): string;
|
|
32
|
+
(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: readonly string[]) => string, initialValue: string): string;
|
|
33
|
+
<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: readonly string[]) => U_1, initialValue: U_1): U_1;
|
|
34
|
+
};
|
|
35
|
+
reduceRight?: {
|
|
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_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: readonly string[]) => U_2, initialValue: U_2): U_2;
|
|
39
|
+
};
|
|
40
|
+
find?: {
|
|
41
|
+
<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: readonly string[]) => value is S_2, thisArg?: any): S_2;
|
|
42
|
+
(predicate: (value: string, index: number, obj: readonly string[]) => unknown, thisArg?: any): string;
|
|
43
|
+
};
|
|
44
|
+
findIndex?: (predicate: (value: string, index: number, obj: readonly string[]) => unknown, thisArg?: any) => number;
|
|
45
|
+
entries?: IterableIterator<[number, string]>;
|
|
46
|
+
keys?: IterableIterator<number>;
|
|
47
|
+
values?: IterableIterator<string>;
|
|
48
|
+
includes?: (searchElement: string, fromIndex?: number) => boolean;
|
|
49
|
+
flatMap?: <U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This) => U_3[];
|
|
50
|
+
flat?: unknown[];
|
|
51
|
+
}) | ({
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
} & {} & {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
})> & {}, {
|
|
56
|
+
[x: number]: string;
|
|
57
|
+
} | {}>;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SkillData } from '@/types/config';
|
|
2
|
+
import { SkillsState } from '@/types/vuex';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
close: any;
|
|
5
|
+
}, unknown, {
|
|
6
|
+
chosenSkill: boolean | String;
|
|
7
|
+
}, {
|
|
8
|
+
skillsToDisplay(): SkillsState;
|
|
9
|
+
skills(): SkillsState;
|
|
10
|
+
skillConf(): {
|
|
11
|
+
[key: string]: SkillData;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
getSkillStyle(skill: string): any;
|
|
15
|
+
getSkillName(skill: string): string;
|
|
16
|
+
clickSkill(skill: string): void;
|
|
17
|
+
closeSkill(): void;
|
|
18
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
19
|
+
close?: unknown;
|
|
20
|
+
} & {
|
|
21
|
+
close: any;
|
|
22
|
+
} & {}> & {}, {
|
|
23
|
+
close: any;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
@@ -2,6 +2,10 @@ import { SkillCheckState, SkillsState } from '@/types/vuex';
|
|
|
2
2
|
import { ErrorState } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
4
4
|
showDebug: boolean;
|
|
5
|
+
jumping: boolean;
|
|
6
|
+
searchString: string;
|
|
7
|
+
matches: string[];
|
|
8
|
+
matchCursor: number;
|
|
5
9
|
}, {
|
|
6
10
|
labels(): string[];
|
|
7
11
|
errors(): ErrorState[];
|
|
@@ -9,11 +13,21 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
9
13
|
skillChecks(): {
|
|
10
14
|
[key: string]: SkillCheckState;
|
|
11
15
|
};
|
|
16
|
+
variables(): {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
12
19
|
}, {
|
|
20
|
+
finishJumping(): void;
|
|
13
21
|
labelSelected(event: any): void;
|
|
14
22
|
close(): void;
|
|
15
23
|
closeErrors(): void;
|
|
16
24
|
open(): void;
|
|
25
|
+
toggle(): void;
|
|
26
|
+
jump(): void;
|
|
27
|
+
getMatchResultStyle(index: number): {
|
|
28
|
+
background: string;
|
|
29
|
+
};
|
|
30
|
+
onSearchInput(): void;
|
|
17
31
|
save(): void;
|
|
18
32
|
wordCount(): void;
|
|
19
33
|
countWordsInScriptLine(scriptLine: Parser.Command): number;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
2
|
[x: string]: unknown;
|
|
3
3
|
}>>, unknown, {
|
|
4
|
-
|
|
5
|
-
}, {
|
|
4
|
+
activeMenu: string | false;
|
|
5
|
+
}, {
|
|
6
|
+
showSkills(): boolean;
|
|
7
|
+
}, {
|
|
6
8
|
openMenu(): void;
|
|
9
|
+
openSkills(): void;
|
|
7
10
|
closeMenu(): void;
|
|
8
11
|
toggleMenu(): void;
|
|
9
|
-
quit(): void;
|
|
10
12
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<(readonly unknown[] & {
|
|
11
13
|
[x: number]: string;
|
|
12
14
|
} & {
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
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?: unknown;
|
|
5
|
+
} & {} & {
|
|
6
|
+
containerCssClass?: string;
|
|
7
|
+
}> & {}, {}>;
|
|
2
8
|
export default _default;
|