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
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 };
|
|
Binary file
|
package/dist/lib/lib.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import 'es6-promise/auto';
|
|
3
|
-
import './/../sass/main.css';
|
|
4
|
-
export * from '../main';
|
|
5
|
-
export declare type Narrat = {
|
|
6
|
-
app: App;
|
|
7
|
-
};
|
|
8
|
-
declare global {
|
|
9
|
-
export interface Window {
|
|
10
|
-
narrat: Narrat;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export * from '../exports/plugins';
|
|
14
|
-
export * from '../exports/display';
|
|
15
|
-
export * from '../exports/config';
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import 'es6-promise/auto';
|
|
3
|
+
import './/../sass/main.css';
|
|
4
|
+
export * from '../main';
|
|
5
|
+
export declare type Narrat = {
|
|
6
|
+
app: App;
|
|
7
|
+
};
|
|
8
|
+
declare global {
|
|
9
|
+
export interface Window {
|
|
10
|
+
narrat: Narrat;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export * from '../exports/plugins';
|
|
14
|
+
export * from '../exports/display';
|
|
15
|
+
export * from '../exports/config';
|
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'es6-promise/auto';
|
|
2
|
-
import './/sass/main.css';
|
|
3
|
-
import { GameConfig } from './types/app-types';
|
|
4
|
-
import { AppOptions } from './config';
|
|
5
|
-
export declare function startApp(config: GameConfig, options: AppOptions): Promise<void>;
|
|
1
|
+
import 'es6-promise/auto';
|
|
2
|
+
import './/sass/main.css';
|
|
3
|
+
import { GameConfig } from './types/app-types';
|
|
4
|
+
import { AppOptions } from './config';
|
|
5
|
+
export declare function startApp(config: GameConfig, options: AppOptions): Promise<void>;
|
|
Binary file
|