narrat 4.1.12 → 4.1.13
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/data/all-stores.d.ts +93 -93
- package/dist/{index-WARXsvba.js → index-CEippifi.js} +2 -2
- package/dist/{index-WARXsvba.js.map → index-CEippifi.js.map} +1 -1
- package/dist/{lib-BoDhiA1S.js → lib-7a7i7jg1.js} +897 -897
- package/dist/{lib-BoDhiA1S.js.map → lib-7a7i7jg1.js.map} +1 -1
- package/dist/narrat.es.js +1 -1
- package/dist/narrat.umd.js +99 -99
- package/dist/narrat.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -4005,6 +4005,54 @@ export declare const sourceAllStores: {
|
|
|
4005
4005
|
readonly config: "items";
|
|
4006
4006
|
readonly save: "inventory";
|
|
4007
4007
|
};
|
|
4008
|
+
readonly fonts: {
|
|
4009
|
+
readonly store: import("pinia").StoreDefinition<"fonts-store", import("../stores/fonts-store").FontsStoreState, {}, {
|
|
4010
|
+
getCurrentFont(): string | null;
|
|
4011
|
+
updateConfig(config: import("../config/fonts-config").FontsConfig): void;
|
|
4012
|
+
generateSaveData(): {};
|
|
4013
|
+
loadSaveData(data: import("../stores/fonts-store").FontsStoreSave): void;
|
|
4014
|
+
reset(config: import("../config/fonts-config").FontsConfig): void;
|
|
4015
|
+
loadFontFile(name: string, file: import("../config/fonts-config").FontFileConfig | string): Promise<boolean>;
|
|
4016
|
+
isFontConfigObject(font: string | import("../config/fonts-config").FontFileConfig): font is import("../config/fonts-config").FontFileConfig;
|
|
4017
|
+
loadNewFont(fontId: string, fontData: import("../config/fonts-config").FontConfig): Promise<void>;
|
|
4018
|
+
getFontSets(): {
|
|
4019
|
+
[x: string]: {
|
|
4020
|
+
[x: string]: {
|
|
4021
|
+
name: string;
|
|
4022
|
+
files: (string | {
|
|
4023
|
+
options: {
|
|
4024
|
+
[x: string]: any;
|
|
4025
|
+
};
|
|
4026
|
+
file: string;
|
|
4027
|
+
})[];
|
|
4028
|
+
fontFamily: string;
|
|
4029
|
+
};
|
|
4030
|
+
};
|
|
4031
|
+
};
|
|
4032
|
+
loadIfNeeded(fontId: string, fontData: import("../config/fonts-config").FontConfig): Promise<void>;
|
|
4033
|
+
loadFontSet(fontSetId: string): Promise<void>;
|
|
4034
|
+
setFontSet(fontSetId: string | null): Promise<void>;
|
|
4035
|
+
setFontVariables(fontSet: import("../config/fonts-config").FontSetConfig): void;
|
|
4036
|
+
}>;
|
|
4037
|
+
readonly save: "fonts";
|
|
4038
|
+
readonly config: "fonts";
|
|
4039
|
+
readonly avoidReset: false;
|
|
4040
|
+
};
|
|
4041
|
+
readonly localization: {
|
|
4042
|
+
readonly store: import("pinia").StoreDefinition<"localization", import("../stores/localization-store").LocalizationState, {}, {
|
|
4043
|
+
reset(config: import("../config/localization-config").LocalizationConfig): void;
|
|
4044
|
+
generateGlobalSaveData(): import("../stores/localization-store").LocalizationGlobalSaveData;
|
|
4045
|
+
loadGlobalSaveData(save: import("../stores/localization-store").LocalizationGlobalSaveData): void;
|
|
4046
|
+
generateSaveData(): import("../stores/localization-store").LocalizationLocalSaveData;
|
|
4047
|
+
loadSaveData(save: import("../stores/localization-store").LocalizationLocalSaveData): void;
|
|
4048
|
+
setCurrentLanguage(language: string, save?: boolean): void;
|
|
4049
|
+
languageChanged(language: string): void;
|
|
4050
|
+
setPluralCount(count: number): void;
|
|
4051
|
+
}>;
|
|
4052
|
+
readonly save: "localization";
|
|
4053
|
+
readonly globalSave: "localization";
|
|
4054
|
+
readonly config: "localization";
|
|
4055
|
+
};
|
|
4008
4056
|
readonly menu: {
|
|
4009
4057
|
readonly store: import("pinia").StoreDefinition<"menu", import("../stores/menu-store").MenuStoreState, {
|
|
4010
4058
|
showSkills(): boolean;
|
|
@@ -4096,29 +4144,6 @@ export declare const sourceAllStores: {
|
|
|
4096
4144
|
}>;
|
|
4097
4145
|
readonly save: "rendering";
|
|
4098
4146
|
};
|
|
4099
|
-
readonly screens: {
|
|
4100
|
-
readonly store: import("pinia").StoreDefinition<"screens", import("../stores/screens-store").ScreenState, {
|
|
4101
|
-
nonEmptyLayers(state: import("../stores/screens-store").ScreenState): import("../stores/screens-store").FullLayerState[];
|
|
4102
|
-
isTransitioning(state: import("../stores/screens-store").ScreenState): boolean;
|
|
4103
|
-
}, {
|
|
4104
|
-
setScreen(screen: string, layer: number, transition?: import("../utils/transition").AddTransition): Promise<void>;
|
|
4105
|
-
finishTransition(layer: number): void;
|
|
4106
|
-
transitionScreen(screen: string, transition: import("../utils/transition").AddTransition, layer?: number): Promise<void>;
|
|
4107
|
-
emptyLayer(layer: number, transition?: import("../utils/transition").AddTransition): Promise<void>;
|
|
4108
|
-
updateConfig(config: import("../lib").Config["screens"]): void;
|
|
4109
|
-
reset(config: import("../lib").Config["screens"]): void;
|
|
4110
|
-
changeButton(button: string, newValue: import("../stores/screens-store").ButtonStateValue): void;
|
|
4111
|
-
generateSaveData(): import("../stores/screens-store").ScreenSave;
|
|
4112
|
-
loadSaveData(data: import("../stores/screens-store").ScreenSave): void;
|
|
4113
|
-
isButtonDisabled(button: string): boolean;
|
|
4114
|
-
isButtonInteractible(button: string): boolean;
|
|
4115
|
-
isButtonClickable(button: string): boolean;
|
|
4116
|
-
getButtonState(button: string): import("../stores/screens-store").ButtonStateValue;
|
|
4117
|
-
clickOnButton(button: string): void;
|
|
4118
|
-
}>;
|
|
4119
|
-
readonly config: "screens";
|
|
4120
|
-
readonly save: "screens";
|
|
4121
|
-
};
|
|
4122
4147
|
readonly sprites: {
|
|
4123
4148
|
readonly store: import("pinia").StoreDefinition<"screenObjects", import("../stores/screen-objects-store").ScreenObjectsStoreState, {}, {
|
|
4124
4149
|
addObject(object: import("../stores/screen-objects-store").ScreenObjectState): void;
|
|
@@ -4144,6 +4169,51 @@ export declare const sourceAllStores: {
|
|
|
4144
4169
|
}>;
|
|
4145
4170
|
readonly save: "screenObjects";
|
|
4146
4171
|
};
|
|
4172
|
+
readonly scenes: {
|
|
4173
|
+
readonly store: import("pinia").StoreDefinition<"scenes-store", import("../stores/scenes-store").ScenesStoreState, {
|
|
4174
|
+
isPlaying(state: {
|
|
4175
|
+
scenes: Record<string, import("../lib").SceneConfig>;
|
|
4176
|
+
currentOptions: Record<string, any>;
|
|
4177
|
+
activeScene: string;
|
|
4178
|
+
} & import("pinia").PiniaCustomStateProperties<import("../stores/scenes-store").ScenesStoreState>): boolean;
|
|
4179
|
+
}, {
|
|
4180
|
+
generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
|
|
4181
|
+
loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
|
|
4182
|
+
changeScene(newScene: string | import("../lib").BuiltInScene, options?: Record<string, any>): void;
|
|
4183
|
+
getSceneConfig(sceneId: string): import("../lib").SceneConfig;
|
|
4184
|
+
onEngineSplashFinished(): void;
|
|
4185
|
+
finishedScene(sceneId: string): void;
|
|
4186
|
+
goToGameSplashScene(): void;
|
|
4187
|
+
goToStartMenuScene(): void;
|
|
4188
|
+
goToGameScene(): void;
|
|
4189
|
+
addNewScene(sceneConfig: import("../lib").SceneConfig): void;
|
|
4190
|
+
}>;
|
|
4191
|
+
readonly save: "scenes";
|
|
4192
|
+
readonly avoidReset: true;
|
|
4193
|
+
};
|
|
4194
|
+
readonly screens: {
|
|
4195
|
+
readonly store: import("pinia").StoreDefinition<"screens", import("../stores/screens-store").ScreenState, {
|
|
4196
|
+
nonEmptyLayers(state: import("../stores/screens-store").ScreenState): import("../stores/screens-store").FullLayerState[];
|
|
4197
|
+
isTransitioning(state: import("../stores/screens-store").ScreenState): boolean;
|
|
4198
|
+
}, {
|
|
4199
|
+
setScreen(screen: string, layer: number, transition?: import("../utils/transition").AddTransition): Promise<void>;
|
|
4200
|
+
finishTransition(layer: number): void;
|
|
4201
|
+
transitionScreen(screen: string, transition: import("../utils/transition").AddTransition, layer?: number): Promise<void>;
|
|
4202
|
+
emptyLayer(layer: number, transition?: import("../utils/transition").AddTransition): Promise<void>;
|
|
4203
|
+
updateConfig(config: import("../lib").Config["screens"]): void;
|
|
4204
|
+
reset(config: import("../lib").Config["screens"]): void;
|
|
4205
|
+
changeButton(button: string, newValue: import("../stores/screens-store").ButtonStateValue): void;
|
|
4206
|
+
generateSaveData(): import("../stores/screens-store").ScreenSave;
|
|
4207
|
+
loadSaveData(data: import("../stores/screens-store").ScreenSave): void;
|
|
4208
|
+
isButtonDisabled(button: string): boolean;
|
|
4209
|
+
isButtonInteractible(button: string): boolean;
|
|
4210
|
+
isButtonClickable(button: string): boolean;
|
|
4211
|
+
getButtonState(button: string): import("../stores/screens-store").ButtonStateValue;
|
|
4212
|
+
clickOnButton(button: string): void;
|
|
4213
|
+
}>;
|
|
4214
|
+
readonly config: "screens";
|
|
4215
|
+
readonly save: "screens";
|
|
4216
|
+
};
|
|
4147
4217
|
readonly settings: {
|
|
4148
4218
|
readonly store: import("pinia").StoreDefinition<"settings", import("../stores/settings-store").GameUserSettings, {}, {
|
|
4149
4219
|
reset(config: import("../config/common-config").CommonConfig): void;
|
|
@@ -4422,76 +4492,6 @@ export declare const sourceAllStores: {
|
|
|
4422
4492
|
readonly save: "vm";
|
|
4423
4493
|
readonly globalSave: "data";
|
|
4424
4494
|
};
|
|
4425
|
-
readonly scenes: {
|
|
4426
|
-
readonly store: import("pinia").StoreDefinition<"scenes-store", import("../stores/scenes-store").ScenesStoreState, {
|
|
4427
|
-
isPlaying(state: {
|
|
4428
|
-
scenes: Record<string, import("../lib").SceneConfig>;
|
|
4429
|
-
currentOptions: Record<string, any>;
|
|
4430
|
-
activeScene: string;
|
|
4431
|
-
} & import("pinia").PiniaCustomStateProperties<import("../stores/scenes-store").ScenesStoreState>): boolean;
|
|
4432
|
-
}, {
|
|
4433
|
-
generateSaveData(): import("../stores/scenes-store").ScenesStoreSave;
|
|
4434
|
-
loadSaveData(saveData: import("../stores/scenes-store").ScenesStoreSave): void;
|
|
4435
|
-
changeScene(newScene: string | import("../lib").BuiltInScene, options?: Record<string, any>): void;
|
|
4436
|
-
getSceneConfig(sceneId: string): import("../lib").SceneConfig;
|
|
4437
|
-
onEngineSplashFinished(): void;
|
|
4438
|
-
finishedScene(sceneId: string): void;
|
|
4439
|
-
goToGameSplashScene(): void;
|
|
4440
|
-
goToStartMenuScene(): void;
|
|
4441
|
-
goToGameScene(): void;
|
|
4442
|
-
addNewScene(sceneConfig: import("../lib").SceneConfig): void;
|
|
4443
|
-
}>;
|
|
4444
|
-
readonly save: "scenes";
|
|
4445
|
-
readonly avoidReset: true;
|
|
4446
|
-
};
|
|
4447
|
-
readonly fonts: {
|
|
4448
|
-
readonly store: import("pinia").StoreDefinition<"fonts-store", import("../stores/fonts-store").FontsStoreState, {}, {
|
|
4449
|
-
getCurrentFont(): string | null;
|
|
4450
|
-
updateConfig(config: import("../config/fonts-config").FontsConfig): void;
|
|
4451
|
-
generateSaveData(): {};
|
|
4452
|
-
loadSaveData(data: import("../stores/fonts-store").FontsStoreSave): void;
|
|
4453
|
-
reset(config: import("../config/fonts-config").FontsConfig): void;
|
|
4454
|
-
loadFontFile(name: string, file: import("../config/fonts-config").FontFileConfig | string): Promise<boolean>;
|
|
4455
|
-
isFontConfigObject(font: string | import("../config/fonts-config").FontFileConfig): font is import("../config/fonts-config").FontFileConfig;
|
|
4456
|
-
loadNewFont(fontId: string, fontData: import("../config/fonts-config").FontConfig): Promise<void>;
|
|
4457
|
-
getFontSets(): {
|
|
4458
|
-
[x: string]: {
|
|
4459
|
-
[x: string]: {
|
|
4460
|
-
name: string;
|
|
4461
|
-
files: (string | {
|
|
4462
|
-
options: {
|
|
4463
|
-
[x: string]: any;
|
|
4464
|
-
};
|
|
4465
|
-
file: string;
|
|
4466
|
-
})[];
|
|
4467
|
-
fontFamily: string;
|
|
4468
|
-
};
|
|
4469
|
-
};
|
|
4470
|
-
};
|
|
4471
|
-
loadIfNeeded(fontId: string, fontData: import("../config/fonts-config").FontConfig): Promise<void>;
|
|
4472
|
-
loadFontSet(fontSetId: string): Promise<void>;
|
|
4473
|
-
setFontSet(fontSetId: string | null): Promise<void>;
|
|
4474
|
-
setFontVariables(fontSet: import("../config/fonts-config").FontSetConfig): void;
|
|
4475
|
-
}>;
|
|
4476
|
-
readonly save: "fonts";
|
|
4477
|
-
readonly config: "fonts";
|
|
4478
|
-
readonly avoidReset: false;
|
|
4479
|
-
};
|
|
4480
|
-
readonly localization: {
|
|
4481
|
-
readonly store: import("pinia").StoreDefinition<"localization", import("../stores/localization-store").LocalizationState, {}, {
|
|
4482
|
-
reset(config: import("../config/localization-config").LocalizationConfig): void;
|
|
4483
|
-
generateGlobalSaveData(): import("../stores/localization-store").LocalizationGlobalSaveData;
|
|
4484
|
-
loadGlobalSaveData(save: import("../stores/localization-store").LocalizationGlobalSaveData): void;
|
|
4485
|
-
generateSaveData(): import("../stores/localization-store").LocalizationLocalSaveData;
|
|
4486
|
-
loadSaveData(save: import("../stores/localization-store").LocalizationLocalSaveData): void;
|
|
4487
|
-
setCurrentLanguage(language: string, save?: boolean): void;
|
|
4488
|
-
languageChanged(language: string): void;
|
|
4489
|
-
setPluralCount(count: number): void;
|
|
4490
|
-
}>;
|
|
4491
|
-
readonly save: "localization";
|
|
4492
|
-
readonly globalSave: "localization";
|
|
4493
|
-
readonly config: "localization";
|
|
4494
|
-
};
|
|
4495
4495
|
};
|
|
4496
4496
|
export type AllStores = typeof sourceAllStores;
|
|
4497
4497
|
export type StoreKey = keyof AllStores;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as rw } from "./lib-
|
|
1
|
+
import { g as rw } from "./lib-7a7i7jg1.js";
|
|
2
2
|
function Ar(n) {
|
|
3
3
|
return Array.isArray(n);
|
|
4
4
|
}
|
|
@@ -35979,4 +35979,4 @@ export {
|
|
|
35979
35979
|
Sz as toTextContent,
|
|
35980
35980
|
P0 as valueType
|
|
35981
35981
|
};
|
|
35982
|
-
//# sourceMappingURL=index-
|
|
35982
|
+
//# sourceMappingURL=index-CEippifi.js.map
|