narrat 3.8.2 → 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/config/common-config.d.ts +2 -0
- package/dist/config/config-input.d.ts +4 -0
- package/dist/data/all-stores.d.ts +25 -5
- package/dist/exports/components.d.ts +9 -1
- package/dist/exports/stores.d.ts +2 -0
- package/dist/narrat.es.js +21766 -21595
- 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 +4 -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/utils/data-helpers.d.ts +1 -0
- 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
|
-
};
|
|
@@ -98,6 +98,7 @@ export declare const SavesConfigSchema: import("@sinclair/typebox").TObject<{
|
|
|
98
98
|
mode: import("@sinclair/typebox").TString;
|
|
99
99
|
slots: import("@sinclair/typebox").TNumber;
|
|
100
100
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
101
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
101
102
|
}>;
|
|
102
103
|
export type SavesConfig = Static<typeof SavesConfigSchema>;
|
|
103
104
|
export declare const ScriptsConfigSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -231,6 +232,7 @@ export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObjec
|
|
|
231
232
|
mode: import("@sinclair/typebox").TString;
|
|
232
233
|
slots: import("@sinclair/typebox").TNumber;
|
|
233
234
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
235
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
234
236
|
}>>;
|
|
235
237
|
}>;
|
|
236
238
|
export type CommonConfigInput = Static<typeof CommonConfigInputSchema>;
|
|
@@ -676,6 +676,7 @@ export declare const ConfigInputSchemaWithCommon: import("@sinclair/typebox").TI
|
|
|
676
676
|
mode: import("@sinclair/typebox").TString;
|
|
677
677
|
slots: import("@sinclair/typebox").TNumber;
|
|
678
678
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
679
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
679
680
|
}>>;
|
|
680
681
|
}>;
|
|
681
682
|
}>]>;
|
|
@@ -1081,6 +1082,7 @@ export declare const ConfigInputSchemaWithoutCommon: import("@sinclair/typebox")
|
|
|
1081
1082
|
mode: import("@sinclair/typebox").TString;
|
|
1082
1083
|
slots: import("@sinclair/typebox").TNumber;
|
|
1083
1084
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1085
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1084
1086
|
}>>;
|
|
1085
1087
|
}>]>;
|
|
1086
1088
|
export type ConfigInputWithoutCommon = Static<typeof ConfigInputSchemaWithoutCommon>;
|
|
@@ -1486,6 +1488,7 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
1486
1488
|
mode: import("@sinclair/typebox").TString;
|
|
1487
1489
|
slots: import("@sinclair/typebox").TNumber;
|
|
1488
1490
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1491
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1489
1492
|
}>>;
|
|
1490
1493
|
}>;
|
|
1491
1494
|
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -1889,6 +1892,7 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
1889
1892
|
mode: import("@sinclair/typebox").TString;
|
|
1890
1893
|
slots: import("@sinclair/typebox").TNumber;
|
|
1891
1894
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1895
|
+
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1892
1896
|
}>>;
|
|
1893
1897
|
}>]>]>;
|
|
1894
1898
|
export declare function isConfigInputWithCommon(config: ConfigInput): config is ConfigInputWithCommon;
|
|
@@ -458,6 +458,7 @@ export declare const sourceAllStores: {
|
|
|
458
458
|
} | undefined;
|
|
459
459
|
saves?: {
|
|
460
460
|
runOnReload?: string | undefined;
|
|
461
|
+
disabled?: boolean | undefined;
|
|
461
462
|
slots: number;
|
|
462
463
|
mode: string;
|
|
463
464
|
} | undefined;
|
|
@@ -506,7 +507,6 @@ export declare const sourceAllStores: {
|
|
|
506
507
|
};
|
|
507
508
|
} | undefined;
|
|
508
509
|
};
|
|
509
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
510
510
|
paused: boolean;
|
|
511
511
|
loading: {
|
|
512
512
|
step: string;
|
|
@@ -1106,6 +1106,7 @@ export declare const sourceAllStores: {
|
|
|
1106
1106
|
} | undefined;
|
|
1107
1107
|
saves?: {
|
|
1108
1108
|
runOnReload?: string | undefined;
|
|
1109
|
+
disabled?: boolean | undefined;
|
|
1109
1110
|
slots: number;
|
|
1110
1111
|
mode: string;
|
|
1111
1112
|
} | undefined;
|
|
@@ -1154,7 +1155,6 @@ export declare const sourceAllStores: {
|
|
|
1154
1155
|
};
|
|
1155
1156
|
} | undefined;
|
|
1156
1157
|
};
|
|
1157
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
1158
1158
|
paused: boolean;
|
|
1159
1159
|
loading: {
|
|
1160
1160
|
step: string;
|
|
@@ -1754,6 +1754,7 @@ export declare const sourceAllStores: {
|
|
|
1754
1754
|
} | undefined;
|
|
1755
1755
|
saves?: {
|
|
1756
1756
|
runOnReload?: string | undefined;
|
|
1757
|
+
disabled?: boolean | undefined;
|
|
1757
1758
|
slots: number;
|
|
1758
1759
|
mode: string;
|
|
1759
1760
|
} | undefined;
|
|
@@ -1802,7 +1803,6 @@ export declare const sourceAllStores: {
|
|
|
1802
1803
|
};
|
|
1803
1804
|
} | undefined;
|
|
1804
1805
|
};
|
|
1805
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
1806
1806
|
paused: boolean;
|
|
1807
1807
|
loading: {
|
|
1808
1808
|
step: string;
|
|
@@ -2402,6 +2402,7 @@ export declare const sourceAllStores: {
|
|
|
2402
2402
|
} | undefined;
|
|
2403
2403
|
saves?: {
|
|
2404
2404
|
runOnReload?: string | undefined;
|
|
2405
|
+
disabled?: boolean | undefined;
|
|
2405
2406
|
slots: number;
|
|
2406
2407
|
mode: string;
|
|
2407
2408
|
} | undefined;
|
|
@@ -2450,7 +2451,6 @@ export declare const sourceAllStores: {
|
|
|
2450
2451
|
};
|
|
2451
2452
|
} | undefined;
|
|
2452
2453
|
};
|
|
2453
|
-
flowState: "menu" | "engine-splash" | "game-splash" | "playing";
|
|
2454
2454
|
paused: boolean;
|
|
2455
2455
|
loading: {
|
|
2456
2456
|
step: string;
|
|
@@ -2609,7 +2609,6 @@ export declare const sourceAllStores: {
|
|
|
2609
2609
|
createError(text: string): void;
|
|
2610
2610
|
createWarning(text: string): void;
|
|
2611
2611
|
clearErrors(): void;
|
|
2612
|
-
setFlowState(flowState: "menu" | "playing"): void;
|
|
2613
2612
|
pause(): void;
|
|
2614
2613
|
unpause(): void;
|
|
2615
2614
|
setOptions(options: import("../types/app-types").AppOptions): void;
|
|
@@ -2851,6 +2850,7 @@ export declare const sourceAllStores: {
|
|
|
2851
2850
|
} | undefined;
|
|
2852
2851
|
saves?: {
|
|
2853
2852
|
runOnReload?: string | undefined;
|
|
2853
|
+
disabled?: boolean | undefined;
|
|
2854
2854
|
slots?: number | undefined;
|
|
2855
2855
|
mode?: string | undefined;
|
|
2856
2856
|
} | undefined;
|
|
@@ -3217,6 +3217,8 @@ export declare const sourceAllStores: {
|
|
|
3217
3217
|
readonly inputs: {
|
|
3218
3218
|
readonly store: import("pinia").StoreDefinition<"inputs", import("../stores/inputs-store").InputsStoreState, {}, {
|
|
3219
3219
|
setupInputs(): void;
|
|
3220
|
+
createInGameInputListener(): void;
|
|
3221
|
+
removeInGameInputListener(): void;
|
|
3220
3222
|
listenToContainerInputs(): void;
|
|
3221
3223
|
listenToBaseNarratInputs(): void;
|
|
3222
3224
|
triggerListeners(actionKey: string, eventType: keyof import("../stores/inputs-store").InputStoreEvents, status: import("../inputs/Inputs").ActionStatus): void;
|
|
@@ -3852,6 +3854,24 @@ export declare const sourceAllStores: {
|
|
|
3852
3854
|
readonly save: "vm";
|
|
3853
3855
|
readonly globalSave: "data";
|
|
3854
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
|
+
};
|
|
3855
3875
|
};
|
|
3856
3876
|
export type AllStores = typeof sourceAllStores;
|
|
3857
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';
|