narrat 2.2.4 → 2.2.7

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 (104) hide show
  1. package/CHANGELOG.md +1081 -0
  2. package/LICENSE +21 -21
  3. package/README.md +120 -120
  4. package/dist/.DS_Store +0 -0
  5. package/dist/app.vue.d.ts +92 -92
  6. package/dist/components/MainMenu.vue.d.ts +12 -12
  7. package/dist/components/Skills.vue.d.ts +22 -22
  8. package/dist/components/StartMenu.vue.d.ts +46 -46
  9. package/dist/components/debug/debug-menu.vue.d.ts +48 -48
  10. package/dist/components/dialog-picture.vue.d.ts +9 -9
  11. package/dist/components/game-dialog.vue.d.ts +65 -65
  12. package/dist/components/hud.vue.d.ts +14 -14
  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 +58 -58
  19. package/dist/components/screen-layer.vue.d.ts +54 -54
  20. package/dist/components/screens.vue.d.ts +46 -46
  21. package/dist/components/utils/modal.vue.d.ts +6 -6
  22. package/dist/components/volume-controls.vue.d.ts +18 -18
  23. package/dist/config.d.ts +170 -170
  24. package/dist/constants.d.ts +7 -7
  25. package/dist/defaultConfig.d.ts +2 -2
  26. package/dist/demo/demo.d.ts +1 -1
  27. package/dist/dialog-box.vue.d.ts +41 -41
  28. package/dist/exports/config.d.ts +1 -1
  29. package/dist/exports/display.d.ts +2 -2
  30. package/dist/exports/plugins.d.ts +20 -20
  31. package/dist/img/.DS_Store +0 -0
  32. package/dist/lib/lib.d.ts +15 -15
  33. package/dist/main.d.ts +5 -5
  34. package/dist/music/.DS_Store +0 -0
  35. package/dist/narrat.es.js +33797 -30997
  36. package/dist/narrat.es.js.map +1 -1
  37. package/dist/narrat.umd.js +105 -92
  38. package/dist/narrat.umd.js.map +1 -1
  39. package/dist/plugins/NarratPlugin.d.ts +11 -11
  40. package/dist/sounds/.DS_Store +0 -0
  41. package/dist/stores/audio-store.d.ts +48 -48
  42. package/dist/stores/dialog-store.d.ts +32 -32
  43. package/dist/stores/hud-stats-store.d.ts +22 -22
  44. package/dist/stores/inventory-store.d.ts +37 -37
  45. package/dist/stores/main-store.d.ts +390 -390
  46. package/dist/stores/notification-store.d.ts +15 -15
  47. package/dist/stores/quest-log.d.ts +39 -39
  48. package/dist/stores/rendering-store.d.ts +13 -13
  49. package/dist/stores/screens-store.d.ts +23 -23
  50. package/dist/stores/skills.d.ts +40 -40
  51. package/dist/stores/vm-store.d.ts +177 -177
  52. package/dist/types/app-types.d.ts +5 -5
  53. package/dist/types/character-types.d.ts +27 -27
  54. package/dist/types/dialog-box-types.d.ts +11 -11
  55. package/dist/types/game-save.d.ts +30 -30
  56. package/dist/types/parser.d.ts +93 -93
  57. package/dist/types/state.d.ts +3 -3
  58. package/dist/utils/InputsListener.d.ts +9 -9
  59. package/dist/utils/ajax.d.ts +1 -1
  60. package/dist/utils/audio-loader.d.ts +10 -10
  61. package/dist/utils/characters.d.ts +5 -5
  62. package/dist/utils/data-helpers.d.ts +25 -25
  63. package/dist/utils/debounce.d.ts +14 -14
  64. package/dist/utils/error-handling.d.ts +3 -3
  65. package/dist/utils/helpers.d.ts +6 -6
  66. package/dist/utils/images-loader.d.ts +6 -6
  67. package/dist/utils/logger.d.ts +11 -11
  68. package/dist/utils/object-iterators.d.ts +8 -8
  69. package/dist/utils/promises.d.ts +1 -1
  70. package/dist/utils/randomId.d.ts +1 -1
  71. package/dist/utils/save-helpers.d.ts +15 -15
  72. package/dist/utils/skillchecks.d.ts +17 -17
  73. package/dist/utils/string-helpers.d.ts +3 -3
  74. package/dist/utils/time-helpers.d.ts +2 -2
  75. package/dist/utils/type-utils.d.ts +1 -1
  76. package/dist/utils/typed-emitter.d.ts +18 -18
  77. package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
  78. package/dist/vm/commands/audio-commands.d.ts +15 -15
  79. package/dist/vm/commands/choice.d.ts +37 -37
  80. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  81. package/dist/vm/commands/command-helpers.d.ts +3 -3
  82. package/dist/vm/commands/command-plugin.d.ts +43 -43
  83. package/dist/vm/commands/flow-commands.d.ts +17 -17
  84. package/dist/vm/commands/if.d.ts +10 -10
  85. package/dist/vm/commands/index.d.ts +2 -2
  86. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  87. package/dist/vm/commands/logic-command.d.ts +42 -42
  88. package/dist/vm/commands/math-commands.d.ts +30 -30
  89. package/dist/vm/commands/notify.d.ts +6 -6
  90. package/dist/vm/commands/quest-commands.d.ts +30 -30
  91. package/dist/vm/commands/random-commands.d.ts +10 -10
  92. package/dist/vm/commands/screen-commands.d.ts +12 -12
  93. package/dist/vm/commands/set.d.ts +6 -6
  94. package/dist/vm/commands/skill-commands.d.ts +30 -30
  95. package/dist/vm/commands/stats-commands.d.ts +12 -12
  96. package/dist/vm/commands/string-commands.d.ts +9 -9
  97. package/dist/vm/commands/text-field.d.ts +7 -7
  98. package/dist/vm/commands/text.d.ts +14 -14
  99. package/dist/vm/commands/wait.d.ts +4 -4
  100. package/dist/vm/vm-helpers.d.ts +18 -18
  101. package/dist/vm/vm-parser.d.ts +19 -19
  102. package/dist/vm/vm-parser.test.d.ts +1 -1
  103. package/dist/vm/vm.d.ts +18 -18
  104. package/package.json +87 -87
