narrat 3.8.3 → 3.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.
@@ -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 { InputListener } from '../stores/inputs-store';
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
- };
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {
21
21
  };
22
22
  stats(): HudStatsState;
23
23
  hudStyle(): any;
24
+ hasHud(): boolean;
24
25
  layoutMode: () => "horizontal" | "vertical";
25
26
  hudStats: () => HudStatsState;
26
27
  }, {
@@ -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 { InputListener } from '../stores/inputs-store';
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
- };
@@ -1,6 +1,11 @@
1
1
  import { Static } from '@sinclair/typebox';
2
2
  import { LayoutConfig } from './layout-config';
3
3
  import { SettingsConfig } from './settings-config';
4
+ export declare const HotkeysConfigSchema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
5
+ debugMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ jumpMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
+ }>>;
8
+ export type HotkeysConfig = Static<typeof HotkeysConfigSchema>;
4
9
  export declare const DialogPanelConfigSchema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
5
10
  animateText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
6
11
  textSpeed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -234,6 +239,10 @@ export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObjec
234
239
  runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
235
240
  disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
236
241
  }>>;
242
+ hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
243
+ debugMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
244
+ jumpMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
245
+ }>>;
237
246
  }>;
238
247
  export type CommonConfigInput = Static<typeof CommonConfigInputSchema>;
239
248
  export interface CommonConfig {
@@ -258,5 +267,6 @@ export interface CommonConfig {
258
267
  menuButtons: MenuButtonsConfig;
259
268
  debugging: DebuggingConfig;
260
269
  saves: SavesConfig;
270
+ hotkeys: HotkeysConfig;
261
271
  }
262
272
  export declare const defaultCommonConfig: CommonConfig;
@@ -678,6 +678,10 @@ export declare const ConfigInputSchemaWithCommon: import("@sinclair/typebox").TI
678
678
  runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
679
679
  disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
680
680
  }>>;
681
+ hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
682
+ debugMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
683
+ jumpMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
684
+ }>>;
681
685
  }>;
682
686
  }>]>;
683
687
  export type ConfigInputWithCommon = Static<typeof ConfigInputSchemaWithCommon>;
@@ -1490,6 +1494,10 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TUnion<[impo
1490
1494
  runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1491
1495
  disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1492
1496
  }>>;
1497
+ hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1498
+ debugMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1499
+ jumpMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1500
+ }>>;
1493
1501
  }>;
1494
1502
  }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
1495
1503
  screens: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
@@ -462,6 +462,10 @@ export declare const sourceAllStores: {
462
462
  slots: number;
463
463
  mode: string;
464
464
  } | undefined;
465
+ hotkeys?: {
466
+ debugMenu?: string | undefined;
467
+ jumpMenu?: string | undefined;
468
+ } | undefined;
465
469
  gameTitle: string;
466
470
  saveFileName: string;
467
471
  layout: {
@@ -507,7 +511,6 @@ export declare const sourceAllStores: {
507
511
  };
508
512
  } | undefined;
509
513
  };
510
- flowState: "menu" | "engine-splash" | "game-splash" | "playing";
511
514
  paused: boolean;
512
515
  loading: {
513
516
  step: string;
@@ -1111,6 +1114,10 @@ export declare const sourceAllStores: {
1111
1114
  slots: number;
1112
1115
  mode: string;
1113
1116
  } | undefined;
1117
+ hotkeys?: {
1118
+ debugMenu?: string | undefined;
1119
+ jumpMenu?: string | undefined;
1120
+ } | undefined;
1114
1121
  gameTitle: string;
1115
1122
  saveFileName: string;
1116
1123
  layout: {
@@ -1156,7 +1163,6 @@ export declare const sourceAllStores: {
1156
1163
  };
1157
1164
  } | undefined;
1158
1165
  };
1159
- flowState: "menu" | "engine-splash" | "game-splash" | "playing";
1160
1166
  paused: boolean;
1161
1167
  loading: {
1162
1168
  step: string;
@@ -1760,6 +1766,10 @@ export declare const sourceAllStores: {
1760
1766
  slots: number;
1761
1767
  mode: string;
1762
1768
  } | undefined;
1769
+ hotkeys?: {
1770
+ debugMenu?: string | undefined;
1771
+ jumpMenu?: string | undefined;
1772
+ } | undefined;
1763
1773
  gameTitle: string;
1764
1774
  saveFileName: string;
1765
1775
  layout: {
@@ -1805,7 +1815,6 @@ export declare const sourceAllStores: {
1805
1815
  };
1806
1816
  } | undefined;
1807
1817
  };
