narrat 3.10.3 → 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.
- package/dist/config/common-config.d.ts +11 -7
- package/dist/config/config-input.d.ts +8 -6
- package/dist/data/all-stores.d.ts +24 -15
- 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/inputs/Inputs.d.ts +1 -0
- package/dist/narrat.es.js +3533 -3509
- 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 +16 -12
- package/dist/stores/scenes-store.d.ts +5 -2
- package/dist/style.css +1 -1
- package/dist/utils/data-helpers.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,10 +1,7 @@
|
|
|
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").
|
|
5
|
-
debugMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
-
jumpMenu: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
-
}>>;
|
|
4
|
+
export declare const HotkeysConfigSchema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>>;
|
|
8
5
|
export type HotkeysConfig = Static<typeof HotkeysConfigSchema>;
|
|
9
6
|
export declare const DialogPanelConfigSchema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
10
7
|
animateText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -109,6 +106,11 @@ export type SavesConfig = Static<typeof SavesConfigSchema>;
|
|
|
109
106
|
export declare const ScriptsConfigSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
110
107
|
export type ScriptsConfig = Static<typeof ScriptsConfigSchema>;
|
|
111
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>;
|
|
112
114
|
export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObject<{
|
|
113
115
|
baseAssetsPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
114
116
|
baseDataPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -239,9 +241,10 @@ export declare const CommonConfigInputSchema: import("@sinclair/typebox").TObjec
|
|
|
239
241
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
240
242
|
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
241
243
|
}>>;
|
|
242
|
-
hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
243
|
-
|
|
244
|
-
|
|
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>;
|
|
245
248
|
}>>;
|
|
246
249
|
}>;
|
|
247
250
|
export type CommonConfigInput = Static<typeof CommonConfigInputSchema>;
|
|
@@ -268,5 +271,6 @@ export interface CommonConfig {
|
|
|
268
271
|
debugging: DebuggingConfig;
|
|
269
272
|
saves: SavesConfig;
|
|
270
273
|
hotkeys: HotkeysConfig;
|
|
274
|
+
scenes: ScenesConfig;
|
|
271
275
|
}
|
|
272
276
|
export declare const defaultCommonConfig: CommonConfig;
|
|
@@ -700,9 +700,10 @@ export declare const ConfigInputSchemaWithCommon: import("@sinclair/typebox").TI
|
|
|
700
700
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
701
701
|
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
702
702
|
}>>;
|
|
703
|
-
hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
704
|
-
|
|
705
|
-
|
|
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>;
|
|
706
707
|
}>>;
|
|
707
708
|
}>;
|
|
708
709
|
}>]>;
|
|
@@ -1538,9 +1539,10 @@ export declare const ConfigInputSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
1538
1539
|
runOnReload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1539
1540
|
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1540
1541
|
}>>;
|
|
1541
|
-
hotkeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
1542
|
-
|
|
1543
|
-
|
|
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>;
|
|
1544
1546
|
}>>;
|
|
1545
1547
|
}>;
|
|
1546
1548
|
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -478,9 +478,10 @@ export declare const sourceAllStores: {
|
|
|
478
478
|
slots: number;
|
|
479
479
|
mode: string;
|
|
480
480
|
} | undefined;
|
|
481
|
-
hotkeys?:
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
hotkeys?: Record<string, string | boolean> | undefined;
|
|
482
|
+
scenes?: {
|
|
483
|
+
startMenuScene?: string | undefined;
|
|
484
|
+
gameScene?: string | undefined;
|
|
484
485
|
} | undefined;
|
|
485
486
|
gameTitle: string;
|
|
486
487
|
saveFileName: string;
|
|
@@ -1146,9 +1147,10 @@ export declare const sourceAllStores: {
|
|
|
1146
1147
|
slots: number;
|
|
1147
1148
|
mode: string;
|
|
1148
1149
|
} | undefined;
|
|
1149
|
-
hotkeys?:
|
|
1150
|
-
|
|
1151
|
-
|
|
1150
|
+
hotkeys?: Record<string, string | boolean> | undefined;
|
|
1151
|
+
scenes?: {
|
|
1152
|
+
startMenuScene?: string | undefined;
|
|
1153
|
+
gameScene?: string | undefined;
|
|
1152
1154
|
} | undefined;
|
|
1153
1155
|
gameTitle: string;
|
|
1154
1156
|
saveFileName: string;
|
|
@@ -1814,9 +1816,10 @@ export declare const sourceAllStores: {
|
|
|
1814
1816
|
slots: number;
|
|
1815
1817
|
mode: string;
|
|
1816
1818
|
} | undefined;
|
|
1817
|
-
hotkeys?:
|
|
1818
|
-
|
|
1819
|
-
|
|
1819
|
+
hotkeys?: Record<string, string | boolean> | undefined;
|
|
1820
|
+
scenes?: {
|
|
1821
|
+
startMenuScene?: string | undefined;
|
|
1822
|
+
gameScene?: string | undefined;
|
|
1820
1823
|
} | undefined;
|
|
1821
1824
|
gameTitle: string;
|
|
1822
1825
|
saveFileName: string;
|
|
@@ -2482,9 +2485,10 @@ export declare const sourceAllStores: {
|
|
|
2482
2485
|
slots: number;
|
|
2483
2486
|
mode: string;
|
|
2484
2487
|
} | undefined;
|
|
2485
|
-
hotkeys?:
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
+
hotkeys?: Record<string, string | boolean> | undefined;
|
|
2489
|
+
scenes?: {
|
|
2490
|
+
startMenuScene?: string | undefined;
|
|
2491
|
+
gameScene?: string | undefined;
|
|
2488
2492
|
} | undefined;
|
|
2489
2493
|
gameTitle: string;
|
|
2490
2494
|
saveFileName: string;
|
|
@@ -2935,8 +2939,11 @@ export declare const sourceAllStores: {
|
|
|
2935
2939
|
mode?: string | undefined;
|
|
2936
2940
|
} | undefined;
|
|
2937
2941
|
hotkeys?: {
|
|
2938
|
-
|
|
2939
|
-
|
|
2942
|
+
[x: string]: string | boolean | undefined;
|
|
2943
|
+
} | undefined;
|
|
2944
|
+
scenes?: {
|
|
2945
|
+
startMenuScene?: string | undefined;
|
|
2946
|
+
gameScene?: string | undefined;
|
|
2940
2947
|
} | undefined;
|
|
2941
2948
|
} | undefined;
|
|
2942
2949
|
screens?: {
|
|
@@ -3971,10 +3978,12 @@ export declare const sourceAllStores: {
|
|
|
3971
3978
|
}, {
|
|
3972
3979
|
generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
|
|
3973
3980
|
loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
|
|
3974
|
-
changeScene(newScene:
|
|
3981
|
+
changeScene(newScene: string, options?: Record<string, any> | undefined): void;
|
|
3975
3982
|
getSceneConfig(sceneId: string): import("../lib").SceneConfig;
|
|
3976
3983
|
onEngineSplashFinished(): void;
|
|
3977
3984
|
finishedScene(sceneId: string): void;
|
|
3985
|
+
goToStartMenuScene(): void;
|
|
3986
|
+
goToGameScene(): void;
|
|
3978
3987
|
addNewScene(sceneConfig: import("../lib").SceneConfig): void;
|
|
3979
3988
|
}>;
|
|
3980
3989
|
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';
|
package/dist/inputs/Inputs.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export declare class Inputs extends EventTarget {
|
|
|
100
100
|
previous: GamepadButton;
|
|
101
101
|
} | null;
|
|
102
102
|
debugGamepad(): void;
|
|
103
|
+
getKeybindKey(config: ButtonAction, keybind: ButtonKeybind): ButtonKeybind;
|
|
103
104
|
update(): void;
|
|
104
105
|
}
|
|
105
106
|
export declare const inputs: Inputs;
|