@@ -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" | "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" | "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,9 @@
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
+ }, {}, 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,65 +1,65 @@
1
- import { PropType } from 'vue';
2
- declare const _default: {
3
- new (...args: any[]): {
4
- $: import("vue").ComponentInternalInstance;
5
- $data: {};
6
- $props: Partial<{
7
- inGame: boolean;
8
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
9
- layoutMode: PropType<"horizontal" | "vertical">;
10
- inGame: BooleanConstructor;
11
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "inGame">;
12
- $attrs: {
13
- [x: string]: unknown;
14
- };
15
- $refs: {
16
- [x: string]: unknown;
17
- };
18
- $slots: Readonly<{
19
- [name: string]: import("vue").Slot | undefined;
20
- }>;
21
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
22
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
- $emit: (event: string, ...args: any[]) => void;
24
- $el: any;
25
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
26
- layoutMode: PropType<"horizontal" | "vertical">;
27
- inGame: BooleanConstructor;
28
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
29
- inGame: boolean;
30
- }> & {
31
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
32
- created?: ((() => void) | (() => void)[]) | undefined;
33
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
34
- mounted?: ((() => void) | (() => void)[]) | undefined;
35
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
36
- updated?: ((() => void) | (() => void)[]) | undefined;
37
- activated?: ((() => void) | (() => void)[]) | undefined;
38
- deactivated?: ((() => void) | (() => void)[]) | undefined;
39
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
40
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
41
- destroyed?: ((() => void) | (() => void)[]) | undefined;
42
- unmounted?: ((() => void) | (() => void)[]) | undefined;
43
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
44
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
- 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;
46
- };
47
- $forceUpdate: () => void;
48
- $nextTick: typeof import("vue").nextTick;
49
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
50
- } & Readonly<import("vue").ExtractPropTypes<{
51
- layoutMode: PropType<"horizontal" | "vertical">;
52
- inGame: BooleanConstructor;
53
- }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
54
- __isFragment?: undefined;
55
- __isTeleport?: undefined;
56
- __isSuspense?: undefined;
57
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
58
- layoutMode: PropType<"horizontal" | "vertical">;
59
- inGame: BooleanConstructor;
60
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
61
- inGame: boolean;
62
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
63
- $slots: {};
64
- });
65
- export default _default;
1
+ import { PropType } from 'vue';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ inGame: boolean;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
9
+ layoutMode: PropType<"horizontal" | "vertical">;
10
+ inGame: BooleanConstructor;
11
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "inGame">;
12
+ $attrs: {
13
+ [x: string]: unknown;
14
+ };
15
+ $refs: {
16
+ [x: string]: unknown;
17
+ };
18
+ $slots: Readonly<{
19
+ [name: string]: import("vue").Slot | undefined;
20
+ }>;
21
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
22
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $emit: (event: string, ...args: any[]) => void;
24
+ $el: any;
25
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
26
+ layoutMode: PropType<"horizontal" | "vertical">;
27
+ inGame: BooleanConstructor;
28
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
29
+ inGame: boolean;
30
+ }> & {
31
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
32
+ created?: ((() => void) | (() => void)[]) | undefined;
33
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
34
+ mounted?: ((() => void) | (() => void)[]) | undefined;
35
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
36
+ updated?: ((() => void) | (() => void)[]) | undefined;
37
+ activated?: ((() => void) | (() => void)[]) | undefined;
38
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
39
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
40
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
41
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
42
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
43
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
44
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
+ 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;
46
+ };
47
+ $forceUpdate: () => void;
48
+ $nextTick: typeof import("vue").nextTick;
49
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
50
+ } & Readonly<import("vue").ExtractPropTypes<{
51
+ layoutMode: PropType<"horizontal" | "vertical">;
52
+ inGame: BooleanConstructor;
53
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
54
+ __isFragment?: undefined;
55
+ __isTeleport?: undefined;
56
+ __isSuspense?: undefined;
57
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
58
+ layoutMode: PropType<"horizontal" | "vertical">;
59
+ inGame: BooleanConstructor;
60
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
61
+ inGame: boolean;
62
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
63
+ $slots: {};
64
+ });
65
+ export default _default;
@@ -1,14 +1,14 @@
1
- import { HudStatConfig } from '../config';
2
- import { HudStatsState } from '../stores/hud-stats-store';
3
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {
4
- statsConfig(): {
5
- [key: string]: HudStatConfig;
6
- };
7
- stats(): HudStatsState;
8
- hudStyle(): any;
9
- layoutMode: () => "horizontal" | "vertical";
10
- hudStats: () => HudStatsState;
11
- }, {
12
- getStatImage(key: string): string;
13
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
14
- export default _default;
1
+ import { HudStatConfig } from '../config';
2
+ import { HudStatsState } from '../stores/hud-stats-store';
3
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {
4
+ statsConfig(): {
5
+ [key: string]: HudStatConfig;
6
+ };
7
+ stats(): HudStatsState;
8
+ hudStyle(): any;
9
+ layoutMode: () => "horizontal" | "vertical";
10
+ hudStats: () => HudStatsState;
11
+ }, {
12
+ getStatImage(key: string): string;
13
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
14
+ export default _default;
@@ -1,30 +1,30 @@
1
- import { ItemData } from '../config';
2
- import { ItemState } from '../stores/inventory-store';
3
- declare const _default: import("vue").DefineComponent<{}, {
4
- items: import("vue").ComputedRef<{
5
- [key: string]: ItemState;
6
- }>;
7
- currentlyChoosing: import("vue").ComputedRef<import("../stores/dialog-store").DialogChoice[] | undefined>;
8
- }, {
9
- chosenId: string | false;
10
- }, {
11
- itemsToDisplay(): {
12
- [key: string]: ItemState;
13
- };
14
- chosenItem(): null | ItemState;
15
- canUseChosenItem(): boolean;
16
- chosenItemConf(): null | ItemData;
17
- itemConf(): {
18
- [key: string]: ItemData;
19
- };
20
- }, {
21
- close(): void;
22
- getItemStyle(item: string): any;
23
- getItemName(item: string): string;
24
- getItemConf(item: string): ItemData;
25
- clickItem(item: string): void;
26
- closeItem(): void;
27
- useItem(): void;
28
- canUseItem(item: ItemState): boolean;
29
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
30
- export default _default;
1
+ import { ItemData } from '../config';
2
+ import { ItemState } from '../stores/inventory-store';
3
+ declare const _default: import("vue").DefineComponent<{}, {
4
+ items: import("vue").ComputedRef<{
5
+ [key: string]: ItemState;
6
+ }>;
7
+ currentlyChoosing: import("vue").ComputedRef<import("../stores/dialog-store").DialogChoice[] | undefined>;
8
+ }, {
9
+ chosenId: string | false;
10
+ }, {
11
+ itemsToDisplay(): {
12
+ [key: string]: ItemState;
13
+ };
14
+ chosenItem(): null | ItemState;
15
+ canUseChosenItem(): boolean;
16
+ chosenItemConf(): null | ItemData;
17
+ itemConf(): {
18
+ [key: string]: ItemData;
19
+ };
20
+ }, {
21
+ close(): void;
22
+ getItemStyle(item: string): any;
23
+ getItemName(item: string): string;
24
+ getItemConf(item: string): ItemData;
25
+ clickItem(item: string): void;
26
+ closeItem(): void;
27
+ useItem(): void;
28
+ canUseItem(item: ItemState): boolean;
29
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
30
+ export default _default;
@@ -1,10 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- percentage: NumberConstructor;
3
- step: StringConstructor;
4
- }, unknown, unknown, {}, {
5
- loadingStyle(): any;
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
- }>>, {}>;
10
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<{
2
+ percentage: NumberConstructor;
3
+ step: StringConstructor;
4
+ }, unknown, unknown, {}, {
5
+ loadingStyle(): any;
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
+ }>>, {}>;
10
+ export default _default;
@@ -1,26 +1,26 @@
1
- export interface ButtonConf {
2
- id: string;
3
- onClick?: () => void;
4
- condition?: () => boolean;
5
- cssId?: string;
6
- cssClass?: string;
7
- text: string;
8
- }
9
- declare const _default: import("vue").DefineComponent<{}, {}, {
10
- buttons: ButtonConf[];
11
- activeMenu: string | false;
12
- }, {
13
- buttonsToShow(): ButtonConf[];
14
- showSkills(): boolean;
15
- showInventory(): boolean;
16
- showQuests(): boolean;
17
- }, {
18
- buttonClick(button: ButtonConf): void;
19
- openMenu(): void;
20
- openSkills(): void;
21
- openInventory(): void;
22
- openQuests(): void;
23
- closeMenu(): void;
24
- toggleMenu(): void;
25
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
26
- export default _default;
1
+ export interface ButtonConf {
2
+ id: string;
3
+ onClick?: () => void;
4
+ condition?: () => boolean;
5
+ cssId?: string;
6
+ cssClass?: string;
7
+ text: string;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<{}, {}, {
10
+ buttons: ButtonConf[];
11
+ activeMenu: string | false;
12
+ }, {
13
+ buttonsToShow(): ButtonConf[];
14
+ showSkills(): boolean;
15
+ showInventory(): boolean;
16
+ showQuests(): boolean;
17
+ }, {
18
+ buttonClick(button: ButtonConf): void;
19
+ openMenu(): void;
20
+ openSkills(): void;
21
+ openInventory(): void;
22
+ openQuests(): void;
23
+ closeMenu(): void;
24
+ toggleMenu(): void;
25
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
26
+ export default _default;
@@ -1,6 +1,6 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, void, {
2
- notifications: () => {
3
- [key: string]: import("../stores/notification-store").NotificationState;
4
- };
5
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
6
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, void, {
2
+ notifications: () => {
3
+ [key: string]: import("../stores/notification-store").NotificationState;
4
+ };
5
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
6
+ export default _default;
@@ -1,20 +1,20 @@
1
- import { QuestState } from '../stores/quest-log';
2
- declare const _default: import("vue").DefineComponent<{}, {
3
- quests: import("vue").ComputedRef<{
4
- [key: string]: QuestState;
5
- }>;
6
- }, {}, {
7
- questsToDisplay(): {
8
- [key: string]: QuestState;
9
- };
10
- }, {
11
- close(): void;
12
- getQuestData(questId: string): import("../config").QuestData;
13
- getObjectiveData(questId: string, objectiveId: string): import("../config").ObjectiveData;
14
- getDisplayTextForQuestState(quest: QuestState): "" | " Hidden" | " (Completed)" | " Unknown";
15
- getQuestDescription(quest: QuestState): string;
16
- getAvailableObjectives(quest: QuestState): {
17
- [key: string]: import("../stores/quest-log").ObjectiveState;
18
- };
19
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
20
- export default _default;
1
+ import { QuestState } from '../stores/quest-log';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ quests: import("vue").ComputedRef<{
4
+ [key: string]: QuestState;
5
+ }>;
6
+ }, {}, {
7
+ questsToDisplay(): {
8
+ [key: string]: QuestState;
9
+ };
10
+ }, {
11
+ close(): void;
12
+ getQuestData(questId: string): import("../config").QuestData;
13
+ getObjectiveData(questId: string, objectiveId: string): import("../config").ObjectiveData;
14
+ getDisplayTextForQuestState(quest: QuestState): "" | " Hidden" | " (Completed)" | " Unknown";
15
+ getQuestDescription(quest: QuestState): string;
16
+ getAvailableObjectives(quest: QuestState): {
17
+ [key: string]: import("../stores/quest-log").ObjectiveState;
18
+ };
19
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
20
+ export default _default;
@@ -1,58 +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;
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;