narrat 3.3.7 → 3.4.0
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/README.md +1 -1
- package/dist/components/achievements/achievements-ui.vue.d.ts +2 -1
- package/dist/components/dialog-picture.vue.d.ts +18 -2
- package/dist/components/quests-ui.vue.d.ts +2 -0
- package/dist/components/utils/floating-tooltip.vue.d.ts +35 -0
- package/dist/config/achievements-config.d.ts +8 -4
- package/dist/config/animations-config.d.ts +64 -0
- package/dist/config/characters-config.d.ts +3 -0
- package/dist/config/choices-config.d.ts +28 -0
- package/dist/config/common-config.d.ts +2 -0
- package/dist/config/config-input.d.ts +23 -0
- package/dist/config/config-output.d.ts +69 -19
- package/dist/config/quests-config.d.ts +26 -0
- package/dist/config/tooltips-config.d.ts +16 -0
- package/dist/config.d.ts +88 -20
- package/dist/exports/others.d.ts +1 -0
- package/dist/exports/utils.d.ts +1 -0
- package/dist/inputs/Inputs.d.ts +9 -1
- package/dist/main.d.ts +2 -0
- package/dist/narrat.es.js +19245 -18535
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +143 -128
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/choices-tracking-store.d.ts +12 -0
- package/dist/stores/dialog-store.d.ts +2 -0
- package/dist/stores/inputs-store.d.ts +3 -1
- package/dist/stores/inventory-store.d.ts +1 -0
- package/dist/stores/main-store.d.ts +5094 -212
- package/dist/stores/quest-log.d.ts +9 -1
- package/dist/stores/rendering-store.d.ts +13 -0
- package/dist/stores/tooltip-store.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/types/app-types.d.ts +5 -0
- package/dist/types/game-save.d.ts +4 -0
- package/dist/utils/animation.d.ts +8 -0
- package/dist/utils/data-helpers.d.ts +332 -2
- package/dist/utils/interact-utils.d.ts +15 -0
- package/dist/utils/save-helpers.d.ts +1 -1
- package/dist/utils/string-helpers.d.ts +2 -1
- package/dist/vm/commands/choice.d.ts +5 -0
- package/dist/vm/commands/quest-commands.d.ts +14 -1
- package/dist/vm/commands/util-commands.d.ts +13 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ export interface ChoicePromptOptions {
|
|
|
25
25
|
}
|
|
26
26
|
export interface ChoicePromptReturnValue {
|
|
27
27
|
text: string | null;
|
|
28
|
+
flag?: string;
|
|
28
29
|
skillCheck?: {
|
|
29
30
|
allowed?: boolean;
|
|
30
31
|
options: SkillCheckParams;
|
|
@@ -33,3 +34,7 @@ export interface ChoicePromptReturnValue {
|
|
|
33
34
|
export type ChoicePromptReturn = ChoicePromptReturnValue;
|
|
34
35
|
/** Custom "fake" instruction generated on choice prompts to process their optional conditions */
|
|
35
36
|
export declare const choicePromptCommandPlugin: CommandPlugin<ChoicePromptOptions, {}>;
|
|
37
|
+
export declare function processTextOnlyChoice(choice: string): ChoicePromptReturn;
|
|
38
|
+
export declare function processTextWithChoiceFlag(args: Parser.Arg[]): ChoicePromptReturn;
|
|
39
|
+
export declare function processChoiceWithCondition(cmd: Parser.Command<ChoicePromptOptions>, args: Parser.Arg[]): ChoicePromptReturnValue;
|
|
40
|
+
export declare function processChoiceWithSkillCheck(cmd: Parser.Command<ChoicePromptOptions>, args: Parser.Arg[]): ChoicePromptReturn;
|
|
@@ -12,11 +12,24 @@ export declare const completeObjectivePlugin: CommandPlugin<{
|
|
|
12
12
|
}, {}>;
|
|
13
13
|
export declare const completeQuestPlugin: CommandPlugin<{
|
|
14
14
|
questId: string;
|
|
15
|
-
ending?: string | undefined;
|
|
15
|
+
ending?: string | boolean | undefined;
|
|
16
16
|
}, {}>;
|
|
17
17
|
export declare const questCompletedPlugin: CommandPlugin<{
|
|
18
18
|
questId: string;
|
|
19
19
|
}, {}>;
|
|
20
|
+
export declare const questSucceededPlugin: CommandPlugin<{
|
|
21
|
+
questId: string;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export declare const questFailedPlugin: CommandPlugin<{
|
|
24
|
+
questId: string;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export declare const getQuestEnding: CommandPlugin<{
|
|
27
|
+
questId: string;
|
|
28
|
+
}, {}>;
|
|
29
|
+
export declare const questHasEnding: CommandPlugin<{
|
|
30
|
+
questId: string;
|
|
31
|
+
ending: string;
|
|
32
|
+
}, {}>;
|
|
20
33
|
export declare const objectiveCompletedPlugin: CommandPlugin<{
|
|
21
34
|
questId: string;
|
|
22
35
|
objectiveId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
1
|
+
import { ArgTypes, CommandPlugin } from './command-plugin';
|
|
2
2
|
export declare const loadDataPlugin: CommandPlugin<{
|
|
3
3
|
url: string;
|
|
4
4
|
}, {}>;
|
|
@@ -14,3 +14,15 @@ export declare const jsonEncode: CommandPlugin<{
|
|
|
14
14
|
export declare const jsonDecode: CommandPlugin<{
|
|
15
15
|
value: string;
|
|
16
16
|
}, {}>;
|
|
17
|
+
export declare const setDialogPanelMode: CommandPlugin<{
|
|
18
|
+
mode: 'auto' | 'on' | 'off';
|
|
19
|
+
}, {}>;
|
|
20
|
+
export interface AnimationOptions {
|
|
21
|
+
element: string;
|
|
22
|
+
animation: string;
|
|
23
|
+
duration?: number;
|
|
24
|
+
iterations?: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const animationArgs: ArgTypes;
|
|
27
|
+
export declare const animatePlugin: CommandPlugin<AnimationOptions, {}>;
|
|
28
|
+
export declare const animateWaitPlugin: CommandPlugin<AnimationOptions, {}>;
|