narrat 2.1.0 → 2.1.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/dist/app.vue.d.ts +23 -28
- package/dist/components/StartMenu.vue.d.ts +46 -0
- package/dist/config.d.ts +4 -0
- package/dist/constants.d.ts +6 -0
- package/dist/dialog-box.vue.d.ts +4 -0
- package/dist/narrat.es.js +6716 -6629
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +70 -70
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +49 -26
- package/dist/stores/vm-store.d.ts +56 -34
- package/dist/style.css +1 -1
- package/dist/utils/InputsListener.d.ts +9 -0
- package/dist/utils/data-helpers.d.ts +6 -0
- package/dist/utils/typed-emitter.d.ts +18 -0
- package/dist/vm/commands/choice.d.ts +1 -1
- package/dist/vm/commands/skill-commands.d.ts +0 -15
- package/package.json +8 -5
package/dist/app.vue.d.ts
CHANGED
|
@@ -19,32 +19,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
id: string;
|
|
20
20
|
}[]>;
|
|
21
21
|
stack: import("vue").ComputedRef<{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
blocks: {
|
|
23
|
+
currentIndex: number;
|
|
24
|
+
branchData: {
|
|
25
|
+
branch: {
|
|
26
|
+
code: string;
|
|
27
|
+
command: {
|
|
28
|
+
commandType: string;
|
|
29
|
+
operator: string;
|
|
30
|
+
args: (import("./types/parser").Parser.Primitive | {
|
|
31
|
+
code: string;
|
|
32
|
+
command: any;
|
|
33
|
+
fileName: string;
|
|
34
|
+
line: number;
|
|
35
|
+
})[];
|
|
36
|
+
options: import("./types/parser").Parser.DefaultArg;
|
|
37
|
+
staticOptions: {};
|
|
38
|
+
};
|
|
39
|
+
fileName: string;
|
|
40
|
+
line: number;
|
|
41
|
+
}[];
|
|
42
|
+
args?: string[] | undefined;
|
|
43
|
+
};
|
|
44
|
+
}[];
|
|
43
45
|
label: string;
|
|
44
46
|
scope: {
|
|
45
47
|
[key: string]: any;
|
|
46
48
|
};
|
|
47
|
-
onComplete?: ((result: any) => void) | undefined;
|
|
48
49
|
returnValue: any;
|
|
49
50
|
}[]>;
|
|
50
51
|
modal: import("vue").ComputedRef<string | false>;
|
|
@@ -55,11 +56,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
56
|
gameLoaded: boolean;
|
|
56
57
|
loadingStep: string;
|
|
57
58
|
loadingPercentage: number;
|
|
58
|
-
hasSave: boolean;
|
|
59
59
|
}, {
|
|
60
60
|
backgroundStyle(): any;
|
|
61
61
|
layoutWidth(): number;
|
|
62
|
-
gameTitle(): string;
|
|
63
62
|
inGame(): boolean;
|
|
64
63
|
layoutHeight(): number;
|
|
65
64
|
backgroundSize(): {
|
|
@@ -83,10 +82,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
82
|
layoutMode: () => "horizontal" | "vertical";
|
|
84
83
|
}, {
|
|
85
84
|
setupMachine(): Promise<void>;
|
|
86
|
-
getSaveFile(): string | null;
|
|
87
|
-
startGame(): Promise<void>;
|
|
88
|
-
loadGame(): Promise<void>;
|
|
89
|
-
nextLine(): void;
|
|
90
85
|
updateScreenSize(): void;
|
|
91
86
|
closeModal(): void;
|
|
92
87
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
17
|
+
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & {
|
|
20
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
21
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
22
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
23
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
24
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
33
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
34
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
35
|
+
};
|
|
36
|
+
$forceUpdate: () => void;
|
|
37
|
+
$nextTick: typeof import("vue").nextTick;
|
|
38
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
39
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
40
|
+
__isFragment?: undefined;
|
|
41
|
+
__isTeleport?: undefined;
|
|
42
|
+
__isSuspense?: undefined;
|
|
43
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
+
$slots: {};
|
|
45
|
+
});
|
|
46
|
+
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -91,6 +91,9 @@ export interface Config {
|
|
|
91
91
|
menuButtons: {
|
|
92
92
|
[key: string]: MenuButtonData;
|
|
93
93
|
};
|
|
94
|
+
debugging: {
|
|
95
|
+
showScriptFinishedMessage?: boolean;
|
|
96
|
+
};
|
|
94
97
|
}
|
|
95
98
|
export interface ScreenConfig {
|
|
96
99
|
background: string;
|
|
@@ -152,6 +155,7 @@ export interface ButtonConfig {
|
|
|
152
155
|
y: number;
|
|
153
156
|
};
|
|
154
157
|
action: string;
|
|
158
|
+
actionType?: 'jump' | 'run';
|
|
155
159
|
}
|
|
156
160
|
export interface InlineButtonConfig extends ButtonConfig {
|
|
157
161
|
id: string;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
1
|
export declare const SAVE_FILE = "gameSave";
|
|
2
|
+
export declare const PRE_SIGNAL = "###_--_~=:;";
|
|
3
|
+
export declare const JUMP_SIGNAL = "###_--_~=:;_JUMP";
|
|
4
|
+
export declare const RETURN_SIGNAL = "###_--_~=:;_RETURN";
|
|
5
|
+
export declare const OK_SIGNAL = "###_--_~=:;_OK";
|
|
6
|
+
export declare type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL;
|
|
7
|
+
export declare function isReturnSignal(s: string): s is ReturnSignal;
|
package/dist/dialog-box.vue.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
}, unknown, {
|
|
12
12
|
playerText: string;
|
|
13
13
|
passed: boolean;
|
|
14
|
+
listener: any;
|
|
15
|
+
timeout: any;
|
|
14
16
|
}, {
|
|
15
17
|
preText(): string;
|
|
16
18
|
style(): DialogStyle;
|
|
@@ -21,7 +23,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
23
|
canInteract(): boolean;
|
|
22
24
|
paused: () => boolean;
|
|
23
25
|
}, {
|
|
26
|
+
clearListeners(): void;
|
|
24
27
|
chooseOption(choice: DialogChoice | number): void;
|
|
28
|
+
finishLine(): void;
|
|
25
29
|
dialogStyle(choice: DialogChoice): any;
|
|
26
30
|
dialogClass(choice: DialogChoice): "strike-anim" | undefined;
|
|
27
31
|
submitText(): void;
|