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.
- package/LICENSE +21 -21
- package/dist/app.vue.d.ts +91 -94
- package/dist/components/MainMenu.vue.d.ts +12 -12
- package/dist/components/Skills.vue.d.ts +22 -22
- package/dist/components/StartMenu.vue.d.ts +46 -46
- package/dist/components/debug/debug-menu.vue.d.ts +48 -48
- package/dist/components/dialog-picture.vue.d.ts +11 -9
- 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-ui.vue.d.ts +30 -30
- package/dist/components/loading-bar.vue.d.ts +10 -10
- package/dist/components/menu-buttons.vue.d.ts +26 -26
- package/dist/components/notification-toast.vue.d.ts +6 -6
- package/dist/components/quests-ui.vue.d.ts +20 -20
- package/dist/components/save-slots.vue.d.ts +79 -79
- package/dist/components/saves/save-slot.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/transitions/NarratTransition.vue.d.ts +101 -101
- package/dist/components/utils/alert-modal.vue.d.ts +82 -82
- package/dist/components/utils/modal.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 +182 -181
- package/dist/constants.d.ts +8 -8
- package/dist/defaultConfig.d.ts +2 -2
- package/dist/demo/demo.d.ts +1 -1
- package/dist/dialog-box.vue.d.ts +41 -41
- package/dist/exports/config.d.ts +1 -1
- package/dist/exports/display.d.ts +2 -2
- package/dist/exports/plugins.d.ts +20 -20
- package/dist/favicon.svg +30 -30
- package/dist/lib.d.ts +14 -14
- package/dist/main.d.ts +6 -6
- package/dist/narrat.es.js +1010 -993
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +39 -39
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +11 -11
- package/dist/stores/audio-store.d.ts +48 -48
- package/dist/stores/dialog-store.d.ts +32 -32
- package/dist/stores/hud-stats-store.d.ts +22 -22
- package/dist/stores/inventory-store.d.ts +37 -37
- package/dist/stores/main-store.d.ts +813 -822
- 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 +13 -13
- package/dist/stores/screens-store.d.ts +35 -35
- package/dist/stores/skills.d.ts +40 -40
- package/dist/stores/vm-store.d.ts +180 -180
- package/dist/style.css +1 -1
- package/dist/types/app-types.d.ts +9 -5
- 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 +36 -36
- 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 +1 -1
- package/dist/utils/audio-loader.d.ts +10 -10
- package/dist/utils/characters.d.ts +5 -5
- package/dist/utils/data-helpers.d.ts +28 -25
- package/dist/utils/debounce.d.ts +14 -14
- package/dist/utils/error-handling.d.ts +3 -3
- package/dist/utils/helpers.d.ts +6 -6
- package/dist/utils/images-loader.d.ts +6 -6
- 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 +18 -18
- package/dist/utils/skillchecks.d.ts +17 -17
- package/dist/utils/string-helpers.d.ts +3 -3
- package/dist/utils/time-helpers.d.ts +2 -2
- package/dist/utils/transition.d.ts +15 -15
- package/dist/utils/type-utils.d.ts +1 -1
- package/dist/utils/typed-emitter.d.ts +18 -18
- 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 +37 -37
- 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 +15 -15
- package/dist/vm/commands/set.d.ts +6 -6
- package/dist/vm/commands/skill-commands.d.ts +30 -30
- 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 +18 -18
- 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 +18 -18
- package/package.json +8 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AudioModeKey } from '../stores/audio-store';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
3
|
-
muted: boolean;
|
|
4
|
-
volumes: {
|
|
5
|
-
mode: 'master' | AudioModeKey;
|
|
6
|
-
volume: number;
|
|
7
|
-
}[];
|
|
8
|
-
modeNames: {
|
|
9
|
-
master: string;
|
|
10
|
-
music: string;
|
|
11
|
-
ambiant: string;
|
|
12
|
-
sound: string;
|
|
13
|
-
};
|
|
14
|
-
}, {}, {
|
|
15
|
-
changeVolume(mode: 'master' | AudioModeKey, event: Event): void;
|
|
16
|
-
toggleMute(): void;
|
|
17
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
|
-
export default _default;
|
|
1
|
+
import { AudioModeKey } from '../stores/audio-store';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
3
|
+
muted: boolean;
|
|
4
|
+
volumes: {
|
|
5
|
+
mode: 'master' | AudioModeKey;
|
|
6
|
+
volume: number;
|
|
7
|
+
}[];
|
|
8
|
+
modeNames: {
|
|
9
|
+
master: string;
|
|
10
|
+
music: string;
|
|
11
|
+
ambiant: string;
|
|
12
|
+
sound: string;
|
|
13
|
+
};
|
|
14
|
+
}, {}, {
|
|
15
|
+
changeVolume(mode: 'master' | AudioModeKey, event: Event): void;
|
|
16
|
+
toggleMute(): void;
|
|
17
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
|
+
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,181 +1,182 @@
|
|
|
1
|
-
import { TransitionSettings } from './utils/transition';
|
|
2
|
-
export declare function setConfig(conf: Config): void;
|
|
3
|
-
export declare function getConfig(): Config;
|
|
4
|
-
export declare function getSkillConfig(id: string): SkillData;
|
|
5
|
-
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
6
|
-
export declare function getAssetUrl(assetPath: string): string;
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
logging: boolean;
|
|
14
|
-
debug: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface Config {
|
|
17
|
-
baseAssetsPath?: string;
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
1
|
+
import { TransitionSettings } from './utils/transition';
|
|
2
|
+
export declare function setConfig(conf: Config): void;
|
|
3
|
+
export declare function getConfig(): Config;
|
|
4
|
+
export declare function getSkillConfig(id: string): SkillData;
|
|
5
|
+
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
6
|
+
export declare function getAssetUrl(assetPath: string): string;
|
|
7
|
+
export declare function getDataUrl(dataPath: string): string;
|
|
8
|
+
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
9
|
+
export declare function getItemConfig(id: string): ItemData;
|
|
10
|
+
export declare function getQuestConfig(questId: string): QuestData;
|
|
11
|
+
export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
|
|
12
|
+
export interface AppOptionsDeprecated {
|
|
13
|
+
logging: boolean;
|
|
14
|
+
debug: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface Config {
|
|
17
|
+
baseAssetsPath?: string;
|
|
18
|
+
baseDataPath?: string;
|
|
19
|
+
gameTitle: string;
|
|
20
|
+
images: {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
layout: {
|
|
24
|
+
backgrounds: {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
dialogBottomPadding: number;
|
|
29
|
+
minTextWidth: number;
|
|
30
|
+
mobileDialogHeightPercentage: number;
|
|
31
|
+
verticalLayoutThreshold: number;
|
|
32
|
+
portraits: {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
gameFlow: {
|
|
38
|
+
labelToJumpOnScriptEnd?: string;
|
|
39
|
+
};
|
|
40
|
+
screens: {
|
|
41
|
+
[key: string]: ScreenConfig;
|
|
42
|
+
};
|
|
43
|
+
buttons: {
|
|
44
|
+
[key: string]: ButtonConfig;
|
|
45
|
+
};
|
|
46
|
+
skills: {
|
|
47
|
+
[key: string]: SkillData;
|
|
48
|
+
};
|
|
49
|
+
skillOptions: {
|
|
50
|
+
xpPerLevel: number;
|
|
51
|
+
notifyLevelUp: boolean;
|
|
52
|
+
};
|
|
53
|
+
skillChecks: {
|
|
54
|
+
rollRange: number;
|
|
55
|
+
skillMultiplier: number;
|
|
56
|
+
failureChance: number;
|
|
57
|
+
difficultyText: Array<[number, string]>;
|
|
58
|
+
};
|
|
59
|
+
scripts: string[];
|
|
60
|
+
audio: {
|
|
61
|
+
[key: string]: AudioConfig;
|
|
62
|
+
};
|
|
63
|
+
audioOptions: {
|
|
64
|
+
volume: number;
|
|
65
|
+
defaultMusic?: string;
|
|
66
|
+
musicFadeInTime: number;
|
|
67
|
+
musicFadeInDelay: number;
|
|
68
|
+
musicFadeOutTime: number;
|
|
69
|
+
};
|
|
70
|
+
sound?: {
|
|
71
|
+
[key: string]: AudioConfig;
|
|
72
|
+
};
|
|
73
|
+
music?: {
|
|
74
|
+
[key: string]: AudioConfig;
|
|
75
|
+
};
|
|
76
|
+
notifications: {
|
|
77
|
+
timeOnScreen: number;
|
|
78
|
+
alsoPrintInDialogue?: boolean;
|
|
79
|
+
};
|
|
80
|
+
hudStats: {
|
|
81
|
+
[key: string]: HudStatConfig;
|
|
82
|
+
};
|
|
83
|
+
items: {
|
|
84
|
+
[key: string]: ItemData;
|
|
85
|
+
};
|
|
86
|
+
interactionTags: {
|
|
87
|
+
[key: string]: {
|
|
88
|
+
onlyInteractOutsideOfScripts: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
quests: {
|
|
92
|
+
[key: string]: QuestData;
|
|
93
|
+
};
|
|
94
|
+
transitions: {
|
|
95
|
+
[key: string]: TransitionSettings;
|
|
96
|
+
};
|
|
97
|
+
audioTriggers: {
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
};
|
|
100
|
+
menuButtons: {
|
|
101
|
+
[key: string]: MenuButtonData;
|
|
102
|
+
};
|
|
103
|
+
debugging: {
|
|
104
|
+
showScriptFinishedMessage?: boolean;
|
|
105
|
+
};
|
|
106
|
+
saves: {
|
|
107
|
+
mode: 'game-slots' | 'manual';
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export interface ScreenConfig {
|
|
111
|
+
background: string;
|
|
112
|
+
buttons: Array<string | InlineButtonConfig>;
|
|
113
|
+
}
|
|
114
|
+
export interface MenuButtonData {
|
|
115
|
+
text: string;
|
|
116
|
+
}
|
|
117
|
+
export interface QuestData {
|
|
118
|
+
title: string;
|
|
119
|
+
description: string;
|
|
120
|
+
objectives: {
|
|
121
|
+
[key: string]: ObjectiveData;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export interface ObjectiveData {
|
|
125
|
+
description: string;
|
|
126
|
+
hidden?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface ItemData {
|
|
129
|
+
name: string;
|
|
130
|
+
description: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
onUse?: {
|
|
133
|
+
action: 'jump' | 'run';
|
|
134
|
+
label: string;
|
|
135
|
+
};
|
|
136
|
+
tag?: string;
|
|
137
|
+
}
|
|
138
|
+
export interface HudStatConfig {
|
|
139
|
+
name: string;
|
|
140
|
+
icon: string;
|
|
141
|
+
startingValue: number;
|
|
142
|
+
minValue?: number;
|
|
143
|
+
maxValue?: number;
|
|
144
|
+
}
|
|
145
|
+
export interface AudioConfig {
|
|
146
|
+
src: string;
|
|
147
|
+
path?: string;
|
|
148
|
+
volume?: number;
|
|
149
|
+
rate?: number;
|
|
150
|
+
html5?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface MusicConfig extends AudioConfig {
|
|
153
|
+
loop?: boolean;
|
|
154
|
+
}
|
|
155
|
+
export interface ButtonConfig {
|
|
156
|
+
enabled: boolean;
|
|
157
|
+
background?: string;
|
|
158
|
+
text?: string;
|
|
159
|
+
position: {
|
|
160
|
+
left: number;
|
|
161
|
+
top: number;
|
|
162
|
+
width?: number;
|
|
163
|
+
height?: number;
|
|
164
|
+
};
|
|
165
|
+
anchor?: {
|
|
166
|
+
x: number;
|
|
167
|
+
y: number;
|
|
168
|
+
};
|
|
169
|
+
action: string;
|
|
170
|
+
actionType?: 'jump' | 'run';
|
|
171
|
+
tag?: string;
|
|
172
|
+
}
|
|
173
|
+
export interface InlineButtonConfig extends ButtonConfig {
|
|
174
|
+
id: string;
|
|
175
|
+
}
|
|
176
|
+
export interface SkillData {
|
|
177
|
+
name: string;
|
|
178
|
+
description: string;
|
|
179
|
+
startingLevel: number;
|
|
180
|
+
hidden?: boolean;
|
|
181
|
+
icon: string;
|
|
182
|
+
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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;
|
|
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;
|
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,41 +1,41 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { DialogChoice } from './stores/dialog-store';
|
|
3
|
-
import { DialogStyle } from './types/character-types';
|
|
4
|
-
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
|
6
|
-
options: {
|
|
7
|
-
type: PropType<DialogBoxParameters>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
active: BooleanConstructor;
|
|
11
|
-
}, unknown, {
|
|
12
|
-
playerText: string;
|
|
13
|
-
passed: boolean;
|
|
14
|
-
listener: any;
|
|
15
|
-
timeout: any;
|
|
16
|
-
}, {
|
|
17
|
-
preText(): string;
|
|
18
|
-
style(): DialogStyle;
|
|
19
|
-
dialogBoxStyle(): any;
|
|
20
|
-
titleStyle(): any;
|
|
21
|
-
textStyle(): any;
|
|
22
|
-
choices(): DialogChoice[] | undefined;
|
|
23
|
-
canInteract(): boolean;
|
|
24
|
-
paused: () => boolean;
|
|
25
|
-
}, {
|
|
26
|
-
clearListeners(): void;
|
|
27
|
-
chooseOption(choice: DialogChoice | number): void;
|
|
28
|
-
finishLine(): void;
|
|
29
|
-
dialogStyle(choice: DialogChoice): any;
|
|
30
|
-
dialogClass(choice: DialogChoice): "strike-anim" | undefined;
|
|
31
|
-
submitText(): void;
|
|
32
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
options: {
|
|
34
|
-
type: PropType<DialogBoxParameters>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
active: BooleanConstructor;
|
|
38
|
-
}>>, {
|
|
39
|
-
active: boolean;
|
|
40
|
-
}>;
|
|
41
|
-
export default _default;
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DialogChoice } from './stores/dialog-store';
|
|
3
|
+
import { DialogStyle } from './types/character-types';
|
|
4
|
+
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
options: {
|
|
7
|
+
type: PropType<DialogBoxParameters>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
active: BooleanConstructor;
|
|
11
|
+
}, unknown, {
|
|
12
|
+
playerText: string;
|
|
13
|
+
passed: boolean;
|
|
14
|
+
listener: any;
|
|
15
|
+
timeout: any;
|
|
16
|
+
}, {
|
|
17
|
+
preText(): string;
|
|
18
|
+
style(): DialogStyle;
|
|
19
|
+
dialogBoxStyle(): any;
|
|
20
|
+
titleStyle(): any;
|
|
21
|
+
textStyle(): any;
|
|
22
|
+
choices(): DialogChoice[] | undefined;
|
|
23
|
+
canInteract(): boolean;
|
|
24
|
+
paused: () => boolean;
|
|
25
|
+
}, {
|
|
26
|
+
clearListeners(): void;
|
|
27
|
+
chooseOption(choice: DialogChoice | number): void;
|
|
28
|
+
finishLine(): void;
|
|
29
|
+
dialogStyle(choice: DialogChoice): any;
|
|
30
|
+
dialogClass(choice: DialogChoice): "strike-anim" | undefined;
|
|
31
|
+
submitText(): void;
|
|
32
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
options: {
|
|
34
|
+
type: PropType<DialogBoxParameters>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
active: BooleanConstructor;
|
|
38
|
+
}>>, {
|
|
39
|
+
active: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|
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 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { NarratPlugin } from '../plugins/NarratPlugin';
|
|
2
|
-
import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
|
|
3
|
-
import type { CommandRunner } from '../vm/commands/command-plugin';
|
|
4
|
-
export declare type NarratLifecycleHook = <T extends [...any[]]>(...args: T) => void;
|
|
5
|
-
declare type NarratPluginObject<T> = {
|
|
6
|
-
onPageLoaded?: NarratLifecycleHook;
|
|
7
|
-
onNarratSetup?: NarratLifecycleHook;
|
|
8
|
-
onAppMounted?: NarratLifecycleHook;
|
|
9
|
-
onAssetsLoaded?: NarratLifecycleHook;
|
|
10
|
-
onGameSetup?: NarratLifecycleHook;
|
|
11
|
-
onGameStart?: NarratLifecycleHook;
|
|
12
|
-
onGameMounted?: NarratLifecycleHook;
|
|
13
|
-
onGameUnmounted?: NarratLifecycleHook;
|
|
14
|
-
customCommands?: CommandPlugin<T>[];
|
|
15
|
-
};
|
|
16
|
-
declare function registerPlugin<T>(plugin: NarratPluginObject<T>): void;
|
|
17
|
-
declare function addCommand<T>(command: CommandPlugin<T>): void;
|
|
18
|
-
export { CommandRunner };
|
|
19
|
-
export { CommandPlugin, NarratPlugin, registerPlugin, addCommand, generateParser, };
|
|
20
|
-
export type { NarratPluginObject };
|
|
1
|
+
import { NarratPlugin } from '../plugins/NarratPlugin';
|
|
2
|
+
import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
|
|
3
|
+
import type { CommandRunner } from '../vm/commands/command-plugin';
|
|
4
|
+
export declare type NarratLifecycleHook = <T extends [...any[]]>(...args: T) => void;
|
|
5
|
+
declare type NarratPluginObject<T> = {
|
|
6
|
+
onPageLoaded?: NarratLifecycleHook;
|
|
7
|
+
onNarratSetup?: NarratLifecycleHook;
|
|
8
|
+
onAppMounted?: NarratLifecycleHook;
|
|
9
|
+
onAssetsLoaded?: NarratLifecycleHook;
|
|
10
|
+
onGameSetup?: NarratLifecycleHook;
|
|
11
|
+
onGameStart?: NarratLifecycleHook;
|
|
12
|
+
onGameMounted?: NarratLifecycleHook;
|
|
13
|
+
onGameUnmounted?: NarratLifecycleHook;
|
|
14
|
+
customCommands?: CommandPlugin<T>[];
|
|
15
|
+
};
|
|
16
|
+
declare function registerPlugin<T>(plugin: NarratPluginObject<T>): void;
|
|
17
|
+
declare function addCommand<T>(command: CommandPlugin<T>): void;
|
|
18
|
+
export { CommandRunner };
|
|
19
|
+
export { CommandPlugin, NarratPlugin, registerPlugin, addCommand, generateParser, };
|
|
20
|
+
export type { NarratPluginObject };
|
package/dist/favicon.svg
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" id="Rat" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 595.3 595.3" style="enable-background:new 0 0 595.3 595.3;" xml:space="preserve">
|
|
5
|
-
<style type="text/css">
|
|
6
|
-
.st0{fill:#E23B33;}
|
|
7
|
-
</style>
|
|
8
|
-
<path id="Rat_Shape" class="st0" d="M556.9,82.5c-10.8-24.3-47-57.1-71.3-65.6c-24.3-8.4-64.1-0.3-88.7,22.3
|
|
9
|
-
c-20,18.4-26,28.2-29.1,37c-2.1,5.9-4.8,13.5-6,20.9v0c-0.5,4.1-4.5,7-8.6,6.1c-10.4-2.3-29.5-6-44.4-6.3
|
|
10
|
-
c-13.7-0.2-30.1,3.2-40.4,5.7c-4.5,1.1-8.8-2.2-8.8-6.8c-0.1-5.3-1.1-12.3-4.8-19.6c-8.5-16.9-19.6-32.6-57.8-47.4
|
|
11
|
-
c-31.9-12.4-75.1-9.7-100.8,1.8c-28.1,12.6-42.4,37.9-54,61.8c-14.4,29.8-14.9,83.6-6.4,104c12.8,30.7,35.8,47.2,52.6,53
|
|
12
|
-
c11.3,3.8,28.2,3.7,38.2,3.3c4.2-0.2,7.7,3.3,7.5,7.5c-0.7,13.6-0.9,41.5,7,61.4c7.7,19.4,29.7,62.3,50.7,101.2
|
|
13
|
-
c0,0.1-14.6,2.9-31.4,6.8c-23.9,5.5-52.6,12.7-54.3,13.7c-3.5,2.1-3,10-2.7,12c0.5,3.4,5.3,8.1,6.9,8.3c3.9,0.3,31.3-7.6,55.7-14.6
|
|
14
|
-
c18.5-5.3,34.9-9.3,35.5-8.2c5.1,9.3,10,18,14.4,25.8c5.2,9.1,10.7,16.4,14.1,23.6c1.1,2.3-16.6,5.8-32.5,14.7
|
|
15
|
-
c-16.4,9.1-29.7,21-32.3,24c-1.8,2.1-3,6-1.2,10.7c1.1,2.9,10,5.7,12.4,5.1c6.8-1.7,16.5-12.5,33.1-21.1
|
|
16
|
-
c16.3-8.5,32.9-14.9,33.8-13.6c9.7,14.3,16.9,21.6,22.6,31.2c9.8,16.5,27.3,45.9,46.6,39.5c6.4-2.1,31.1-33.6,53.3-68.6
|
|
17
|
-
c1.3-2.1,16.1,11.3,30.4,23.2c13.8,11.4,22.7,20.6,27.1,21.4c5.4,1,14.2-7.7,14.1-14.7c-0.1-2.7-14.3-13.8-29.1-26.2
|
|
18
|
-
c-14.5-12.1-30.1-22.8-29.2-24.3c7.6-12,14.5-23.7,20.1-33.9c4.3-7.8,8.9-16,13-24.7c0.6-1.2,15.9,3,31.4,7.1c15.3,4,26.7,10,31,8
|
|
19
|
-
c6.9-3,11.6-13.8,9.4-18.3c-1.1-2.3-17-7.3-33.2-12c-14.2-4.1-28-6.5-27.7-7.3c15.5-34,28.8-64.8,27.6-69.6
|
|
20
|
-
c-1.7-7.1,2.6-11.9,7-36.5c3.2-18.1,4.7-40.9,5.2-51.7c0.2-3.5,2.8-6.3,6.3-6.7c3.1-0.3,6.9-0.9,10.5-1.9c7.8-2,18.6-7.8,36.4-20.6
|
|
21
|
-
c17.9-12.8,38.7-49.6,44.4-67.8S567.6,106.8,556.9,82.5z M265.1,336.2c-8.1,4-13,7-26.4,9.6c-6.9,1.4-29.4-0.2-40.7-4.6
|
|
22
|
-
c-10.5-4.1-19.9-7.6-30-15.4s-15.7-13.2-15.7-15.3c0-4.4,6-9.4,11-9.4c5.1,0,14.5,9.2,29.7,16.6c14.3,7,17.9,6.1,25.4,7.3
|
|
23
|
-
c2.9,0.5,7.7,0.6,10.7,0.4c14.1-1.3,21.4-5.9,25.3-8.8c4-3,13.7-12.9,17.2-12.5c8,1,18.9,3.4,18.9,7.1
|
|
24
|
-
C290.4,319,273.2,332.1,265.1,336.2z M320.9,521.4c-4.3,3.7-17.7,13.5-23.3,13.5c-2.8,0-7.4-8.2-11.5-16.8
|
|
25
|
-
c-4.1-8.5-9.1-21.1-9.1-31.6c0-4.6,6-7.4,13.4-9.2c7.2-1.7,27.3-1.8,29.9-1.1c6.8,1.7,12.9,2.2,12.7,6.4c-0.4,12.7-7,18.9-8.3,24.3
|
|
26
|
-
C323.4,512.3,323.4,519.2,320.9,521.4z M431.1,320.3c-9.2,7.4-10.6,8.1-24.9,13.7c-11.3,4.4-28.6,5.8-41.6,3.6
|
|
27
|
-
c-12.2-2.1-22.3-4.6-29.5-10.1c-9.7-7.3-16.4-15.1-16.4-19.8c0-3.7,6.4-4.3,14.5-4.9c3.5-0.3,9.3,5.9,13.2,9.2
|
|
28
|
-
c8.1,6.8,14.8,8,28.8,9.9c2.9,0.4,7.8,0.4,10.7,0.1c7.5-0.9,12-0.4,25.8-8.2c20-11.2,17.8-14.4,25.1-12.6c2.2,0.6,5.8,1.2,5.6,5.6
|
|
29
|
-
C442.4,309,440.5,312.7,431.1,320.3z"/>
|
|
30
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Rat" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 595.3 595.3" style="enable-background:new 0 0 595.3 595.3;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#E23B33;}
|
|
7
|
+
</style>
|
|
8
|
+
<path id="Rat_Shape" class="st0" d="M556.9,82.5c-10.8-24.3-47-57.1-71.3-65.6c-24.3-8.4-64.1-0.3-88.7,22.3
|
|
9
|
+
c-20,18.4-26,28.2-29.1,37c-2.1,5.9-4.8,13.5-6,20.9v0c-0.5,4.1-4.5,7-8.6,6.1c-10.4-2.3-29.5-6-44.4-6.3
|
|
10
|
+
c-13.7-0.2-30.1,3.2-40.4,5.7c-4.5,1.1-8.8-2.2-8.8-6.8c-0.1-5.3-1.1-12.3-4.8-19.6c-8.5-16.9-19.6-32.6-57.8-47.4
|
|
11
|
+
c-31.9-12.4-75.1-9.7-100.8,1.8c-28.1,12.6-42.4,37.9-54,61.8c-14.4,29.8-14.9,83.6-6.4,104c12.8,30.7,35.8,47.2,52.6,53
|
|
12
|
+
c11.3,3.8,28.2,3.7,38.2,3.3c4.2-0.2,7.7,3.3,7.5,7.5c-0.7,13.6-0.9,41.5,7,61.4c7.7,19.4,29.7,62.3,50.7,101.2
|
|
13
|
+
c0,0.1-14.6,2.9-31.4,6.8c-23.9,5.5-52.6,12.7-54.3,13.7c-3.5,2.1-3,10-2.7,12c0.5,3.4,5.3,8.1,6.9,8.3c3.9,0.3,31.3-7.6,55.7-14.6
|
|
14
|
+
c18.5-5.3,34.9-9.3,35.5-8.2c5.1,9.3,10,18,14.4,25.8c5.2,9.1,10.7,16.4,14.1,23.6c1.1,2.3-16.6,5.8-32.5,14.7
|
|
15
|
+
c-16.4,9.1-29.7,21-32.3,24c-1.8,2.1-3,6-1.2,10.7c1.1,2.9,10,5.7,12.4,5.1c6.8-1.7,16.5-12.5,33.1-21.1
|
|
16
|
+
c16.3-8.5,32.9-14.9,33.8-13.6c9.7,14.3,16.9,21.6,22.6,31.2c9.8,16.5,27.3,45.9,46.6,39.5c6.4-2.1,31.1-33.6,53.3-68.6
|
|
17
|
+
c1.3-2.1,16.1,11.3,30.4,23.2c13.8,11.4,22.7,20.6,27.1,21.4c5.4,1,14.2-7.7,14.1-14.7c-0.1-2.7-14.3-13.8-29.1-26.2
|
|
18
|
+
c-14.5-12.1-30.1-22.8-29.2-24.3c7.6-12,14.5-23.7,20.1-33.9c4.3-7.8,8.9-16,13-24.7c0.6-1.2,15.9,3,31.4,7.1c15.3,4,26.7,10,31,8
|
|
19
|
+
c6.9-3,11.6-13.8,9.4-18.3c-1.1-2.3-17-7.3-33.2-12c-14.2-4.1-28-6.5-27.7-7.3c15.5-34,28.8-64.8,27.6-69.6
|
|
20
|
+
c-1.7-7.1,2.6-11.9,7-36.5c3.2-18.1,4.7-40.9,5.2-51.7c0.2-3.5,2.8-6.3,6.3-6.7c3.1-0.3,6.9-0.9,10.5-1.9c7.8-2,18.6-7.8,36.4-20.6
|
|
21
|
+
c17.9-12.8,38.7-49.6,44.4-67.8S567.6,106.8,556.9,82.5z M265.1,336.2c-8.1,4-13,7-26.4,9.6c-6.9,1.4-29.4-0.2-40.7-4.6
|
|
22
|
+
c-10.5-4.1-19.9-7.6-30-15.4s-15.7-13.2-15.7-15.3c0-4.4,6-9.4,11-9.4c5.1,0,14.5,9.2,29.7,16.6c14.3,7,17.9,6.1,25.4,7.3
|
|
23
|
+
c2.9,0.5,7.7,0.6,10.7,0.4c14.1-1.3,21.4-5.9,25.3-8.8c4-3,13.7-12.9,17.2-12.5c8,1,18.9,3.4,18.9,7.1
|
|
24
|
+
C290.4,319,273.2,332.1,265.1,336.2z M320.9,521.4c-4.3,3.7-17.7,13.5-23.3,13.5c-2.8,0-7.4-8.2-11.5-16.8
|
|
25
|
+
c-4.1-8.5-9.1-21.1-9.1-31.6c0-4.6,6-7.4,13.4-9.2c7.2-1.7,27.3-1.8,29.9-1.1c6.8,1.7,12.9,2.2,12.7,6.4c-0.4,12.7-7,18.9-8.3,24.3
|
|
26
|
+
C323.4,512.3,323.4,519.2,320.9,521.4z M431.1,320.3c-9.2,7.4-10.6,8.1-24.9,13.7c-11.3,4.4-28.6,5.8-41.6,3.6
|
|
27
|
+
c-12.2-2.1-22.3-4.6-29.5-10.1c-9.7-7.3-16.4-15.1-16.4-19.8c0-3.7,6.4-4.3,14.5-4.9c3.5-0.3,9.3,5.9,13.2,9.2
|
|
28
|
+
c8.1,6.8,14.8,8,28.8,9.9c2.9,0.4,7.8,0.4,10.7,0.1c7.5-0.9,12-0.4,25.8-8.2c20-11.2,17.8-14.4,25.1-12.6c2.2,0.6,5.8,1.2,5.6,5.6
|
|
29
|
+
C442.4,309,440.5,312.7,431.1,320.3z"/>
|
|
30
|
+
</svg>
|