narrat 0.8.5 → 0.9.2
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 +2688 -339
- package/lib/index.js +2687 -338
- package/lib/utils/audio-loader.d.ts +2 -2
- package/package.json +3 -1
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "narrat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.2",
|
|
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
|
}
|