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.
- package/CHANGELOG.md +1081 -0
- package/LICENSE +21 -21
- package/README.md +120 -120
- package/dist/.DS_Store +0 -0
- package/dist/app.vue.d.ts +92 -92
- 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 +9 -9
- package/dist/components/game-dialog.vue.d.ts +65 -65
- package/dist/components/hud.vue.d.ts +14 -14
- 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 +58 -58
- package/dist/components/screen-layer.vue.d.ts +54 -54
- package/dist/components/screens.vue.d.ts +46 -46
- package/dist/components/utils/modal.vue.d.ts +6 -6
- package/dist/components/volume-controls.vue.d.ts +18 -18
- package/dist/config.d.ts +170 -170
- package/dist/constants.d.ts +7 -7
- 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/img/.DS_Store +0 -0
- package/dist/lib/lib.d.ts +15 -15
- package/dist/main.d.ts +5 -5
- package/dist/music/.DS_Store +0 -0
- package/dist/narrat.es.js +33797 -30997
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +105 -92
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +11 -11
- package/dist/sounds/.DS_Store +0 -0
- 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 +390 -390
- 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 +23 -23
- package/dist/stores/skills.d.ts +40 -40
- package/dist/stores/vm-store.d.ts +177 -177
- package/dist/types/app-types.d.ts +5 -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 +30 -30
- 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 +25 -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 +15 -15
- 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/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 +17 -17
- 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 +12 -12
- 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 +87 -87
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
-
layer: StringConstructor;
|
|
7
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
8
|
-
$attrs: {
|
|
9
|
-
[x: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
$refs: {
|
|
12
|
-
[x: string]: unknown;
|
|
13
|
-
};
|
|
14
|
-
$slots: Readonly<{
|
|
15
|
-
[name: string]: import("vue").Slot | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
18
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
19
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
20
|
-
$el: any;
|
|
21
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
-
layer: StringConstructor;
|
|
23
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
24
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
37
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
38
|
-
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;
|
|
39
|
-
};
|
|
40
|
-
$forceUpdate: () => void;
|
|
41
|
-
$nextTick: typeof import("vue").nextTick;
|
|
42
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
43
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
-
layer: StringConstructor;
|
|
45
|
-
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
46
|
-
__isFragment?: undefined;
|
|
47
|
-
__isTeleport?: undefined;
|
|
48
|
-
__isSuspense?: undefined;
|
|
49
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
-
layer: StringConstructor;
|
|
51
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
52
|
-
$slots: {};
|
|
53
|
-
});
|
|
54
|
-
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
|
+
layer: StringConstructor;
|
|
7
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
8
|
+
$attrs: {
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
$refs: {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
$slots: Readonly<{
|
|
15
|
+
[name: string]: import("vue").Slot | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
18
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
19
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
20
|
+
$el: any;
|
|
21
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
layer: StringConstructor;
|
|
23
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
24
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
37
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
38
|
+
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;
|
|
39
|
+
};
|
|
40
|
+
$forceUpdate: () => void;
|
|
41
|
+
$nextTick: typeof import("vue").nextTick;
|
|
42
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
43
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
layer: StringConstructor;
|
|
45
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
46
|
+
__isFragment?: undefined;
|
|
47
|
+
__isTeleport?: undefined;
|
|
48
|
+
__isSuspense?: undefined;
|
|
49
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
layer: StringConstructor;
|
|
51
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
52
|
+
$slots: {};
|
|
53
|
+
});
|
|
54
|
+
export default _default;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
-
$attrs: {
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
$refs: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
$slots: Readonly<{
|
|
13
|
-
[name: string]: import("vue").Slot | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
16
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
17
|
-
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
18
|
-
$el: any;
|
|
19
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & {
|
|
20
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
21
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
22
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
23
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
24
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
33
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
34
|
-
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;
|
|
35
|
-
};
|
|
36
|
-
$forceUpdate: () => void;
|
|
37
|
-
$nextTick: typeof import("vue").nextTick;
|
|
38
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
39
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
40
|
-
__isFragment?: undefined;
|
|
41
|
-
__isTeleport?: undefined;
|
|
42
|
-
__isSuspense?: undefined;
|
|
43
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
-
$slots: {};
|
|
45
|
-
});
|
|
46
|
-
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<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
17
|
+
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & {
|
|
20
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
21
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
22
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
23
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
24
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
25
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
33
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
34
|
+
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;
|
|
35
|
+
};
|
|
36
|
+
$forceUpdate: () => void;
|
|
37
|
+
$nextTick: typeof import("vue").nextTick;
|
|
38
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
39
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
40
|
+
__isFragment?: undefined;
|
|
41
|
+
__isTeleport?: undefined;
|
|
42
|
+
__isSuspense?: undefined;
|
|
43
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
|
+
$slots: {};
|
|
45
|
+
});
|
|
46
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
containerCssClass: StringConstructor;
|
|
3
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
-
containerCssClass: StringConstructor;
|
|
5
|
-
}>>, {}>;
|
|
6
|
-
export default _default;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
containerCssClass: StringConstructor;
|
|
3
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
containerCssClass: StringConstructor;
|
|
5
|
+
}>>, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -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,170 +1,170 @@
|
|
|
1
|
-
export declare function setConfig(conf: Config): void;
|
|
2
|
-
export declare function getConfig(): Config;
|
|
3
|
-
export declare function getSkillConfig(id: string): SkillData;
|
|
4
|
-
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
5
|
-
export declare function getAssetUrl(assetPath: string): string;
|
|
6
|
-
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
7
|
-
export declare function getItemConfig(id: string): ItemData;
|
|
8
|
-
export declare function getQuestConfig(questId: string): QuestData;
|
|
9
|
-
export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
|
|
10
|
-
export interface AppOptions {
|
|
11
|
-
baseAssetsPath?: string;
|
|
12
|
-
logging: boolean;
|
|
13
|
-
debug: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface Config {
|
|
16
|
-
baseAssetsPath?: string;
|
|
17
|
-
gameTitle: string;
|
|
18
|
-
images: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
layout: {
|
|
22
|
-
backgrounds: {
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
};
|
|
26
|
-
dialogBottomPadding: number;
|
|
27
|
-
minTextWidth: number;
|
|
28
|
-
mobileDialogHeightPercentage: number;
|
|
29
|
-
verticalLayoutThreshold: number;
|
|
30
|
-
portraits: {
|
|
31
|
-
width: number;
|
|
32
|
-
height: number;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
screens: {
|
|
36
|
-
[key: string]: ScreenConfig;
|
|
37
|
-
};
|
|
38
|
-
buttons: {
|
|
39
|
-
[key: string]: ButtonConfig;
|
|
40
|
-
};
|
|
41
|
-
skills: {
|
|
42
|
-
[key: string]: SkillData;
|
|
43
|
-
};
|
|
44
|
-
skillOptions: {
|
|
45
|
-
xpPerLevel: number;
|
|
46
|
-
notifyLevelUp: boolean;
|
|
47
|
-
};
|
|
48
|
-
skillChecks: {
|
|
49
|
-
rollRange: number;
|
|
50
|
-
skillMultiplier: number;
|
|
51
|
-
failureChance: number;
|
|
52
|
-
difficultyText: Array<[number, string]>;
|
|
53
|
-
};
|
|
54
|
-
scripts: string[];
|
|
55
|
-
audio: {
|
|
56
|
-
[key: string]: AudioConfig;
|
|
57
|
-
};
|
|
58
|
-
audioOptions: {
|
|
59
|
-
volume: number;
|
|
60
|
-
defaultMusic?: string;
|
|
61
|
-
musicFadeInTime: number;
|
|
62
|
-
musicFadeInDelay: number;
|
|
63
|
-
musicFadeOutTime: number;
|
|
64
|
-
};
|
|
65
|
-
sound?: {
|
|
66
|
-
[key: string]: AudioConfig;
|
|
67
|
-
};
|
|
68
|
-
music?: {
|
|
69
|
-
[key: string]: AudioConfig;
|
|
70
|
-
};
|
|
71
|
-
notifications: {
|
|
72
|
-
timeOnScreen: number;
|
|
73
|
-
alsoPrintInDialogue?: boolean;
|
|
74
|
-
};
|
|
75
|
-
hudStats: {
|
|
76
|
-
[key: string]: HudStatConfig;
|
|
77
|
-
};
|
|
78
|
-
items: {
|
|
79
|
-
[key: string]: ItemData;
|
|
80
|
-
};
|
|
81
|
-
interactionTags: {
|
|
82
|
-
[key: string]: {
|
|
83
|
-
onlyInteractOutsideOfScripts: boolean;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
quests: {
|
|
87
|
-
[key: string]: QuestData;
|
|
88
|
-
};
|
|
89
|
-
audioTriggers: {
|
|
90
|
-
[key: string]: string;
|
|
91
|
-
};
|
|
92
|
-
menuButtons: {
|
|
93
|
-
[key: string]: MenuButtonData;
|
|
94
|
-
};
|
|
95
|
-
debugging: {
|
|
96
|
-
showScriptFinishedMessage?: boolean;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export interface ScreenConfig {
|
|
100
|
-
background: string;
|
|
101
|
-
buttons: Array<string | InlineButtonConfig>;
|
|
102
|
-
}
|
|
103
|
-
export interface MenuButtonData {
|
|
104
|
-
text: string;
|
|
105
|
-
}
|
|
106
|
-
export interface QuestData {
|
|
107
|
-
title: string;
|
|
108
|
-
description: string;
|
|
109
|
-
objectives: {
|
|
110
|
-
[key: string]: ObjectiveData;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
export interface ObjectiveData {
|
|
114
|
-
description: string;
|
|
115
|
-
hidden?: boolean;
|
|
116
|
-
}
|
|
117
|
-
export interface ItemData {
|
|
118
|
-
name: string;
|
|
119
|
-
description: string;
|
|
120
|
-
icon: string;
|
|
121
|
-
onUse?: {
|
|
122
|
-
action: 'jump' | 'run';
|
|
123
|
-
label: string;
|
|
124
|
-
};
|
|
125
|
-
tag?: string;
|
|
126
|
-
}
|
|
127
|
-
export interface HudStatConfig {
|
|
128
|
-
name: string;
|
|
129
|
-
icon: string;
|
|
130
|
-
startingValue: number;
|
|
131
|
-
minValue?: number;
|
|
132
|
-
maxValue?: number;
|
|
133
|
-
}
|
|
134
|
-
export interface AudioConfig {
|
|
135
|
-
src: string;
|
|
136
|
-
path?: string;
|
|
137
|
-
volume?: number;
|
|
138
|
-
rate?: number;
|
|
139
|
-
html5?: boolean;
|
|
140
|
-
}
|
|
141
|
-
export interface MusicConfig extends AudioConfig {
|
|
142
|
-
loop?: boolean;
|
|
143
|
-
}
|
|
144
|
-
export interface ButtonConfig {
|
|
145
|
-
enabled: boolean;
|
|
146
|
-
background?: string;
|
|
147
|
-
text?: string;
|
|
148
|
-
position: {
|
|
149
|
-
left: number;
|
|
150
|
-
top: number;
|
|
151
|
-
width?: number;
|
|
152
|
-
height?: number;
|
|
153
|
-
};
|
|
154
|
-
anchor?: {
|
|
155
|
-
x: number;
|
|
156
|
-
y: number;
|
|
157
|
-
};
|
|
158
|
-
action: string;
|
|
159
|
-
actionType?: 'jump' | 'run';
|
|
160
|
-
}
|
|
161
|
-
export interface InlineButtonConfig extends ButtonConfig {
|
|
162
|
-
id: string;
|
|
163
|
-
}
|
|
164
|
-
export interface SkillData {
|
|
165
|
-
name: string;
|
|
166
|
-
description: string;
|
|
167
|
-
startingLevel: number;
|
|
168
|
-
hidden?: boolean;
|
|
169
|
-
icon: string;
|
|
170
|
-
}
|
|
1
|
+
export declare function setConfig(conf: Config): void;
|
|
2
|
+
export declare function getConfig(): Config;
|
|
3
|
+
export declare function getSkillConfig(id: string): SkillData;
|
|
4
|
+
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
5
|
+
export declare function getAssetUrl(assetPath: string): string;
|
|
6
|
+
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
7
|
+
export declare function getItemConfig(id: string): ItemData;
|
|
8
|
+
export declare function getQuestConfig(questId: string): QuestData;
|
|
9
|
+
export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
|
|
10
|
+
export interface AppOptions {
|
|
11
|
+
baseAssetsPath?: string;
|
|
12
|
+
logging: boolean;
|
|
13
|
+
debug: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface Config {
|
|
16
|
+
baseAssetsPath?: string;
|
|
17
|
+
gameTitle: string;
|
|
18
|
+
images: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
layout: {
|
|
22
|
+
backgrounds: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
dialogBottomPadding: number;
|
|
27
|
+
minTextWidth: number;
|
|
28
|
+
mobileDialogHeightPercentage: number;
|
|
29
|
+
verticalLayoutThreshold: number;
|
|
30
|
+
portraits: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
screens: {
|
|
36
|
+
[key: string]: ScreenConfig;
|
|
37
|
+
};
|
|
38
|
+
buttons: {
|
|
39
|
+
[key: string]: ButtonConfig;
|
|
40
|
+
};
|
|
41
|
+
skills: {
|
|
42
|
+
[key: string]: SkillData;
|
|
43
|
+
};
|
|
44
|
+
skillOptions: {
|
|
45
|
+
xpPerLevel: number;
|
|
46
|
+
notifyLevelUp: boolean;
|
|
47
|
+
};
|
|
48
|
+
skillChecks: {
|
|
49
|
+
rollRange: number;
|
|
50
|
+
skillMultiplier: number;
|
|
51
|
+
failureChance: number;
|
|
52
|
+
difficultyText: Array<[number, string]>;
|
|
53
|
+
};
|
|
54
|
+
scripts: string[];
|
|
55
|
+
audio: {
|
|
56
|
+
[key: string]: AudioConfig;
|
|
57
|
+
};
|
|
58
|
+
audioOptions: {
|
|
59
|
+
volume: number;
|
|
60
|
+
defaultMusic?: string;
|
|
61
|
+
musicFadeInTime: number;
|
|
62
|
+
musicFadeInDelay: number;
|
|
63
|
+
musicFadeOutTime: number;
|
|
64
|
+
};
|
|
65
|
+
sound?: {
|
|
66
|
+
[key: string]: AudioConfig;
|
|
67
|
+
};
|
|
68
|
+
music?: {
|
|
69
|
+
[key: string]: AudioConfig;
|
|
70
|
+
};
|
|
71
|
+
notifications: {
|
|
72
|
+
timeOnScreen: number;
|
|
73
|
+
alsoPrintInDialogue?: boolean;
|
|
74
|
+
};
|
|
75
|
+
hudStats: {
|
|
76
|
+
[key: string]: HudStatConfig;
|
|
77
|
+
};
|
|
78
|
+
items: {
|
|
79
|
+
[key: string]: ItemData;
|
|
80
|
+
};
|
|
81
|
+
interactionTags: {
|
|
82
|
+
[key: string]: {
|
|
83
|
+
onlyInteractOutsideOfScripts: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
quests: {
|
|
87
|
+
[key: string]: QuestData;
|
|
88
|
+
};
|
|
89
|
+
audioTriggers: {
|
|
90
|
+
[key: string]: string;
|
|
91
|
+
};
|
|
92
|
+
menuButtons: {
|
|
93
|
+
[key: string]: MenuButtonData;
|
|
94
|
+
};
|
|
95
|
+
debugging: {
|
|
96
|
+
showScriptFinishedMessage?: boolean;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export interface ScreenConfig {
|
|
100
|
+
background: string;
|
|
101
|
+
buttons: Array<string | InlineButtonConfig>;
|
|
102
|
+
}
|
|
103
|
+
export interface MenuButtonData {
|
|
104
|
+
text: string;
|
|
105
|
+
}
|
|
106
|
+
export interface QuestData {
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
objectives: {
|
|
110
|
+
[key: string]: ObjectiveData;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export interface ObjectiveData {
|
|
114
|
+
description: string;
|
|
115
|
+
hidden?: boolean;
|
|
116
|
+
}
|
|
117
|
+
export interface ItemData {
|
|
118
|
+
name: string;
|
|
119
|
+
description: string;
|
|
120
|
+
icon: string;
|
|
121
|
+
onUse?: {
|
|
122
|
+
action: 'jump' | 'run';
|
|
123
|
+
label: string;
|
|
124
|
+
};
|
|
125
|
+
tag?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface HudStatConfig {
|
|
128
|
+
name: string;
|
|
129
|
+
icon: string;
|
|
130
|
+
startingValue: number;
|
|
131
|
+
minValue?: number;
|
|
132
|
+
maxValue?: number;
|
|
133
|
+
}
|
|
134
|
+
export interface AudioConfig {
|
|
135
|
+
src: string;
|
|
136
|
+
path?: string;
|
|
137
|
+
volume?: number;
|
|
138
|
+
rate?: number;
|
|
139
|
+
html5?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export interface MusicConfig extends AudioConfig {
|
|
142
|
+
loop?: boolean;
|
|
143
|
+
}
|
|
144
|
+
export interface ButtonConfig {
|
|
145
|
+
enabled: boolean;
|
|
146
|
+
background?: string;
|
|
147
|
+
text?: string;
|
|
148
|
+
position: {
|
|
149
|
+
left: number;
|
|
150
|
+
top: number;
|
|
151
|
+
width?: number;
|
|
152
|
+
height?: number;
|
|
153
|
+
};
|
|
154
|
+
anchor?: {
|
|
155
|
+
x: number;
|
|
156
|
+
y: number;
|
|
157
|
+
};
|
|
158
|
+
action: string;
|
|
159
|
+
actionType?: 'jump' | 'run';
|
|
160
|
+
}
|
|
161
|
+
export interface InlineButtonConfig extends ButtonConfig {
|
|
162
|
+
id: string;
|
|
163
|
+
}
|
|
164
|
+
export interface SkillData {
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
startingLevel: number;
|
|
168
|
+
hidden?: boolean;
|
|
169
|
+
icon: string;
|
|
170
|
+
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL;
|
|
7
|
-
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 type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL;
|
|
7
|
+
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 {};
|