narrat 3.8.3 → 3.9.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/dist/components/GameScene.vue.d.ts +17 -0
- package/dist/components/debug/debug-menu.vue.d.ts +1 -1
- package/dist/components/game-dialog.vue.d.ts +1 -19
- package/dist/components/hud.vue.d.ts +1 -0
- package/dist/components/scenes/chapter-title.vue.d.ts +25 -0
- package/dist/components/screens.vue.d.ts +1 -15
- package/dist/data/all-stores.d.ts +20 -5
- package/dist/exports/components.d.ts +9 -1
- package/dist/exports/stores.d.ts +2 -0
- package/dist/narrat.es.js +21414 -21245
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +122 -122
- package/dist/narrat.umd.js.map +1 -1
- package/dist/scenes/default-scenes.d.ts +2 -0
- package/dist/scenes/scene-types.d.ts +11 -0
- package/dist/stores/inputs-store.d.ts +3 -0
- package/dist/stores/main-store.d.ts +0 -6
- package/dist/stores/scenes-store.d.ts +25 -0
- package/dist/stores/stores-management.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vm/commands/scene-commands.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
sceneId: string;
|
|
3
|
+
options: Record<string, any>;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
sceneId: string;
|
|
6
|
+
options: Record<string, any>;
|
|
7
|
+
}>>>, {}, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
15
15
|
variables(): {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
};
|
|
18
|
+
activeScene: () => string;
|
|
18
19
|
playing: () => boolean;
|
|
19
20
|
errors: () => {
|
|
20
21
|
text: string;
|
|
@@ -24,7 +25,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
24
25
|
start: number;
|
|
25
26
|
previousPlaytime: number;
|
|
26
27
|
};
|
|
27
|
-
flowState: () => "menu" | "engine-splash" | "game-splash" | "playing";
|
|
28
28
|
data: () => import("../../stores/vm-store").DataState;
|
|
29
29
|
}, {
|
|
30
30
|
closeJumping(): void;
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
layoutMode: 'horizontal' | 'vertical';
|
|
4
|
-
inGame: boolean;
|
|
5
|
-
inputListener: InputListener;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
-
layoutMode: 'horizontal' | 'vertical';
|
|
8
|
-
inGame: boolean;
|
|
9
|
-
inputListener: InputListener;
|
|
10
|
-
}>>>, {}, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
11
2
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
options: {
|
|
3
|
+
next_label: string;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
options: {
|
|
10
|
+
next_label: string;
|
|
11
|
+
title: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
duration?: number;
|
|
14
|
+
};
|
|
15
|
+
}>>>, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
inputListener: InputListener | null;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
inputListener: InputListener | null;
|
|
6
|
-
}>>>, {}, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
7
2
|
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -507,7 +507,6 @@ export declare const sourceAllStores: {
|
|
|
507
507
|
};
|
|
508
508
|
} | undefined;
|
|
509
509
|
};
|
|
510
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
511
510
|
paused: boolean;
|
|
512
511
|
loading: {
|
|
513
512
|
step: string;
|
|
@@ -1156,7 +1155,6 @@ export declare const sourceAllStores: {
|
|
|
1156
1155
|
};
|
|
1157
1156
|
} | undefined;
|
|
1158
1157
|
};
|
|
1159
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
1160
1158
|
paused: boolean;
|
|
1161
1159
|
loading: {
|
|
1162
1160
|
step: string;
|
|
@@ -1805,7 +1803,6 @@ export declare const sourceAllStores: {
|
|
|
1805
1803
|
};
|
|
1806
1804
|
} | undefined;
|
|
1807
1805
|
};
|
|
1808
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
1809
1806
|
paused: boolean;
|
|
1810
1807
|
loading: {
|
|
1811
1808
|
step: string;
|
|
@@ -2454,7 +2451,6 @@ export declare const sourceAllStores: {
|
|
|
2454
2451
|
};
|
|
2455
2452
|
} | undefined;
|
|
2456
2453
|
};
|
|
2457
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
2458
2454
|
paused: boolean;
|
|
2459
2455
|
loading: {
|
|
2460
2456
|
step: string;
|
|
@@ -2613,7 +2609,6 @@ export declare const sourceAllStores: {
|
|
|
2613
2609
|
createError(text: string): void;
|
|
2614
2610
|
createWarning(text: string): void;
|
|
2615
2611
|
clearErrors(): void;
|
|
2616
|
-
setFlowState(flowState: "menu" | "playing"): void;
|
|
2617
2612
|
pause(): void;
|
|
2618
2613
|
unpause(): void;
|
|
2619
2614
|
setOptions(options: import("../types/app-types").AppOptions): void;
|
|
@@ -3222,6 +3217,8 @@ export declare const sourceAllStores: {
|
|
|
3222
3217
|
readonly inputs: {
|
|
3223
3218
|
readonly store: import("pinia").StoreDefinition<"inputs", import("../stores/inputs-store").InputsStoreState, {}, {
|
|
3224
3219
|
setupInputs(): void;
|
|
3220
|
+
createInGameInputListener(): void;
|
|
3221
|
+
removeInGameInputListener(): void;
|
|
3225
3222
|
listenToContainerInputs(): void;
|
|
3226
3223
|
listenToBaseNarratInputs(): void;
|
|
3227
3224
|
triggerListeners(actionKey: string, eventType: keyof import("../stores/inputs-store").InputStoreEvents, status: import("../inputs/Inputs").ActionStatus): void;
|
|
@@ -3857,6 +3854,24 @@ export declare const sourceAllStores: {
|
|
|
3857
3854
|
readonly save: "vm";
|
|
3858
3855
|
readonly globalSave: "data";
|
|
3859
3856
|
};
|
|
3857
|
+
readonly scenes: {
|
|
3858
|
+
readonly store: import("pinia").StoreDefinition<"scenes-store", import("../stores/scenes-store").ScenesStoreState, {
|
|
3859
|
+
isPlaying(state: {
|
|
3860
|
+
scenes: Record<string, import("../lib").SceneConfig>;
|
|
3861
|
+
currentOptions: Record<string, any>;
|
|
3862
|
+
activeScene: string;
|
|
3863
|
+
} & import("pinia").PiniaCustomStateProperties<import("../stores/scenes-store").ScenesStoreState>): boolean;
|
|
3864
|
+
}, {
|
|
3865
|
+
generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
|
|
3866
|
+
loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
|
|
3867
|
+
changeScene(newScene: string, options?: Record<string, any> | undefined): void;
|
|
3868
|
+
getSceneConfig(sceneId: string): import("../lib").SceneConfig;
|
|
3869
|
+
onEngineSplashFinished(): void;
|
|
3870
|
+
finishedScene(sceneId: string): void;
|
|
3871
|
+
addNewScene(sceneConfig: import("../lib").SceneConfig): void;
|
|
3872
|
+
}>;
|
|
3873
|
+
readonly save: "scenes";
|
|
3874
|
+
};
|
|
3860
3875
|
};
|
|
3861
3876
|
export type AllStores = typeof sourceAllStores;
|
|
3862
3877
|
export type StoreKey = keyof AllStores;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
import ModalWindow from '../components/utils/modal-window.vue';
|
|
2
|
-
|
|
2
|
+
import EngineSplash from '../components/engine-splash/engine-splash.vue';
|
|
3
|
+
import GameSplash from '../components/game-splash/game-splash.vue';
|
|
4
|
+
import StartMenu from '../components/StartMenu.vue';
|
|
5
|
+
import InGame from '../components/in-game.vue';
|
|
6
|
+
import Hud from '../components/hud.vue';
|
|
7
|
+
import MenuButtons from '../components/menu-buttons.vue';
|
|
8
|
+
import Screens from '../components/screens.vue';
|
|
9
|
+
import GameDialog from '../components/game-dialog.vue';
|
|
10
|
+
export { ModalWindow, EngineSplash, GameSplash, StartMenu, InGame, Hud, MenuButtons, Screens, GameDialog, };
|
package/dist/exports/stores.d.ts
CHANGED
|
@@ -15,3 +15,5 @@ export { useSkills } from '../stores/skills';
|
|
|
15
15
|
export { useTooltips } from '../stores/tooltip-store';
|
|
16
16
|
export { useVM } from '../stores/vm-store';
|
|
17
17
|
export { useAchievements } from '../stores/achievements-store';
|
|
18
|
+
export { useScenes } from '../stores/scenes-store';
|
|
19
|
+
export type { SceneConfig } from '../scenes/scene-types';
|