narrat 3.10.4 → 3.11.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.
- package/dist/config/common-config.d.ts +12 -0
- package/dist/config/config-input.d.ts +10 -0
- package/dist/data/all-stores.d.ts +29 -1
- package/dist/exports/exports.d.ts +1 -0
- package/dist/exports/scenes.d.ts +2 -0
- package/dist/exports/stores.d.ts +0 -1
- package/dist/narrat.es.js +3704 -3680
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +41 -41
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +2 -1
- package/dist/scenes/default-scenes.d.ts +7 -0
- package/dist/stores/main-store.d.ts +20 -0
- package/dist/stores/scenes-store.d.ts +6 -2
- package/dist/style.css +1 -1
- package/dist/utils/data-helpers.d.ts +5 -0
- package/package.json +1 -1
|
@@ -106,6 +106,12 @@ 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
|
+
gameSplashScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
113
|
+
}>;
|
|
114
|
+
export type ScenesConfig = Static<typeof ScenesConfigSchema>;
|
|
109
115
|
export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObject<{
|
|
110
116
|
baseAssetsPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
111
117
|
baseDataPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -237,6 +243,11 @@ export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObjec
|
|
|
237
243
|
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
238
244
|
}>>;
|
|
239
245
|
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]>>>;
|
|
246
|
+
scenes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
247
|
+
startMenuScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
248
|
+
gameScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
249
|
+
gameSplashScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
250
|
+
}>>;
|
|
240
251
|
}>;
|
|
241
252
|
export type CommonConfigInput = Static<typeof CommonConfigInputSchema>;
|
|
242
253
|
export interface CommonConfig {
|
|
@@ -262,5 +273,6 @@ export interface CommonConfig {
|
|
|
262
273
|
debugging: DebuggingConfig;
|
|
263
274
|
saves: SavesConfig;
|
|
264
275
|
hotkeys: HotkeysConfig;
|
|
276
|
+
scenes: ScenesConfig;
|
|
265
277
|
}
|
|
266
278
|
export declare const defaultCommonConfig: CommonConfig;
|
|
@@ -701,6 +701,11 @@ 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
|
+
gameSplashScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
708
|
+
}>>;
|
|
704
709
|
}>;
|
|
705
710
|
}>]>;
|
|
706
711
|
export type ConfigInputWithCommon = Static<typeof ConfigInputSchemaWithCommon>;
|
|
@@ -1536,6 +1541,11 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
1536
1541
|
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1537
1542
|
}>>;
|
|
1538
1543
|
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]>>>;
|
|
1544
|
+
scenes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
1545
|
+
startMenuScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1546
|
+
gameScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1547
|
+
gameSplashScene: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1548
|
+
}>>;
|
|
1539
1549
|
}>;
|
|
1540
1550
|
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
1541
1551
|
screens: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
@@ -479,6 +479,11 @@ 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
|
+
gameSplashScene?: string | undefined;
|
|
486
|
+
} | undefined;
|
|
482
487
|
gameTitle: string;
|
|
483
488
|
saveFileName: string;
|
|
484
489
|
layout: {
|
|
@@ -1144,6 +1149,11 @@ export declare const sourceAllStores: {
|
|
|
1144
1149
|
mode: string;
|
|
1145
1150
|
} | undefined;
|
|
1146
1151
|
hotkeys?: Record<string, string | boolean> | undefined;
|
|
1152
|
+
scenes?: {
|
|
1153
|
+
startMenuScene?: string | undefined;
|
|
1154
|
+
gameScene?: string | undefined;
|
|
1155
|
+
gameSplashScene?: string | undefined;
|
|
1156
|
+
} | undefined;
|
|
1147
1157
|
gameTitle: string;
|
|
1148
1158
|
saveFileName: string;
|
|
1149
1159
|
layout: {
|
|
@@ -1809,6 +1819,11 @@ export declare const sourceAllStores: {
|
|
|
1809
1819
|
mode: string;
|
|
1810
1820
|
} | undefined;
|
|
1811
1821
|
hotkeys?: Record<string, string | boolean> | undefined;
|
|
1822
|
+
scenes?: {
|
|
1823
|
+
startMenuScene?: string | undefined;
|
|
1824
|
+
gameScene?: string | undefined;
|
|
1825
|
+
gameSplashScene?: string | undefined;
|
|
1826
|
+
} | undefined;
|
|
1812
1827
|
gameTitle: string;
|
|
1813
1828
|
saveFileName: string;
|
|
1814
1829
|
layout: {
|
|
@@ -2474,6 +2489,11 @@ export declare const sourceAllStores: {
|
|
|
2474
2489
|
mode: string;
|
|
2475
2490
|
} | undefined;
|
|
2476
2491
|
hotkeys?: Record<string, string | boolean> | undefined;
|
|
2492
|
+
scenes?: {
|
|
2493
|
+
startMenuScene?: string | undefined;
|
|
2494
|
+
gameScene?: string | undefined;
|
|
2495
|
+
gameSplashScene?: string | undefined;
|
|
2496
|
+
} | undefined;
|
|
2477
2497
|
gameTitle: string;
|
|
2478
2498
|
saveFileName: string;
|
|
2479
2499
|
layout: {
|
|
@@ -2925,6 +2945,11 @@ export declare const sourceAllStores: {
|
|
|
2925
2945
|
hotkeys?: {
|
|
2926
2946
|
[x: string]: string | boolean | undefined;
|
|
2927
2947
|
} | undefined;
|
|
2948
|
+
scenes?: {
|
|
2949
|
+
startMenuScene?: string | undefined;
|
|
2950
|
+
gameScene?: string | undefined;
|
|
2951
|
+
gameSplashScene?: string | undefined;
|
|
2952
|
+
} | undefined;
|
|
2928
2953
|
} | undefined;
|
|
2929
2954
|
screens?: {
|
|
2930
2955
|
screens?: {
|
|
@@ -3958,10 +3983,13 @@ export declare const sourceAllStores: {
|
|
|
3958
3983
|
}, {
|
|
3959
3984
|
generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
|
|
3960
3985
|
loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
|
|
3961
|
-
changeScene(newScene:
|
|
3986
|
+
changeScene(newScene: string, options?: Record<string, any> | undefined): void;
|
|
3962
3987
|
getSceneConfig(sceneId: string): import("../lib").SceneConfig;
|
|
3963
3988
|
onEngineSplashFinished(): void;
|
|
3964
3989
|
finishedScene(sceneId: string): void;
|
|
3990
|
+
goToGameSplashScene(): void;
|
|
3991
|
+
goToStartMenuScene(): void;
|
|
3992
|
+
goToGameScene(): void;
|
|
3965
3993
|
addNewScene(sceneConfig: import("../lib").SceneConfig): void;
|
|
3966
3994
|
}>;
|
|
3967
3995
|
readonly save: "scenes";
|
package/dist/exports/stores.d.ts
CHANGED
|
@@ -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';
|