narrat 2.2.16 → 2.2.17

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.
Files changed (108) hide show
  1. package/LICENSE +21 -21
  2. package/dist/app.vue.d.ts +91 -94
  3. package/dist/components/MainMenu.vue.d.ts +12 -12
  4. package/dist/components/Skills.vue.d.ts +22 -22
  5. package/dist/components/StartMenu.vue.d.ts +46 -46
  6. package/dist/components/debug/debug-menu.vue.d.ts +48 -48
  7. package/dist/components/dialog-picture.vue.d.ts +11 -9
  8. package/dist/components/engine-splash/engine-splash.vue.d.ts +54 -54
  9. package/dist/components/game-dialog.vue.d.ts +65 -65
  10. package/dist/components/game-splash/game-splash.vue.d.ts +46 -46
  11. package/dist/components/hud.vue.d.ts +14 -14
  12. package/dist/components/in-game.vue.d.ts +46 -46
  13. package/dist/components/inventory-ui.vue.d.ts +30 -30
  14. package/dist/components/loading-bar.vue.d.ts +10 -10
  15. package/dist/components/menu-buttons.vue.d.ts +26 -26
  16. package/dist/components/notification-toast.vue.d.ts +6 -6
  17. package/dist/components/quests-ui.vue.d.ts +20 -20
  18. package/dist/components/save-slots.vue.d.ts +79 -79
  19. package/dist/components/saves/save-slot.vue.d.ts +108 -108
  20. package/dist/components/screen-layer.vue.d.ts +76 -76
  21. package/dist/components/screens.vue.d.ts +46 -46
  22. package/dist/components/transitions/NarratTransition.vue.d.ts +101 -101
  23. package/dist/components/utils/alert-modal.vue.d.ts +82 -82
  24. package/dist/components/utils/modal.vue.d.ts +18 -18
  25. package/dist/components/utils/yes-no.vue.d.ts +106 -106
  26. package/dist/components/volume-controls.vue.d.ts +18 -18
  27. package/dist/config.d.ts +182 -181
  28. package/dist/constants.d.ts +8 -8
  29. package/dist/defaultConfig.d.ts +2 -2
  30. package/dist/demo/demo.d.ts +1 -1
  31. package/dist/dialog-box.vue.d.ts +41 -41
  32. package/dist/exports/config.d.ts +1 -1
  33. package/dist/exports/display.d.ts +2 -2
  34. package/dist/exports/plugins.d.ts +20 -20
  35. package/dist/favicon.svg +30 -30
  36. package/dist/lib.d.ts +14 -14
  37. package/dist/main.d.ts +6 -6
  38. package/dist/narrat.es.js +1010 -993
  39. package/dist/narrat.es.js.map +1 -1
  40. package/dist/narrat.umd.js +39 -39
  41. package/dist/narrat.umd.js.map +1 -1
  42. package/dist/plugins/NarratPlugin.d.ts +11 -11
  43. package/dist/stores/audio-store.d.ts +48 -48
  44. package/dist/stores/dialog-store.d.ts +32 -32
  45. package/dist/stores/hud-stats-store.d.ts +22 -22
  46. package/dist/stores/inventory-store.d.ts +37 -37
  47. package/dist/stores/main-store.d.ts +813 -822
  48. package/dist/stores/notification-store.d.ts +15 -15
  49. package/dist/stores/quest-log.d.ts +39 -39
  50. package/dist/stores/rendering-store.d.ts +13 -13
  51. package/dist/stores/screens-store.d.ts +35 -35
  52. package/dist/stores/skills.d.ts +40 -40
  53. package/dist/stores/vm-store.d.ts +180 -180
  54. package/dist/style.css +1 -1
  55. package/dist/types/app-types.d.ts +9 -5
  56. package/dist/types/character-types.d.ts +27 -27
  57. package/dist/types/dialog-box-types.d.ts +11 -11
  58. package/dist/types/game-save.d.ts +36 -36
  59. package/dist/types/parser.d.ts +93 -93
  60. package/dist/types/state.d.ts +3 -3
  61. package/dist/utils/InputsListener.d.ts +9 -9
  62. package/dist/utils/ajax.d.ts +1 -1
  63. package/dist/utils/audio-loader.d.ts +10 -10
  64. package/dist/utils/characters.d.ts +5 -5
  65. package/dist/utils/data-helpers.d.ts +28 -25
  66. package/dist/utils/debounce.d.ts +14 -14
  67. package/dist/utils/error-handling.d.ts +3 -3
  68. package/dist/utils/helpers.d.ts +6 -6
  69. package/dist/utils/images-loader.d.ts +6 -6
  70. package/dist/utils/logger.d.ts +11 -11
  71. package/dist/utils/object-iterators.d.ts +8 -8
  72. package/dist/utils/promises.d.ts +1 -1
  73. package/dist/utils/randomId.d.ts +1 -1
  74. package/dist/utils/save-helpers.d.ts +18 -18
  75. package/dist/utils/skillchecks.d.ts +17 -17
  76. package/dist/utils/string-helpers.d.ts +3 -3
  77. package/dist/utils/time-helpers.d.ts +2 -2
  78. package/dist/utils/transition.d.ts +15 -15
  79. package/dist/utils/type-utils.d.ts +1 -1
  80. package/dist/utils/typed-emitter.d.ts +18 -18
  81. package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
  82. package/dist/vm/commands/audio-commands.d.ts +15 -15
  83. package/dist/vm/commands/choice.d.ts +37 -37
  84. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  85. package/dist/vm/commands/command-helpers.d.ts +3 -3
  86. package/dist/vm/commands/command-plugin.d.ts +43 -43
  87. package/dist/vm/commands/flow-commands.d.ts +24 -24
  88. package/dist/vm/commands/if.d.ts +10 -10
  89. package/dist/vm/commands/index.d.ts +2 -2
  90. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  91. package/dist/vm/commands/logic-command.d.ts +42 -42
  92. package/dist/vm/commands/math-commands.d.ts +30 -30
  93. package/dist/vm/commands/notify.d.ts +6 -6
  94. package/dist/vm/commands/quest-commands.d.ts +30 -30
  95. package/dist/vm/commands/random-commands.d.ts +10 -10
  96. package/dist/vm/commands/screen-commands.d.ts +15 -15
  97. package/dist/vm/commands/set.d.ts +6 -6
  98. package/dist/vm/commands/skill-commands.d.ts +30 -30
  99. package/dist/vm/commands/stats-commands.d.ts +12 -12
  100. package/dist/vm/commands/string-commands.d.ts +9 -9
  101. package/dist/vm/commands/text-field.d.ts +7 -7
  102. package/dist/vm/commands/text.d.ts +14 -14
  103. package/dist/vm/commands/wait.d.ts +4 -4
  104. package/dist/vm/vm-helpers.d.ts +18 -18
  105. package/dist/vm/vm-parser.d.ts +19 -19
  106. package/dist/vm/vm-parser.test.d.ts +1 -1
  107. package/dist/vm/vm.d.ts +18 -18
  108. package/package.json +8 -4
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Liana Pigeot
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Liana Pigeot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/app.vue.d.ts CHANGED
@@ -1,94 +1,91 @@
1
- import { PropType } from 'vue';
2
- import { GameConfig } from './types/app-types';
3
- import { AppOptions } from './config';
4
- declare const _default: import("vue").DefineComponent<{
5
- config: PropType<GameConfig>;
6
- options: PropType<AppOptions>;
7
- }, {
8
- dialog: import("vue").ComputedRef<{
9
- speaker: string;
10
- text: string;
11
- pose?: string | undefined;
12
- cssClass?: string | undefined;
13
- choices?: {
14
- choice: string;
15
- originalIndex: number;
16
- allowed: boolean;
17
- }[] | undefined;
18
- textField?: boolean | undefined;
19
- interactive: boolean;
20
- id: string;
21
- }[]>;
22
- stack: import("vue").ComputedRef<{
23
- blocks: {
24
- currentIndex: number;
25
- branchData: {
26
- branch: {
27
- code: string;
28
- command: {
29
- commandType: string;
30
- operator: string;
31
- args: (import("./types/parser").Parser.Primitive | {
32
- code: string;
33
- command: any;
34
- fileName: string;
35
- line: number;
36
- })[];
37
- options: import("./types/parser").Parser.DefaultArg;
38
- staticOptions: {};
39
- };
40
- fileName: string;
41
- line: number;
42
- }[];
43
- args?: string[] | undefined;
44
- };
45
- }[];
46
- label: string;
47
- scope: {
48
- [key: string]: any;
49
- };
50
- returnValue: any;
51
- }[]>;
52
- modal: import("vue").ComputedRef<string | false>;
53
- flowState: import("vue").ComputedRef<"menu" | "engine-splash" | "game-splash" | "playing">;
54
- alerts: import("vue").ComputedRef<{
55
- title: string;
56
- text: string;
57
- resolver: () => void;
58
- id: string;
59
- }[]>;
60
- }, {
61
- lineTitle: string;
62
- lineText: string;
63
- }, {
64
- backgroundStyle(): any;
65
- layoutWidth(): number;
66
- layoutHeight(): number;
67
- backgroundSize(): {
68
- width: number;
69
- height: number;
70
- left: number;
71
- top: number;
72
- };
73
- gameWidth(): number;
74
- gameHeight(): number;
75
- appStyle(): any;
76
- gameStyle(): any;
77
- screenRatio(): number;
78
- currentLine: () => import("./types/parser").Parser.ParsedExpression<import("./types/parser").Parser.DefaultArg, {}> | undefined;
79
- screenWidth: () => number;
80
- screenHeight: () => number;
81
- canvasWidth: () => number;
82
- canvasHeight: () => number;
83
- topOffset: () => number;
84
- leftOffset: () => number;
85
- layoutMode: () => "horizontal" | "vertical";
86
- }, {
87
- closeAlert(id: string): void;
88
- engineSplashDone(): void;
89
- updateScreenSize(): void;
90
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
91
- config: PropType<GameConfig>;
92
- options: PropType<AppOptions>;
93
- }>>, {}>;
94
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { AppOptions } from './types/app-types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ options: PropType<AppOptions>;
5
+ }, {
6
+ dialog: import("vue").ComputedRef<{
7
+ speaker: string;
8
+ text: string;
9
+ pose?: string | undefined;
10
+ cssClass?: string | undefined;
11
+ choices?: {
12
+ choice: string;
13
+ originalIndex: number;
14
+ allowed: boolean;
15
+ }[] | undefined;
16
+ textField?: boolean | undefined;
17
+ interactive: boolean;
18
+ id: string;
19
+ }[]>;
20
+ stack: import("vue").ComputedRef<{
21
+ blocks: {
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
+ };
43
+ }[];
44
+ label: string;
45
+ scope: {
46
+ [key: string]: any;
47
+ };
48
+ returnValue: any;
49
+ }[]>;
50
+ modal: import("vue").ComputedRef<string | false>;
51
+ flowState: import("vue").ComputedRef<"menu" | "engine-splash" | "game-splash" | "playing">;
52
+ alerts: import("vue").ComputedRef<{
53
+ title: string;
54
+ text: string;
55
+ resolver: () => void;
56
+ id: string;
57
+ }[]>;
58
+ }, {
59
+ lineTitle: string;
60
+ lineText: string;
61
+ }, {
62
+ backgroundStyle(): any;
63
+ layoutWidth(): number;
64
+ layoutHeight(): number;
65
+ backgroundSize(): {
66
+ width: number;
67
+ height: number;
68
+ left: number;
69
+ top: number;
70
+ };
71
+ gameWidth(): number;
72
+ gameHeight(): number;
73
+ appStyle(): any;
74
+ gameStyle(): any;
75
+ screenRatio(): number;
76
+ currentLine: () => import("./types/parser").Parser.ParsedExpression<import("./types/parser").Parser.DefaultArg, {}> | undefined;
77
+ screenWidth: () => number;
78
+ screenHeight: () => number;
79
+ canvasWidth: () => number;
80
+ canvasHeight: () => number;
81
+ topOffset: () => number;
82
+ leftOffset: () => number;
83
+ layoutMode: () => "horizontal" | "vertical";
84
+ }, {
85
+ closeAlert(id: string): void;
86
+ engineSplashDone(): void;
87
+ updateScreenSize(): void;
88
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
89
+ options: PropType<AppOptions>;
90
+ }>>, {}>;
91
+ export default _default;
@@ -1,12 +1,12 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {
2
- playTime: () => {
3
- start: number;
4
- previousPlaytime: number;
5
- };
6
- }, {
7
- quit(): void;
8
- mainMenu(): void;
9
- closeMenu(): void;
10
- getPlayTimeString(): string;
11
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
12
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {
2
+ playTime: () => {
3
+ start: number;
4
+ previousPlaytime: number;
5
+ };
6
+ }, {
7
+ quit(): void;
8
+ mainMenu(): void;
9
+ closeMenu(): void;
10
+ getPlayTimeString(): string;
11
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
12
+ export default _default;
@@ -1,22 +1,22 @@
1
- import { SkillData } from '../config';
2
- import { SkillsState } from '../stores/skills';
3
- declare const _default: import("vue").DefineComponent<{}, {
4
- skills: import("vue").ComputedRef<SkillsState>;
5
- }, {
6
- chosenSkill: boolean | String;
7
- }, {
8
- skillsToDisplay(): SkillsState;
9
- skillConf(): {
10
- [key: string]: SkillData;
11
- };
12
- xpPerLevel(): number;
13
- }, {
14
- getSkillStyle(skill: string): any;
15
- getSkillName(skill: string): string;
16
- clickSkill(skill: string): void;
17
- closeSkill(): void;
18
- xpBarWidth(xp: number): {
19
- width: string;
20
- };
21
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
22
- export default _default;
1
+ import { SkillData } from '../config';
2
+ import { SkillsState } from '../stores/skills';
3
+ declare const _default: import("vue").DefineComponent<{}, {
4
+ skills: import("vue").ComputedRef<SkillsState>;
5
+ }, {
6
+ chosenSkill: boolean | String;
7
+ }, {
8
+ skillsToDisplay(): SkillsState;
9
+ skillConf(): {
10
+ [key: string]: SkillData;
11
+ };
12
+ xpPerLevel(): number;
13
+ }, {
14
+ getSkillStyle(skill: string): any;
15
+ getSkillName(skill: string): string;
16
+ clickSkill(skill: string): void;
17
+ closeSkill(): void;
18
+ xpBarWidth(xp: number): {
19
+ width: string;
20
+ };
21
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
22
+ export default _default;
@@ -1,46 +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;
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;
@@ -1,48 +1,48 @@
1
- import { Parser } from '../../types/parser';
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
- }, {
8
- showDebug: boolean;
9
- jumping: boolean;
10
- searchString: string;
11
- matches: string[];
12
- matchCursor: number;
13
- }, {
14
- labels(): string[];
15
- variables(): {
16
- [key: string]: any;
17
- };
18
- playing: () => boolean;
19
- errors: () => {
20
- text: string;
21
- }[];
22
- playTime: () => {
23
- start: number;
24
- previousPlaytime: number;
25
- };
26
- flowState: () => "menu" | "engine-splash" | "game-splash" | "playing";
27
- data: () => import("../../stores/vm-store").DataState;
28
- script: () => Parser.ParsedScript;
29
- }, {
30
- finishJumping(): void;
31
- labelSelected(event: any): void;
32
- close(): void;
33
- closeErrors(): void;
34
- open(): void;
35
- toggle(): void;
36
- jump(): void;
37
- getMatchResultStyle(index: number): {
38
- background: string;
39
- } | undefined;
40
- onSearchInput(): void;
41
- save(): void;
42
- wordCount(): void;
43
- countWordsInScriptLine(scriptLine: Parser.ParsedExpression): number;
44
- countWordsInString(string: string): number;
45
- countWordsInScriptBranch(branch: Parser.Branch): number;
46
- getPlayTimeString(): string;
47
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
48
- export default _default;
1
+ import { Parser } from '../../types/parser';
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
+ }, {
8
+ showDebug: boolean;
9
+ jumping: boolean;
10
+ searchString: string;
11
+ matches: string[];
12
+ matchCursor: number;
13
+ }, {
14
+ labels(): string[];
15
+ variables(): {
16
+ [key: string]: any;
17
+ };
18
+ playing: () => boolean;
19
+ errors: () => {
20
+ text: string;
21
+ }[];
22
+ playTime: () => {
23
+ start: number;
24
+ previousPlaytime: number;
25
+ };
26
+ flowState: () => "menu" | "engine-splash" | "game-splash" | "playing";
27
+ data: () => import("../../stores/vm-store").DataState;
28
+ script: () => Parser.ParsedScript;
29
+ }, {
30
+ finishJumping(): void;
31
+ labelSelected(event: any): void;
32
+ close(): void;
33
+ closeErrors(): void;
34
+ open(): void;
35
+ toggle(): void;
36
+ jump(): void;
37
+ getMatchResultStyle(index: number): {
38
+ background: string;
39
+ } | undefined;
40
+ onSearchInput(): void;
41
+ save(): void;
42
+ wordCount(): void;
43
+ countWordsInScriptLine(scriptLine: Parser.ParsedExpression): number;
44
+ countWordsInString(string: string): number;
45
+ countWordsInScriptBranch(branch: Parser.Branch): number;
46
+ getPlayTimeString(): string;
47
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
48
+ export default _default;
@@ -1,9 +1,11 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- pictureUrl: StringConstructor;
3
- }, unknown, unknown, {
4
- boxStyle(): any;
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
- }>>, {}>;
9
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<{
2
+ pictureUrl: StringConstructor;
3
+ }, unknown, unknown, {
4
+ boxStyle(): any;
5
+ layoutMode: () => "horizontal" | "vertical";
6
+ }, {
7
+ getAssetUrl(url: string): string;
8
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ pictureUrl: StringConstructor;
10
+ }>>, {}>;
11
+ export default _default;
@@ -1,54 +1,54 @@
1
- declare const _default: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & {
6
- onFinished?: ((...args: any[]) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
8
- $attrs: {
9
- [x: string]: unknown;
10
- };
11
- $refs: {
12
- [x: string]: unknown;
13
- };
14
- $slots: Readonly<{
15
- [name: string]: import("vue").Slot | undefined;
16
- }>;
17
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
18
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
19
- $emit: (event: "finished", ...args: any[]) => void;
20
- $el: any;
21
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>> & {
22
- onFinished?: ((...args: any[]) => any) | undefined;
23
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "finished"[], string, {}> & {
24
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
25
- created?: ((() => void) | (() => void)[]) | undefined;
26
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
27
- mounted?: ((() => void) | (() => void)[]) | undefined;
28
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
29
- updated?: ((() => void) | (() => void)[]) | undefined;
30
- activated?: ((() => void) | (() => void)[]) | undefined;
31
- deactivated?: ((() => void) | (() => void)[]) | undefined;
32
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
33
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
34
- destroyed?: ((() => void) | (() => void)[]) | undefined;
35
- unmounted?: ((() => void) | (() => void)[]) | undefined;
36
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
37
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
38
- 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;
39
- };
40
- $forceUpdate: () => void;
41
- $nextTick: typeof import("vue").nextTick;
42
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
43
- } & Readonly<import("vue").ExtractPropTypes<{}>> & {
44
- onFinished?: ((...args: any[]) => any) | undefined;
45
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
46
- __isFragment?: undefined;
47
- __isTeleport?: undefined;
48
- __isSuspense?: undefined;
49
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>> & {
50
- onFinished?: ((...args: any[]) => any) | undefined;
51
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "finished"[], "finished", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
52
- $slots: {};
53
- });
54
- export default _default;
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & {
6
+ onFinished?: ((...args: any[]) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
8
+ $attrs: {
9
+ [x: string]: unknown;
10
+ };
11
+ $refs: {
12
+ [x: string]: unknown;
13
+ };
14
+ $slots: Readonly<{
15
+ [name: string]: import("vue").Slot | undefined;
16
+ }>;
17
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
18
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
19
+ $emit: (event: "finished", ...args: any[]) => void;
20
+ $el: any;
21
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>> & {
22
+ onFinished?: ((...args: any[]) => any) | undefined;
23
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "finished"[], string, {}> & {
24
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
25
+ created?: ((() => void) | (() => void)[]) | undefined;
26
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
27
+ mounted?: ((() => void) | (() => void)[]) | undefined;
28
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
29
+ updated?: ((() => void) | (() => void)[]) | undefined;
30
+ activated?: ((() => void) | (() => void)[]) | undefined;
31
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
32
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
33
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
34
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
35
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
36
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
37
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
38
+ 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;
39
+ };
40
+ $forceUpdate: () => void;
41
+ $nextTick: typeof import("vue").nextTick;
42
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
43
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & {
44
+ onFinished?: ((...args: any[]) => any) | undefined;
45
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
46
+ __isFragment?: undefined;
47
+ __isTeleport?: undefined;
48
+ __isSuspense?: undefined;
49
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>> & {
50
+ onFinished?: ((...args: any[]) => any) | undefined;
51
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "finished"[], "finished", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
52
+ $slots: {};
53
+ });
54
+ export default _default;