narrat 2.6.4 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +128 -128
- package/dist/app.vue.d.ts +79 -79
- package/dist/blue-pattern.webp +0 -0
- package/dist/components/MainMenu.vue.d.ts +7 -7
- package/dist/components/SkillsWindow.vue.d.ts +22 -22
- package/dist/components/StartMenu.vue.d.ts +46 -46
- package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +46 -0
- package/dist/components/debug/debug-menu.vue.d.ts +49 -49
- package/dist/components/dialog-picture.vue.d.ts +11 -11
- package/dist/components/engine-splash/engine-splash.vue.d.ts +54 -54
- package/dist/components/game-dialog.vue.d.ts +65 -65
- package/dist/components/game-splash/game-splash.vue.d.ts +46 -46
- package/dist/components/hud.vue.d.ts +14 -14
- package/dist/components/in-game.vue.d.ts +46 -46
- package/dist/components/inventory/inventory-section.vue.d.ts +61 -0
- package/dist/components/inventory/item-details.vue.d.ts +76 -0
- package/dist/components/inventory-ui.vue.d.ts +28 -30
- package/dist/components/loading-bar.vue.d.ts +10 -10
- package/dist/components/menu-buttons.vue.d.ts +46 -54
- package/dist/components/notification-toast.vue.d.ts +6 -6
- package/dist/components/quests/QuestDetails.vue.d.ts +64 -0
- package/dist/components/quests/QuestDisplay.vue.d.ts +64 -0
- package/dist/components/quests/quests-list-section.vue.d.ts +70 -0
- package/dist/components/quests-ui.vue.d.ts +22 -20
- package/dist/components/save-slots.vue.d.ts +79 -79
- package/dist/components/saves/save-slot-ui.vue.d.ts +108 -108
- package/dist/components/screen-layer.vue.d.ts +76 -76
- package/dist/components/screens.vue.d.ts +46 -46
- package/dist/components/tabs/TabsController.vue.d.ts +72 -0
- package/dist/components/tabs/tab-selector.vue.d.ts +82 -0
- package/dist/components/transitions/NarratTransition.vue.d.ts +97 -97
- package/dist/components/utils/alert-modal.vue.d.ts +82 -82
- package/dist/components/utils/modal-window.vue.d.ts +18 -18
- package/dist/components/utils/yes-no.vue.d.ts +106 -106
- package/dist/components/volume-controls.vue.d.ts +18 -18
- package/dist/config.d.ts +244 -227
- package/dist/constants.d.ts +10 -10
- package/dist/defaultConfig.d.ts +2 -2
- package/dist/demo/demo.d.ts +1 -1
- package/dist/dialog-box.vue.d.ts +71 -42
- package/dist/exports/components.d.ts +2 -2
- package/dist/exports/config.d.ts +1 -1
- package/dist/exports/display.d.ts +2 -2
- package/dist/exports/events.d.ts +1 -1
- package/dist/exports/others.d.ts +1 -1
- package/dist/exports/plugins.d.ts +38 -38
- package/dist/exports/stores.d.ts +11 -11
- package/dist/favicon.svg +30 -30
- package/dist/gamepad/gamepad.d.ts +1 -0
- package/dist/lib.d.ts +18 -18
- package/dist/main.d.ts +7 -7
- package/dist/menu-buttons/menu-buttons.d.ts +7 -4
- package/dist/narrat.es.js +12024 -11620
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +97 -97
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +11 -11
- package/dist/stores/audio-store.d.ts +56 -56
- package/dist/stores/dialog-store.d.ts +35 -32
- package/dist/stores/hud-stats-store.d.ts +22 -22
- package/dist/stores/inventory-store.d.ts +38 -37
- package/dist/stores/main-store.d.ts +929 -928
- package/dist/stores/menu-store.d.ts +45 -36
- package/dist/stores/notification-store.d.ts +15 -15
- package/dist/stores/quest-log.d.ts +39 -39
- package/dist/stores/rendering-store.d.ts +19 -18
- package/dist/stores/screens-store.d.ts +33 -33
- package/dist/stores/skills.d.ts +41 -41
- package/dist/stores/sprites-store.d.ts +48 -48
- package/dist/stores/vm-store.d.ts +180 -180
- package/dist/style.css +1 -1
- package/dist/types/app-types.d.ts +9 -9
- package/dist/types/character-types.d.ts +27 -27
- package/dist/types/dialog-box-types.d.ts +11 -11
- package/dist/types/game-save.d.ts +40 -40
- package/dist/types/parser.d.ts +93 -93
- package/dist/types/state.d.ts +3 -3
- package/dist/utils/InputsListener.d.ts +9 -9
- package/dist/utils/ajax.d.ts +2 -2
- package/dist/utils/audio-loader.d.ts +10 -10
- package/dist/utils/characters.d.ts +5 -5
- package/dist/utils/data-helpers.d.ts +29 -29
- package/dist/utils/debounce.d.ts +14 -14
- package/dist/utils/error-handling.d.ts +4 -4
- package/dist/utils/helpers.d.ts +6 -6
- package/dist/utils/images-loader.d.ts +7 -7
- package/dist/utils/logger.d.ts +11 -11
- package/dist/utils/object-iterators.d.ts +8 -8
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/randomId.d.ts +1 -1
- package/dist/utils/save-helpers.d.ts +16 -16
- package/dist/utils/skillchecks.d.ts +17 -17
- package/dist/utils/string-helpers.d.ts +4 -3
- package/dist/utils/time-helpers.d.ts +2 -2
- package/dist/utils/transition.d.ts +21 -21
- package/dist/utils/type-utils.d.ts +2 -2
- package/dist/utils/typed-emitter.d.ts +18 -18
- package/dist/utils/vue-directives.d.ts +2 -0
- package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
- package/dist/vm/commands/audio-commands.d.ts +15 -15
- package/dist/vm/commands/choice.d.ts +38 -38
- package/dist/vm/commands/clear_dialog.d.ts +2 -2
- package/dist/vm/commands/command-helpers.d.ts +3 -3
- package/dist/vm/commands/command-plugin.d.ts +43 -43
- package/dist/vm/commands/flow-commands.d.ts +24 -24
- package/dist/vm/commands/if.d.ts +10 -10
- package/dist/vm/commands/index.d.ts +2 -2
- package/dist/vm/commands/inventory-commands.d.ts +15 -15
- package/dist/vm/commands/logic-command.d.ts +42 -42
- package/dist/vm/commands/math-commands.d.ts +30 -30
- package/dist/vm/commands/notify.d.ts +6 -6
- package/dist/vm/commands/quest-commands.d.ts +30 -30
- package/dist/vm/commands/random-commands.d.ts +10 -10
- package/dist/vm/commands/screen-commands.d.ts +18 -18
- package/dist/vm/commands/set.d.ts +6 -6
- package/dist/vm/commands/skill-commands.d.ts +33 -33
- package/dist/vm/commands/sprite-commands.d.ts +9 -9
- package/dist/vm/commands/stats-commands.d.ts +12 -12
- package/dist/vm/commands/string-commands.d.ts +9 -9
- package/dist/vm/commands/text-field.d.ts +7 -7
- package/dist/vm/commands/text.d.ts +14 -14
- package/dist/vm/commands/wait.d.ts +4 -4
- package/dist/vm/vm-helpers.d.ts +19 -19
- package/dist/vm/vm-parser.d.ts +19 -19
- package/dist/vm/vm-parser.test.d.ts +1 -1
- package/dist/vm/vm.d.ts +21 -21
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -1,227 +1,244 @@
|
|
|
1
|
-
import { AppOptions } from './types/app-types';
|
|
2
|
-
import { TransitionSettings } from './utils/transition';
|
|
3
|
-
export declare function loadConfig(options: AppOptions): Promise<void>;
|
|
4
|
-
export declare function getConfig(): Config;
|
|
5
|
-
export declare function getSkillConfig(id: string): SkillData;
|
|
6
|
-
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
7
|
-
export declare function getAssetUrl(assetPath: string): string;
|
|
8
|
-
export declare function getDataUrl(dataPath: string): string;
|
|
9
|
-
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
10
|
-
export declare function getItemConfig(id: string): ItemData;
|
|
11
|
-
export declare function getQuestConfig(questId: string): QuestData;
|
|
12
|
-
export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
width
|
|
47
|
-
height
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
right: number;
|
|
63
|
-
bottom: number;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
export interface
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1
|
+
import { AppOptions } from './types/app-types';
|
|
2
|
+
import { TransitionSettings } from './utils/transition';
|
|
3
|
+
export declare function loadConfig(options: AppOptions): Promise<void>;
|
|
4
|
+
export declare function getConfig(): Config;
|
|
5
|
+
export declare function getSkillConfig(id: string): SkillData;
|
|
6
|
+
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
7
|
+
export declare function getAssetUrl(assetPath: string): string;
|
|
8
|
+
export declare function getDataUrl(dataPath: string): string;
|
|
9
|
+
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
10
|
+
export declare function getItemConfig(id: string): ItemData;
|
|
11
|
+
export declare function getQuestConfig(questId: string): QuestData;
|
|
12
|
+
export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
|
|
13
|
+
export declare function getDialogPanelWidth(): number;
|
|
14
|
+
export interface AppOptionsDeprecated {
|
|
15
|
+
logging: boolean;
|
|
16
|
+
debug: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface SplitConfig {
|
|
19
|
+
screens: Config['screens'];
|
|
20
|
+
buttons: Config['buttons'];
|
|
21
|
+
skills: {
|
|
22
|
+
skills: Config['skills'];
|
|
23
|
+
options: Config['skillOptions'];
|
|
24
|
+
skillChecks: Config['skillChecks'];
|
|
25
|
+
};
|
|
26
|
+
scripts: Config['scripts'];
|
|
27
|
+
audio: {
|
|
28
|
+
files: Config['audio'];
|
|
29
|
+
options: Config['audioOptions'];
|
|
30
|
+
};
|
|
31
|
+
items: Config['items'];
|
|
32
|
+
quests: Config['quests'];
|
|
33
|
+
}
|
|
34
|
+
export interface Config {
|
|
35
|
+
baseAssetsPath?: string;
|
|
36
|
+
baseDataPath?: string;
|
|
37
|
+
gameTitle: string;
|
|
38
|
+
images: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
layout: {
|
|
42
|
+
dialogPanel?: {
|
|
43
|
+
overlayMode?: boolean;
|
|
44
|
+
rightOffset?: number;
|
|
45
|
+
bottomOffset?: number;
|
|
46
|
+
width?: number;
|
|
47
|
+
height?: number;
|
|
48
|
+
};
|
|
49
|
+
backgrounds: {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
};
|
|
53
|
+
dialogBottomPadding: number;
|
|
54
|
+
minTextWidth?: number;
|
|
55
|
+
mobileDialogHeightPercentage: number;
|
|
56
|
+
verticalLayoutThreshold: number;
|
|
57
|
+
portraits: {
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
offset?: {
|
|
61
|
+
landscape?: {
|
|
62
|
+
right: number;
|
|
63
|
+
bottom: number;
|
|
64
|
+
};
|
|
65
|
+
portrait?: {
|
|
66
|
+
right: number;
|
|
67
|
+
bottom: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
gameFlow: {
|
|
73
|
+
labelToJumpOnScriptEnd?: string;
|
|
74
|
+
};
|
|
75
|
+
dialoguePanel: {
|
|
76
|
+
animateText?: boolean;
|
|
77
|
+
textSpeed?: number;
|
|
78
|
+
timeBetweenLines?: number;
|
|
79
|
+
};
|
|
80
|
+
splashScreens: {
|
|
81
|
+
engineSplashScreen?: {
|
|
82
|
+
skip?: boolean;
|
|
83
|
+
fadeDuration?: number;
|
|
84
|
+
timeBeforeFadeout?: number;
|
|
85
|
+
overrideText?: string;
|
|
86
|
+
overrideLogo?: string;
|
|
87
|
+
};
|
|
88
|
+
gameSplashScreen?: {
|
|
89
|
+
startButtonText?: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
screens: {
|
|
93
|
+
[key: string]: ScreenConfig;
|
|
94
|
+
};
|
|
95
|
+
buttons: {
|
|
96
|
+
[key: string]: ButtonConfig;
|
|
97
|
+
};
|
|
98
|
+
skills: {
|
|
99
|
+
[key: string]: SkillData;
|
|
100
|
+
};
|
|
101
|
+
skillOptions: {
|
|
102
|
+
xpPerLevel: number;
|
|
103
|
+
notifyLevelUp: boolean;
|
|
104
|
+
};
|
|
105
|
+
skillChecks: {
|
|
106
|
+
rollRange: number;
|
|
107
|
+
skillMultiplier: number;
|
|
108
|
+
failureChance: number;
|
|
109
|
+
difficultyText: Array<[number, string]>;
|
|
110
|
+
};
|
|
111
|
+
scripts: string[];
|
|
112
|
+
audio: {
|
|
113
|
+
[key: string]: AudioConfig;
|
|
114
|
+
};
|
|
115
|
+
audioOptions: {
|
|
116
|
+
volume: number;
|
|
117
|
+
defaultMusic?: string;
|
|
118
|
+
musicFadeInTime: number;
|
|
119
|
+
musicFadeInDelay: number;
|
|
120
|
+
musicFadeOutTime: number;
|
|
121
|
+
};
|
|
122
|
+
sound?: {
|
|
123
|
+
[key: string]: AudioConfig;
|
|
124
|
+
};
|
|
125
|
+
music?: {
|
|
126
|
+
[key: string]: AudioConfig;
|
|
127
|
+
};
|
|
128
|
+
notifications: {
|
|
129
|
+
timeOnScreen: number;
|
|
130
|
+
alsoPrintInDialogue?: boolean;
|
|
131
|
+
};
|
|
132
|
+
hudStats: {
|
|
133
|
+
[key: string]: HudStatConfig;
|
|
134
|
+
};
|
|
135
|
+
items: {
|
|
136
|
+
categories: ItemCategory[];
|
|
137
|
+
items: {
|
|
138
|
+
[key: string]: ItemData;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
interactionTags: {
|
|
142
|
+
[key: string]: {
|
|
143
|
+
onlyInteractOutsideOfScripts: boolean;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
quests: {
|
|
147
|
+
[key: string]: QuestData;
|
|
148
|
+
};
|
|
149
|
+
transitions: {
|
|
150
|
+
[key: string]: TransitionSettings;
|
|
151
|
+
};
|
|
152
|
+
audioTriggers: {
|
|
153
|
+
[key: string]: string;
|
|
154
|
+
};
|
|
155
|
+
menuButtons: {
|
|
156
|
+
[key: string]: MenuButtonData;
|
|
157
|
+
};
|
|
158
|
+
debugging: {
|
|
159
|
+
showScriptFinishedMessage?: boolean;
|
|
160
|
+
};
|
|
161
|
+
saves: {
|
|
162
|
+
mode: 'game-slots' | 'manual';
|
|
163
|
+
slots: number;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export interface ScreenConfig {
|
|
167
|
+
background: string;
|
|
168
|
+
buttons: Array<string | InlineButtonConfig>;
|
|
169
|
+
}
|
|
170
|
+
export interface MenuButtonData {
|
|
171
|
+
text: string;
|
|
172
|
+
}
|
|
173
|
+
export interface QuestData {
|
|
174
|
+
title: string;
|
|
175
|
+
description: string;
|
|
176
|
+
objectives: {
|
|
177
|
+
[key: string]: ObjectiveData;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
export interface ObjectiveData {
|
|
181
|
+
description: string;
|
|
182
|
+
hidden?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface ItemData {
|
|
185
|
+
name: string;
|
|
186
|
+
description: string;
|
|
187
|
+
icon: string;
|
|
188
|
+
onUse?: {
|
|
189
|
+
action: 'jump' | 'run';
|
|
190
|
+
label: string;
|
|
191
|
+
};
|
|
192
|
+
tag?: string;
|
|
193
|
+
category?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface ItemCategory {
|
|
196
|
+
id: string;
|
|
197
|
+
title: string;
|
|
198
|
+
}
|
|
199
|
+
export interface HudStatConfig {
|
|
200
|
+
name: string;
|
|
201
|
+
icon: string;
|
|
202
|
+
startingValue: number;
|
|
203
|
+
minValue?: number;
|
|
204
|
+
maxValue?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface AudioConfig {
|
|
207
|
+
src: string;
|
|
208
|
+
path?: string;
|
|
209
|
+
volume?: number;
|
|
210
|
+
rate?: number;
|
|
211
|
+
html5?: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface MusicConfig extends AudioConfig {
|
|
214
|
+
loop?: boolean;
|
|
215
|
+
}
|
|
216
|
+
export interface ButtonConfig {
|
|
217
|
+
enabled: boolean;
|
|
218
|
+
background?: string;
|
|
219
|
+
text?: string;
|
|
220
|
+
cssClass?: string;
|
|
221
|
+
position: {
|
|
222
|
+
left: number;
|
|
223
|
+
top: number;
|
|
224
|
+
width?: number;
|
|
225
|
+
height?: number;
|
|
226
|
+
};
|
|
227
|
+
anchor?: {
|
|
228
|
+
x: number;
|
|
229
|
+
y: number;
|
|
230
|
+
};
|
|
231
|
+
action: string;
|
|
232
|
+
actionType?: 'jump' | 'run';
|
|
233
|
+
tag?: string;
|
|
234
|
+
}
|
|
235
|
+
export interface InlineButtonConfig extends ButtonConfig {
|
|
236
|
+
id: string;
|
|
237
|
+
}
|
|
238
|
+
export interface SkillData {
|
|
239
|
+
name: string;
|
|
240
|
+
description: string;
|
|
241
|
+
startingLevel: number;
|
|
242
|
+
hidden?: boolean;
|
|
243
|
+
icon: string;
|
|
244
|
+
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const SAVE_FILE = "gameSave";
|
|
2
|
-
export declare const PRE_SIGNAL = "###_--_~=:;";
|
|
3
|
-
export declare const JUMP_SIGNAL = "###_--_~=:;_JUMP";
|
|
4
|
-
export declare const RETURN_SIGNAL = "###_--_~=:;_RETURN";
|
|
5
|
-
export declare const OK_SIGNAL = "###_--_~=:;_OK";
|
|
6
|
-
export declare const STOP_SIGNAL = "###_--_~=:;_STOP";
|
|
7
|
-
export declare type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL | typeof STOP_SIGNAL;
|
|
8
|
-
export declare function isReturnSignal(s: string): s is ReturnSignal;
|
|
9
|
-
export declare const VERSION: string;
|
|
10
|
-
export declare const BUILD_DATE: Date;
|
|
1
|
+
export declare const SAVE_FILE = "gameSave";
|
|
2
|
+
export declare const PRE_SIGNAL = "###_--_~=:;";
|
|
3
|
+
export declare const JUMP_SIGNAL = "###_--_~=:;_JUMP";
|
|
4
|
+
export declare const RETURN_SIGNAL = "###_--_~=:;_RETURN";
|
|
5
|
+
export declare const OK_SIGNAL = "###_--_~=:;_OK";
|
|
6
|
+
export declare const STOP_SIGNAL = "###_--_~=:;_STOP";
|
|
7
|
+
export declare type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL | typeof STOP_SIGNAL;
|
|
8
|
+
export declare function isReturnSignal(s: string): s is ReturnSignal;
|
|
9
|
+
export declare const VERSION: string;
|
|
10
|
+
export declare const BUILD_DATE: Date;
|
package/dist/defaultConfig.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Config } from './config';
|
|
2
|
-
export declare const defaultConfig: Config;
|
|
1
|
+
import { Config } from './config';
|
|
2
|
+
export declare const defaultConfig: Config;
|
package/dist/demo/demo.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/dialog-box.vue.d.ts
CHANGED
|
@@ -1,42 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { DialogChoice } from './stores/dialog-store';
|
|
4
|
+
import { DialogStyle } from './types/character-types';
|
|
5
|
+
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
6
|
+
export interface TextAnimation {
|
|
7
|
+
text: string;
|
|
8
|
+
index: number;
|
|
9
|
+
startTime: number;
|
|
10
|
+
timer: NodeJS.Timer | null;
|
|
11
|
+
skippedChars: number;
|
|
12
|
+
tags: RegExpExecArray[];
|
|
13
|
+
finished: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<{
|
|
16
|
+
options: {
|
|
17
|
+
type: PropType<DialogBoxParameters>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
active: BooleanConstructor;
|
|
21
|
+
}, unknown, {
|
|
22
|
+
playerText: string;
|
|
23
|
+
passed: boolean;
|
|
24
|
+
listener: any;
|
|
25
|
+
timeout: any;
|
|
26
|
+
textAnimation: TextAnimation | null;
|
|
27
|
+
mounted: boolean;
|
|
28
|
+
autoTimer: NodeJS.Timer | null;
|
|
29
|
+
skipTimer: NodeJS.Timer | null;
|
|
30
|
+
nextLineTimer: NodeJS.Timer | null;
|
|
31
|
+
}, {
|
|
32
|
+
preText(): string;
|
|
33
|
+
style(): DialogStyle;
|
|
34
|
+
dialogBoxStyle(): any;
|
|
35
|
+
isBasicChoice(): boolean;
|
|
36
|
+
dialogBoxClass(): false | "dialog-box-followup";
|
|
37
|
+
titleStyle(): any;
|
|
38
|
+
textStyle(): any;
|
|
39
|
+
text(): string;
|
|
40
|
+
choices(): DialogChoice[] | undefined;
|
|
41
|
+
skipping(): boolean;
|
|
42
|
+
canInteract(): boolean;
|
|
43
|
+
paused: () => boolean;
|
|
44
|
+
}, {
|
|
45
|
+
clearListeners(): void;
|
|
46
|
+
next(): void;
|
|
47
|
+
chooseOption(choice: DialogChoice | number): void;
|
|
48
|
+
finishLine(): void;
|
|
49
|
+
dialogStyle(choice: DialogChoice): any;
|
|
50
|
+
dialogClass(choice: DialogChoice): "strike-anim" | undefined;
|
|
51
|
+
submitText(): void;
|
|
52
|
+
addTextSection(start: number, end: number): number;
|
|
53
|
+
addHtmlTag(tag: RegExpExecArray): number;
|
|
54
|
+
startTextAnimation(): void;
|
|
55
|
+
startSkip(): void;
|
|
56
|
+
updateTextAnimation(): void;
|
|
57
|
+
endTextAnimation({ unmounted, pressedSpace, }?: {
|
|
58
|
+
unmounted?: boolean | undefined;
|
|
59
|
+
pressedSpace?: boolean | undefined;
|
|
60
|
+
}): void;
|
|
61
|
+
registerKeyboardShortcuts(): void;
|
|
62
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
+
options: {
|
|
64
|
+
type: PropType<DialogBoxParameters>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
active: BooleanConstructor;
|
|
68
|
+
}>>, {
|
|
69
|
+
active: boolean;
|
|
70
|
+
}>;
|
|
71
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ModalWindow from '../components/utils/modal-window.vue';
|
|
2
|
-
export { ModalWindow };
|
|
1
|
+
import ModalWindow from '../components/utils/modal-window.vue';
|
|
2
|
+
export { ModalWindow };
|
package/dist/exports/config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getConfig } from '../config';
|
|
1
|
+
export { getConfig } from '../config';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { aspectRatioFit } from '../utils/helpers';
|
|
2
|
-
export { aspectRatioFit };
|
|
1
|
+
import { aspectRatioFit } from '../utils/helpers';
|
|
2
|
+
export { aspectRatioFit };
|
package/dist/exports/events.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { inputEvents } from '../utils/InputsListener';
|
|
1
|
+
export { inputEvents } from '../utils/InputsListener';
|
package/dist/exports/others.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { registerMenuButton } from '../menu-buttons/menu-buttons';
|
|
1
|
+
export { registerMenuButton } from '../menu-buttons/menu-buttons';
|