narrat 3.10.4 → 3.11.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.
@@ -106,6 +106,11 @@ export type SavesConfig = Static<typeof SavesConfigSchema>;
106
106
  export declare const ScriptsConfigSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
107
107
  export type ScriptsConfig = Static<typeof ScriptsConfigSchema>;
108
108
  export declare const defaultScriptsConfig: never[];
109
+ export declare const ScenesConfigSchema: import("@sinclair/typebox").TObject<{
110
+ startMenuScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
111
+ gameScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
112
+ }>;
113
+ export type ScenesConfig = Static<typeof ScenesConfigSchema>;
109
114
  export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObject<{
110
115
  baseAssetsPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
111
116
  baseDataPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -237,6 +242,10 @@ export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObjec
237
242
  disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
238
243
  }>>;
239
244
  hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>>;
245
+ scenes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
246
+ startMenuScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
247
+ gameScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
248
+ }>>;
240
249
  }>;
241
250
  export type CommonConfigInput = Static<typeof CommonConfigInputSchema>;
242
251
  export interface CommonConfig {
@@ -262,5 +271,6 @@ export interface CommonConfig {
262
271
  debugging: DebuggingConfig;
263
272
  saves: SavesConfig;
264
273
  hotkeys: HotkeysConfig;
274
+ scenes: ScenesConfig;
265
275
  }
266
276
  export declare const defaultCommonConfig: CommonConfig;
@@ -701,6 +701,10 @@ export declare const ConfigInputSchemaWithCommon: import("@sinclair/typebox").TI
701
701
  disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
702
702
  }>>;
703
703
  hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>>;
704
+ scenes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
705
+ startMenuScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
706
+ gameScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
707
+ }>>;
704
708
  }>;
705
709
  }>]>;
706
710
  export type ConfigInputWithCommon = Static<typeof ConfigInputSchemaWithCommon>;
@@ -1536,6 +1540,10 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TUnion<[impo
1536
1540
  disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1537
1541
  }>>;
1538
1542
  hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>>;
1543
+ scenes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1544
+ startMenuScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1545
+ gameScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1546
+ }>>;
1539
1547
  }>;
1540
1548
  }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
1541
1549
  screens: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
@@ -479,6 +479,10 @@ export declare const sourceAllStores: {
479
479
  mode: string;
480
480
  } | undefined;
481
481
  hotkeys?: Record<string, string | boolean> | undefined;
482
+ scenes?: {
483
+ startMenuScene?: string | undefined;
484
+ gameScene?: string | undefined;
485
+ } | undefined;
482
486
  gameTitle: string;
483
487
  saveFileName: string;
484
488
  layout: {
@@ -1144,6 +1148,10 @@ export declare const sourceAllStores: {
1144
1148
  mode: string;
1145
1149
  } | undefined;
1146
1150
  hotkeys?: Record<string, string | boolean> | undefined;
1151
+ scenes?: {
1152
+ startMenuScene?: string | undefined;
1153
+ gameScene?: string | undefined;
1154
+ } | undefined;
1147
1155
  gameTitle: string;
1148
1156
  saveFileName: string;
1149
1157
  layout: {
@@ -1809,6 +1817,10 @@ export declare const sourceAllStores: {
1809
1817
  mode: string;
1810
1818
  } | undefined;
1811
1819
  hotkeys?: Record<string, string | boolean> | undefined;
1820
+ scenes?: {
1821
+ startMenuScene?: string | undefined;
1822
+ gameScene?: string | undefined;
1823
+ } | undefined;
1812
1824
  gameTitle: string;
1813
1825
  saveFileName: string;
1814
1826
  layout: {
@@ -2474,6 +2486,10 @@ export declare const sourceAllStores: {
2474
2486
  mode: string;
2475
2487
  } | undefined;
2476
2488
  hotkeys?: Record<string, string | boolean> | undefined;
2489
+ scenes?: {
2490
+ startMenuScene?: string | undefined;
2491
+ gameScene?: string | undefined;
2492
+ } | undefined;
2477
2493
  gameTitle: string;
2478
2494
  saveFileName: string;
2479
2495
  layout: {
@@ -2925,6 +2941,10 @@ export declare const sourceAllStores: {
2925
2941
  hotkeys?: {
2926
2942
  [x: string]: string | boolean | undefined;
2927
2943
  } | undefined;
2944
+ scenes?: {
2945
+ startMenuScene?: string | undefined;
2946
+ gameScene?: string | undefined;
2947
+ } | undefined;
2928
2948
  } | undefined;
2929
2949
  screens?: {
2930
2950
  screens?: {
@@ -3958,10 +3978,12 @@ export declare const sourceAllStores: {
3958
3978
  }, {
3959
3979
  generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
3960
3980
  loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
3961
- changeScene(newScene: import("../scenes/scene-types").SceneKey, options?: Record<string, any> | undefined): void;
3981
+ changeScene(newScene: string, options?: Record<string, any> | undefined): void;
3962
3982
  getSceneConfig(sceneId: string): import("../lib").SceneConfig;
3963
3983
  onEngineSplashFinished(): void;
3964
3984
  finishedScene(sceneId: string): void;
3985
+ goToStartMenuScene(): void;
3986
+ goToGameScene(): void;
3965
3987
  addNewScene(sceneConfig: import("../lib").SceneConfig): void;
3966
3988
  }>;
3967
3989
  readonly save: "scenes";
@@ -9,3 +9,4 @@ export * from '../exports/components';
9
9
  export * from '../exports/utils';
10
10
  export * from '../exports/optionals';
11
11
  export * from '../exports/plugins-list';
12
+ export * from '../exports/scenes';
@@ -0,0 +1,2 @@
1
+ export type { SceneConfig } from '../scenes/scene-types';
2
+ export { BuiltInScene } from '../scenes/default-scenes';
@@ -16,4 +16,3 @@ export { useTooltips } from '../stores/tooltip-store';
16
16
  export { useVM } from '../stores/vm-store';
17
17
  export { useAchievements } from '../stores/achievements-store';
18
18
  export { useScenes } from '../stores/scenes-store';
19
- export type { SceneConfig } from '../scenes/scene-types';