narrat 0.8.4 → 0.9.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/lib/app.vue.d.ts +6 -2
- package/lib/components/MainMenu.vue.d.ts +58 -0
- package/lib/components/Skills.vue.d.ts +25 -0
- package/lib/components/debug/debug-menu.vue.d.ts +14 -0
- package/lib/components/menu.vue.d.ts +5 -3
- package/lib/components/utils/modal.vue.d.ts +7 -1
- package/lib/defaultConfig.d.ts +2 -0
- package/lib/gameloop.d.ts +5 -0
- package/lib/index.esm.js +2682 -334
- package/lib/index.js +2681 -333
- package/lib/store.d.ts +2 -1
- package/lib/utils/audio-loader.d.ts +2 -2
- package/lib/utils/randomId.d.ts +1 -0
- package/lib/vm/renpy-vm.d.ts +3 -2
- package/package.json +3 -1
package/lib/store.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { InjectionKey, State } from 'vue';
|
|
2
2
|
import { Store } from 'vuex';
|
|
3
|
-
import { MachineStack } from './types/vuex';
|
|
3
|
+
import { DialogKey, MachineStack } from './types/vuex';
|
|
4
4
|
import { AppOptions } from '.';
|
|
5
|
+
export declare type AddDialogParams = Omit<DialogKey, 'id'>;
|
|
5
6
|
export interface SetupStoreResult {
|
|
6
7
|
store: Store<State>;
|
|
7
8
|
key: InjectionKey<Store<State>>;
|
|
@@ -7,8 +7,8 @@ export declare const audio: {
|
|
|
7
7
|
};
|
|
8
8
|
export declare function loadAudioAssets(config: Config): Promise<void[]>;
|
|
9
9
|
export declare function loadAudio(key: string, config: AudioConfig | MusicConfig): Promise<void>;
|
|
10
|
-
export declare function changeMusic(ctx: ActionContext<State, State>, newMusic: string): void
|
|
11
|
-
export declare function playAudio(commit: Commit, key: string):
|
|
10
|
+
export declare function changeMusic(ctx: ActionContext<State, State>, newMusic: string): Promise<void>;
|
|
11
|
+
export declare function playAudio(commit: Commit, key: string): number;
|
|
12
12
|
export declare function getAudio(key: string): Howl | undefined;
|
|
13
13
|
export declare function stopAudio(commit: Commit, key: string): void;
|
|
14
14
|
export declare function pauseAudio(commit: Commit, key: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function randomId(): string;
|
package/lib/vm/renpy-vm.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ActionContext, Commit } from 'vuex';
|
|
2
2
|
import { State } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { DialogChoice } from '@/types/vuex';
|
|
4
|
+
import { AddDialogParams } from '@/store';
|
|
4
5
|
export declare function runLine(context: ActionContext<State, State>): Promise<void>;
|
|
5
6
|
export declare function runCommand(context: ActionContext<State, State>, cmd: Parser.Command, choices?: DialogChoice[]): Promise<any>;
|
|
6
7
|
export declare function playerAnswered(context: ActionContext<State, State>, choiceIndex: number): Promise<void>;
|
|
7
8
|
export declare function runChoice(context: ActionContext<State, State>, cmd: Parser.Command): Promise<void>;
|
|
8
|
-
export declare function textCommand(commit: Commit, dialog:
|
|
9
|
+
export declare function textCommand(commit: Commit, dialog: AddDialogParams): Promise<void>;
|
|
9
10
|
export declare function nextLine(ctx: ActionContext<State, State>): Promise<any>;
|
|
10
11
|
export declare function finishGame({ commit, state }: ActionContext<State, State>): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "narrat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "narrat narrative engine",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -76,7 +76,9 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"autoprefixer": "^10.2.6",
|
|
79
|
+
"fuse.js": "^6.6.2",
|
|
79
80
|
"howler": "^2.2.3",
|
|
81
|
+
"svelte-jsoneditor": "^0.3.58",
|
|
80
82
|
"vue3-mq": "^3.0.0"
|
|
81
83
|
}
|
|
82
84
|
}
|