narrat 2.1.1 → 2.1.4

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 CHANGED
@@ -19,32 +19,33 @@ declare const _default: import("vue").DefineComponent<{
19
19
  id: string;
20
20
  }[]>;
21
21
  stack: import("vue").ComputedRef<{
22
- currentIndex: number;
23
- branchData: {
24
- branch: {
25
- code: string;
26
- command: {
27
- commandType: string;
28
- operator: string;
29
- args: (import("./types/parser").Parser.Primitive | {
30
- code: string;
31
- command: any;
32
- fileName: string;
33
- line: number;
34
- })[];
35
- options: import("./types/parser").Parser.DefaultArg;
36
- staticOptions: {};
37
- };
38
- fileName: string;
39
- line: number;
40
- }[];
41
- args?: string[] | undefined;
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;
@@ -0,0 +1,58 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & {
6
+ onClose?: ((...args: any[]) => any) | undefined;
7
+ onChosen?: ((...args: any[]) => any) | undefined;
8
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
9
+ $attrs: {
10
+ [x: string]: unknown;
11
+ };
12
+ $refs: {
13
+ [x: string]: unknown;
14
+ };
15
+ $slots: Readonly<{
16
+ [name: string]: import("vue").Slot | undefined;
17
+ }>;
18
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
19
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
20
+ $emit: (event: "close" | "chosen", ...args: any[]) => void;
21
+ $el: any;
22
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>> & {
23
+ onClose?: ((...args: any[]) => any) | undefined;
24
+ onChosen?: ((...args: any[]) => any) | undefined;
25
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "chosen")[], string, {}> & {
26
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
27
+ created?: ((() => void) | (() => void)[]) | undefined;
28
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
29
+ mounted?: ((() => void) | (() => void)[]) | undefined;
30
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
31
+ updated?: ((() => void) | (() => void)[]) | undefined;
32
+ activated?: ((() => void) | (() => void)[]) | undefined;
33
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
35
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
36
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
37
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
38
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
39
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
40
+ 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;
41
+ };
42
+ $forceUpdate: () => void;
43
+ $nextTick: typeof import("vue").nextTick;
44
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
45
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & {
46
+ onClose?: ((...args: any[]) => any) | undefined;
47
+ onChosen?: ((...args: any[]) => any) | undefined;
48
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
49
+ __isFragment?: undefined;
50
+ __isTeleport?: undefined;
51
+ __isSuspense?: undefined;
52
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>> & {
53
+ onClose?: ((...args: any[]) => any) | undefined;
54
+ onChosen?: ((...args: any[]) => any) | undefined;
55
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "chosen")[], "close" | "chosen", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
56
+ $slots: {};
57
+ });
58
+ 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;
@@ -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;
@@ -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;