narrat 2.0.3 → 2.0.6

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 (101) hide show
  1. package/CHANGELOG.md +776 -0
  2. package/LICENSE +21 -21
  3. package/README.md +38 -38
  4. package/dist/.DS_Store +0 -0
  5. package/dist/app.vue.d.ts +106 -106
  6. package/dist/components/MainMenu.vue.d.ts +12 -12
  7. package/dist/components/Skills.vue.d.ts +22 -22
  8. package/dist/components/debug/debug-menu.vue.d.ts +48 -48
  9. package/dist/components/dialog-picture.vue.d.ts +9 -9
  10. package/dist/components/game-dialog.vue.d.ts +65 -65
  11. package/dist/components/hud.vue.d.ts +12 -12
  12. package/dist/components/inventory-ui.vue.d.ts +30 -30
  13. package/dist/components/loading-bar.vue.d.ts +10 -10
  14. package/dist/components/menu-buttons.vue.d.ts +26 -26
  15. package/dist/components/notification-toast.vue.d.ts +6 -6
  16. package/dist/components/quests-ui.vue.d.ts +20 -20
  17. package/dist/components/utils/modal.vue.d.ts +6 -6
  18. package/dist/components/volume-controls.vue.d.ts +7 -7
  19. package/dist/config.d.ts +151 -151
  20. package/dist/constants.d.ts +1 -1
  21. package/dist/data/characters.json +62 -62
  22. package/dist/data/config.json +182 -182
  23. package/dist/data/example.rpy +360 -360
  24. package/dist/data/refactor.rpy +30 -30
  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 +37 -37
  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/fonts/OpenDyslexic.ttf.svg +2326 -2326
  32. package/dist/gameloop.d.ts +3 -3
  33. package/dist/img/.DS_Store +0 -0
  34. package/dist/lib/lib.d.ts +15 -15
  35. package/dist/main.d.ts +5 -5
  36. package/dist/music/.DS_Store +0 -0
  37. package/dist/narrat.es.js +40 -14
  38. package/dist/narrat.es.js.map +1 -1
  39. package/dist/narrat.umd.js +70 -70
  40. package/dist/narrat.umd.js.map +1 -1
  41. package/dist/plugins/NarratPlugin.d.ts +11 -11
  42. package/dist/sounds/.DS_Store +0 -0
  43. package/dist/stores/audio-store.d.ts +12 -12
  44. package/dist/stores/dialog-store.d.ts +31 -31
  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 +276 -276
  48. package/dist/stores/notification-store.d.ts +12 -12
  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 +23 -23
  52. package/dist/stores/skills.d.ts +36 -36
  53. package/dist/stores/vm-store.d.ts +148 -148
  54. package/dist/types/app-types.d.ts +4 -4
  55. package/dist/types/character-types.d.ts +27 -27
  56. package/dist/types/dialog-box-types.d.ts +10 -10
  57. package/dist/types/game-save.d.ts +21 -21
  58. package/dist/types/parser.d.ts +92 -92
  59. package/dist/types/state.d.ts +3 -3
  60. package/dist/utils/ajax.d.ts +1 -1
  61. package/dist/utils/audio-loader.d.ts +13 -13
  62. package/dist/utils/characters.d.ts +5 -5
  63. package/dist/utils/data-helpers.d.ts +19 -19
  64. package/dist/utils/debounce.d.ts +14 -14
  65. package/dist/utils/error-handling.d.ts +3 -3
  66. package/dist/utils/helpers.d.ts +6 -6
  67. package/dist/utils/images-loader.d.ts +6 -6
  68. package/dist/utils/logger.d.ts +11 -11
  69. package/dist/utils/object-iterators.d.ts +8 -8
  70. package/dist/utils/promises.d.ts +1 -1
  71. package/dist/utils/randomId.d.ts +1 -1
  72. package/dist/utils/save-helpers.d.ts +3 -0
  73. package/dist/utils/skillchecks.d.ts +17 -17
  74. package/dist/utils/string-helpers.d.ts +3 -3
  75. package/dist/utils/time-helpers.d.ts +2 -2
  76. package/dist/vm/commands/arithmetic-commands.d.ts +17 -17
  77. package/dist/vm/commands/audio-commands.d.ts +8 -8
  78. package/dist/vm/commands/choice.d.ts +37 -37
  79. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  80. package/dist/vm/commands/command-helpers.d.ts +2 -2
  81. package/dist/vm/commands/command-plugin.d.ts +30 -30
  82. package/dist/vm/commands/flow-commands.d.ts +14 -14
  83. package/dist/vm/commands/if.d.ts +10 -10
  84. package/dist/vm/commands/index.d.ts +2 -2
  85. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  86. package/dist/vm/commands/logic-command.d.ts +42 -42
  87. package/dist/vm/commands/notify.d.ts +4 -4
  88. package/dist/vm/commands/quest-commands.d.ts +30 -30
  89. package/dist/vm/commands/screen-commands.d.ts +8 -8
  90. package/dist/vm/commands/set.d.ts +6 -6
  91. package/dist/vm/commands/skill-commands.d.ts +33 -33
  92. package/dist/vm/commands/stats-commands.d.ts +12 -12
  93. package/dist/vm/commands/string-commands.d.ts +9 -9
  94. package/dist/vm/commands/text-field.d.ts +7 -7
  95. package/dist/vm/commands/text.d.ts +13 -13
  96. package/dist/vm/commands/wait.d.ts +4 -4
  97. package/dist/vm/vm-helpers.d.ts +16 -16
  98. package/dist/vm/vm-parser.d.ts +19 -19
  99. package/dist/vm/vm-parser.test.d.ts +1 -1
  100. package/dist/vm/vm.d.ts +19 -19
  101. package/package.json +79 -79
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/README.md CHANGED
@@ -1,38 +1,38 @@
1
- # 🚀 Narrat
2
-
3
- ## Narrat 2.0
4
-
5
- This is the narrat 2.0 branch. See the [Narrat 2.0 update docs](https://docs.get-narrat.com/readme/narrat-2.0) for more info, or look at the changelog.
6
-
7
- 2.0 version can be installed with `npm install narrat@next`, as it's not pushed as the main release yet (main release is still 1.x).
8
-
9
- There are syntax changes in usage of $if functions and also an auto script converter available in the [2.0 update docs](https://docs.get-narrat.com/readme/narrat-2.0).
10
-
11
- ## Original Docs
12
-
13
- ![example workflow](https://github.com/nialna/narrat/actions/workflows/main.yml/badge.svg)
14
-
15
- A narrative game engine for text-based games. Inspired by renpy syntax, but built to be customisable, extendable and web-focused. See the [website](https://get-narrat.com)
16
-
17
- ![Narrat banner image](https://gblobscdn.gitbook.com/assets%2F-Mh95QNKFZeeRV90-ZSq%2F-MiI7tyjjriQTQI80bhM%2F-MiI83Ys6ED75AlZ_dVT%2Fnarrat-banner.jpg?alt=media&token=9d72e03f-c2ba-4fcb-8579-491b0f8940d8)
18
-
19
- You can [try a little demo](https://get-narrat.com/demo/). It contains a built version of the [narrat demo repo](https://github.com/nialna/narrat-demo).
20
-
21
- Game dialogue info is written in files with a similar syntax to Renpy (.rpy files). Those files get loaded by the game engine which plays through them. This allows us to use [renpy syntax highlighting](https://marketplace.visualstudio.com/items?itemName=LuqueDaniel.languague-renpy) in vs code easily. It is **not renpy** though, just inspired from it. Eventually narrat might have its own language and file extension support.
22
-
23
- ## Usage
24
-
25
- See the [Documentation](https://docs.get-narrat.com/) for more info, or jump directly in the [Getting Started Guide](https://docs.get-narrat.com/getting-started)
26
-
27
- ## Features
28
-
29
- - Flexible dialog writing with branching and conditions
30
- - Multiple script files support with labels and jumps to organise script writing
31
- - Multiple speaking characters support with icons and poses
32
- - Custom variables in scripts to create flags or other data the game needs to track
33
- - Seamless saving and reloading
34
- - UI with buttons that can be used for example to create world maps with clickable locations (the buttons can be controlled in scripts)
35
- - Sound and music support
36
- - Delays between script lines
37
- - Electron build to turn the game into a pc/mac/linux app (template to be updated with example soon)
38
- - Skill checks (Feature still early, needs a UI for viewing skills and creating characters)
1
+ # 🚀 Narrat
2
+
3
+ ## Narrat 2.0
4
+
5
+ This is the narrat 2.0 branch. See the [Narrat 2.0 update docs](https://docs.get-narrat.com/readme/narrat-2.0) for more info, or look at the changelog.
6
+
7
+ 2.0 version can be installed with `npm install narrat@next`, as it's not pushed as the main release yet (main release is still 1.x).
8
+
9
+ There are syntax changes in usage of $if functions and also an auto script converter available in the [2.0 update docs](https://docs.get-narrat.com/readme/narrat-2.0).
10
+
11
+ ## Original Docs
12
+
13
+ ![example workflow](https://github.com/nialna/narrat/actions/workflows/main.yml/badge.svg)
14
+
15
+ A narrative game engine for text-based games. Inspired by renpy syntax, but built to be customisable, extendable and web-focused. See the [website](https://get-narrat.com)
16
+
17
+ ![Narrat banner image](https://gblobscdn.gitbook.com/assets%2F-Mh95QNKFZeeRV90-ZSq%2F-MiI7tyjjriQTQI80bhM%2F-MiI83Ys6ED75AlZ_dVT%2Fnarrat-banner.jpg?alt=media&token=9d72e03f-c2ba-4fcb-8579-491b0f8940d8)
18
+
19
+ You can [try a little demo](https://get-narrat.com/demo/). It contains a built version of the [narrat demo repo](https://github.com/nialna/narrat-demo).
20
+
21
+ Game dialogue info is written in files with a similar syntax to Renpy (.rpy files). Those files get loaded by the game engine which plays through them. This allows us to use [renpy syntax highlighting](https://marketplace.visualstudio.com/items?itemName=LuqueDaniel.languague-renpy) in vs code easily. It is **not renpy** though, just inspired from it. Eventually narrat might have its own language and file extension support.
22
+
23
+ ## Usage
24
+
25
+ See the [Documentation](https://docs.get-narrat.com/) for more info, or jump directly in the [Getting Started Guide](https://docs.get-narrat.com/getting-started)
26
+
27
+ ## Features
28
+
29
+ - Flexible dialog writing with branching and conditions
30
+ - Multiple script files support with labels and jumps to organise script writing
31
+ - Multiple speaking characters support with icons and poses
32
+ - Custom variables in scripts to create flags or other data the game needs to track
33
+ - Seamless saving and reloading
34
+ - UI with buttons that can be used for example to create world maps with clickable locations (the buttons can be controlled in scripts)
35
+ - Sound and music support
36
+ - Delays between script lines
37
+ - Electron build to turn the game into a pc/mac/linux app (template to be updated with example soon)
38
+ - Skill checks (Feature still early, needs a UI for viewing skills and creating characters)
package/dist/.DS_Store ADDED
Binary file
package/dist/app.vue.d.ts CHANGED
@@ -1,106 +1,106 @@
1
- import { PropType } from 'vue';
2
- import { DialogBoxParameters } from './types/dialog-box-types';
3
- import { GameConfig } from './types/app-types';
4
- import { AppOptions } from './config';
5
- import { DialogKey } from './stores/dialog-store';
6
- declare const _default: import("vue").DefineComponent<{
7
- config: PropType<GameConfig>;
8
- options: PropType<AppOptions>;
9
- }, {
10
- dialog: import("vue").ComputedRef<{
11
- speaker: string;
12
- text: string;
13
- pose?: string | undefined;
14
- choices?: {
15
- choice: string;
16
- originalIndex: number;
17
- allowed: boolean;
18
- }[] | undefined;
19
- textField?: boolean | undefined;
20
- interactive: boolean;
21
- id: string;
22
- }[]>;
23
- stack: import("vue").ComputedRef<{
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
- label: string;
46
- scope: {
47
- [key: string]: any;
48
- };
49
- onComplete?: ((result: any) => void) | undefined;
50
- returnValue: any;
51
- }[]>;
52
- modal: import("vue").ComputedRef<string | false>;
53
- flowState: import("vue").ComputedRef<"menu" | "playing">;
54
- }, {
55
- lineTitle: string;
56
- lineText: string;
57
- gameLoaded: boolean;
58
- loadingStep: string;
59
- loadingPercentage: number;
60
- hasSave: boolean;
61
- }, {
62
- dialogLength(): number;
63
- lastDialog(): DialogKey | undefined;
64
- picture(): string | undefined;
65
- backgroundStyle(): any;
66
- layoutWidth(): number;
67
- gameTitle(): string;
68
- inGame(): boolean;
69
- layoutHeight(): number;
70
- backgroundSize(): {
71
- width: number;
72
- height: number;
73
- left: number;
74
- top: number;
75
- };
76
- dialogWidth(): number;
77
- dialogStyle(): any;
78
- gameWidth(): number;
79
- gameHeight(): number;
80
- appStyle(): any;
81
- gameStyle(): any;
82
- screenRatio(): number;
83
- dialogContainerStyle(): any;
84
- currentLine: () => import("./types/parser").Parser.ParsedExpression<import("./types/parser").Parser.DefaultArg, {}> | undefined;
85
- screenWidth: () => number;
86
- screenHeight: () => number;
87
- canvasWidth: () => number;
88
- canvasHeight: () => number;
89
- topOffset: () => number;
90
- leftOffset: () => number;
91
- layoutMode: () => "horizontal" | "vertical";
92
- }, {
93
- setupMachine(): Promise<void>;
94
- getSaveFile(): string | null;
95
- startGame(): Promise<void>;
96
- loadGame(): Promise<void>;
97
- isDialogActive(i: number): boolean;
98
- nextLine(): void;
99
- updateScreenSize(): void;
100
- closeModal(): void;
101
- getDialogBoxOptions(dialogKey: DialogKey, index: number): DialogBoxParameters;
102
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
103
- config: PropType<GameConfig>;
104
- options: PropType<AppOptions>;
105
- }>>, {}>;
106
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { DialogBoxParameters } from './types/dialog-box-types';
3
+ import { GameConfig } from './types/app-types';
4
+ import { AppOptions } from './config';
5
+ import { DialogKey } from './stores/dialog-store';
6
+ declare const _default: import("vue").DefineComponent<{
7
+ config: PropType<GameConfig>;
8
+ options: PropType<AppOptions>;
9
+ }, {
10
+ dialog: import("vue").ComputedRef<{
11
+ speaker: string;
12
+ text: string;
13
+ pose?: string | undefined;
14
+ choices?: {
15
+ choice: string;
16
+ originalIndex: number;
17
+ allowed: boolean;
18
+ }[] | undefined;
19
+ textField?: boolean | undefined;
20
+ interactive: boolean;
21
+ id: string;
22
+ }[]>;
23
+ stack: import("vue").ComputedRef<{
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
+ label: string;
46
+ scope: {
47
+ [key: string]: any;
48
+ };
49
+ onComplete?: ((result: any) => void) | undefined;
50
+ returnValue: any;
51
+ }[]>;
52
+ modal: import("vue").ComputedRef<string | false>;
53
+ flowState: import("vue").ComputedRef<"menu" | "playing">;
54
+ }, {
55
+ lineTitle: string;
56
+ lineText: string;
57
+ gameLoaded: boolean;
58
+ loadingStep: string;
59
+ loadingPercentage: number;
60
+ hasSave: boolean;
61
+ }, {
62
+ dialogLength(): number;
63
+ lastDialog(): DialogKey | undefined;
64
+ picture(): string | undefined;
65
+ backgroundStyle(): any;
66
+ layoutWidth(): number;
67
+ gameTitle(): string;
68
+ inGame(): boolean;
69
+ layoutHeight(): number;
70
+ backgroundSize(): {
71
+ width: number;
72
+ height: number;
73
+ left: number;
74
+ top: number;
75
+ };
76
+ dialogWidth(): number;
77
+ dialogStyle(): any;
78
+ gameWidth(): number;
79
+ gameHeight(): number;
80
+ appStyle(): any;
81
+ gameStyle(): any;
82
+ screenRatio(): number;
83
+ dialogContainerStyle(): any;
84
+ currentLine: () => import("./types/parser").Parser.ParsedExpression<import("./types/parser").Parser.DefaultArg, {}> | undefined;
85
+ screenWidth: () => number;
86
+ screenHeight: () => number;
87
+ canvasWidth: () => number;
88
+ canvasHeight: () => number;
89
+ topOffset: () => number;
90
+ leftOffset: () => number;
91
+ layoutMode: () => "horizontal" | "vertical";
92
+ }, {
93
+ setupMachine(): Promise<void>;
94
+ getSaveFile(): string | null;
95
+ startGame(): Promise<void>;
96
+ loadGame(): Promise<void>;
97
+ isDialogActive(i: number): boolean;
98
+ nextLine(): void;
99
+ updateScreenSize(): void;
100
+ closeModal(): void;
101
+ getDialogBoxOptions(dialogKey: DialogKey, index: number): DialogBoxParameters;
102
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
103
+ config: PropType<GameConfig>;
104
+ options: PropType<AppOptions>;
105
+ }>>, {}>;
106
+ 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,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;