1808
- flowState: "menu" | "engine-splash" | "game-splash" | "playing";
1809
1818
  paused: boolean;
1810
1819
  loading: {
1811
1820
  step: string;
@@ -2409,6 +2418,10 @@ export declare const sourceAllStores: {
2409
2418
  slots: number;
2410
2419
  mode: string;
2411
2420
  } | undefined;
2421
+ hotkeys?: {
2422
+ debugMenu?: string | undefined;
2423
+ jumpMenu?: string | undefined;
2424
+ } | undefined;
2412
2425
  gameTitle: string;
2413
2426
  saveFileName: string;
2414
2427
  layout: {
@@ -2454,7 +2467,6 @@ export declare const sourceAllStores: {
2454
2467
  };
2455
2468
  } | undefined;
2456
2469
  };
2457
- flowState: "menu" | "engine-splash" | "game-splash" | "playing";
2458
2470
  paused: boolean;
2459
2471
  loading: {
2460
2472
  step: string;
@@ -2613,7 +2625,6 @@ export declare const sourceAllStores: {
2613
2625
  createError(text: string): void;
2614
2626
  createWarning(text: string): void;
2615
2627
  clearErrors(): void;
2616
- setFlowState(flowState: "menu" | "playing"): void;
2617
2628
  pause(): void;
2618
2629
  unpause(): void;
2619
2630
  setOptions(options: import("../types/app-types").AppOptions): void;
@@ -2859,6 +2870,10 @@ export declare const sourceAllStores: {
2859
2870
  slots?: number | undefined;
2860
2871
  mode?: string | undefined;
2861
2872
  } | undefined;
2873
+ hotkeys?: {
2874
+ debugMenu?: string | undefined;
2875
+ jumpMenu?: string | undefined;
2876
+ } | undefined;
2862
2877
  } | undefined;
2863
2878
  screens?: {
2864
2879
  screens?: {
@@ -3222,6 +3237,8 @@ export declare const sourceAllStores: {
3222
3237
  readonly inputs: {
3223
3238
  readonly store: import("pinia").StoreDefinition<"inputs", import("../stores/inputs-store").InputsStoreState, {}, {
3224
3239
  setupInputs(): void;
3240
+ createInGameInputListener(): void;
3241
+ removeInGameInputListener(): void;
3225
3242
  listenToContainerInputs(): void;
3226
3243
  listenToBaseNarratInputs(): void;
3227
3244
  triggerListeners(actionKey: string, eventType: keyof import("../stores/inputs-store").InputStoreEvents, status: import("../inputs/Inputs").ActionStatus): void;
@@ -3857,6 +3874,24 @@ export declare const sourceAllStores: {
3857
3874
  readonly save: "vm";
3858
3875
  readonly globalSave: "data";
3859
3876
  };
3877
+ readonly scenes: {
3878
+ readonly store: import("pinia").StoreDefinition<"scenes-store", import("../stores/scenes-store").ScenesStoreState, {
3879
+ isPlaying(state: {
3880
+ scenes: Record<string, import("../lib").SceneConfig>;
3881
+ currentOptions: Record<string, any>;
3882
+ activeScene: string;
3883
+ } & import("pinia").PiniaCustomStateProperties<import("../stores/scenes-store").ScenesStoreState>): boolean;
3884
+ }, {
3885
+ generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
3886
+ loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
3887
+ changeScene(newScene: string, options?: Record<string, any> | undefined): void;
3888
+ getSceneConfig(sceneId: string): import("../lib").SceneConfig;
3889
+ onEngineSplashFinished(): void;
3890
+ finishedScene(sceneId: string): void;
3891
+ addNewScene(sceneConfig: import("../lib").SceneConfig): void;
3892
+ }>;
3893
+ readonly save: "scenes";
3894
+ };
3860
3895
  };
3861
3896
  export type AllStores = typeof sourceAllStores;
3862
3897
  export type StoreKey = keyof AllStores;
@@ -1,2 +1,10 @@
1
1
  import ModalWindow from '../components/utils/modal-window.vue';
2
- export { ModalWindow };
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, };
@@ -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';