narrat 2.7.1 → 2.7.2
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/LICENSE +21 -21
- package/README.md +128 -128
- package/dist/app.vue.d.ts +79 -79
- package/dist/components/MainMenu.vue.d.ts +7 -7
- package/dist/components/SkillsWindow.vue.d.ts +22 -22
- package/dist/components/StartMenu.vue.d.ts +46 -46
- package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +46 -46
- package/dist/components/debug/debug-menu.vue.d.ts +49 -49
- package/dist/components/dialog-picture.vue.d.ts +11 -11
- package/dist/components/engine-splash/engine-splash.vue.d.ts +54 -54
- package/dist/components/game-dialog.vue.d.ts +65 -65
- package/dist/components/game-splash/game-splash.vue.d.ts +46 -46
- package/dist/components/hud.vue.d.ts +14 -14
- package/dist/components/in-game.vue.d.ts +46 -46
- package/dist/components/inventory/inventory-section.vue.d.ts +61 -61
- package/dist/components/inventory/item-details.vue.d.ts +76 -76
- package/dist/components/inventory-ui.vue.d.ts +28 -28
- package/dist/components/loading-bar.vue.d.ts +10 -10
- package/dist/components/menu-buttons.vue.d.ts +46 -46
- package/dist/components/notification-toast.vue.d.ts +6 -6
- package/dist/components/quests/QuestDetails.vue.d.ts +64 -64
- package/dist/components/quests/QuestDisplay.vue.d.ts +64 -64
- package/dist/components/quests/quests-list-section.vue.d.ts +70 -70
- package/dist/components/quests-ui.vue.d.ts +22 -22
- package/dist/components/save-slots.vue.d.ts +79 -79
- package/dist/components/saves/save-slot-ui.vue.d.ts +108 -108
- package/dist/components/screen-layer.vue.d.ts +76 -76
- package/dist/components/screens.vue.d.ts +46 -46
- package/dist/components/tabs/TabsController.vue.d.ts +72 -72
- package/dist/components/tabs/tab-selector.vue.d.ts +82 -82
- package/dist/components/transitions/NarratTransition.vue.d.ts +97 -97
- package/dist/components/utils/alert-modal.vue.d.ts +82 -82
- package/dist/components/utils/modal-window.vue.d.ts +18 -18
- package/dist/components/utils/yes-no.vue.d.ts +106 -106
- package/dist/components/volume-controls.vue.d.ts +18 -18
- package/dist/config.d.ts +244 -244
- package/dist/constants.d.ts +10 -10
- package/dist/defaultConfig.d.ts +2 -2
- package/dist/demo/demo.d.ts +1 -1
- package/dist/dialog-box.vue.d.ts +71 -71
- package/dist/exports/components.d.ts +2 -2
- package/dist/exports/config.d.ts +1 -1
- package/dist/exports/display.d.ts +2 -2
- package/dist/exports/events.d.ts +1 -1
- package/dist/exports/others.d.ts +1 -1
- package/dist/exports/plugins.d.ts +38 -38
- package/dist/exports/stores.d.ts +11 -11
- package/dist/favicon.svg +30 -30
- package/dist/gamepad/gamepad.d.ts +1 -1
- package/dist/lib.d.ts +18 -18
- package/dist/main.d.ts +7 -7
- package/dist/menu-buttons/menu-buttons.d.ts +7 -7
- package/dist/narrat.es.js +5455 -5433
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +90 -90
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +11 -11
- package/dist/stores/audio-store.d.ts +56 -56
- package/dist/stores/dialog-store.d.ts +35 -35
- package/dist/stores/hud-stats-store.d.ts +22 -22
- package/dist/stores/inventory-store.d.ts +38 -38
- package/dist/stores/main-store.d.ts +936 -929
- package/dist/stores/menu-store.d.ts +45 -45
- package/dist/stores/notification-store.d.ts +15 -15
- package/dist/stores/quest-log.d.ts +39 -39
- package/dist/stores/rendering-store.d.ts +19 -19
- package/dist/stores/screens-store.d.ts +33 -33
- package/dist/stores/skills.d.ts +41 -41
- package/dist/stores/sprites-store.d.ts +52 -48
- package/dist/stores/vm-store.d.ts +181 -180
- package/dist/types/app-types.d.ts +9 -9
- package/dist/types/character-types.d.ts +27 -27
- package/dist/types/dialog-box-types.d.ts +11 -11
- package/dist/types/game-save.d.ts +40 -40
- package/dist/types/parser.d.ts +93 -93
- package/dist/types/state.d.ts +3 -3
- package/dist/utils/InputsListener.d.ts +9 -9
- package/dist/utils/ajax.d.ts +2 -2
- package/dist/utils/audio-loader.d.ts +10 -10
- package/dist/utils/characters.d.ts +5 -5
- package/dist/utils/data-helpers.d.ts +29 -29
- package/dist/utils/debounce.d.ts +14 -14
- package/dist/utils/error-handling.d.ts +4 -4
- package/dist/utils/helpers.d.ts +6 -6
- package/dist/utils/images-loader.d.ts +7 -7
- package/dist/utils/logger.d.ts +11 -11
- package/dist/utils/object-iterators.d.ts +9 -8
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/randomId.d.ts +1 -1
- package/dist/utils/save-helpers.d.ts +16 -16
- package/dist/utils/skillchecks.d.ts +17 -17
- package/dist/utils/string-helpers.d.ts +4 -4
- package/dist/utils/time-helpers.d.ts +2 -2
- package/dist/utils/transition.d.ts +21 -21
- package/dist/utils/type-utils.d.ts +2 -2
- package/dist/utils/typed-emitter.d.ts +18 -18
- package/dist/utils/vue-directives.d.ts +2 -2
- package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
- package/dist/vm/commands/audio-commands.d.ts +15 -15
- package/dist/vm/commands/choice.d.ts +38 -38
- package/dist/vm/commands/clear_dialog.d.ts +2 -2
- package/dist/vm/commands/command-helpers.d.ts +3 -3
- package/dist/vm/commands/command-plugin.d.ts +43 -43
- package/dist/vm/commands/flow-commands.d.ts +24 -24
- package/dist/vm/commands/if.d.ts +10 -10
- package/dist/vm/commands/index.d.ts +2 -2
- package/dist/vm/commands/inventory-commands.d.ts +15 -15
- package/dist/vm/commands/logic-command.d.ts +42 -42
- package/dist/vm/commands/math-commands.d.ts +30 -30
- package/dist/vm/commands/notify.d.ts +6 -6
- package/dist/vm/commands/quest-commands.d.ts +30 -30
- package/dist/vm/commands/random-commands.d.ts +10 -10
- package/dist/vm/commands/screen-commands.d.ts +18 -18
- package/dist/vm/commands/set.d.ts +6 -6
- package/dist/vm/commands/skill-commands.d.ts +33 -33
- package/dist/vm/commands/sprite-commands.d.ts +9 -9
- package/dist/vm/commands/stats-commands.d.ts +12 -12
- package/dist/vm/commands/string-commands.d.ts +9 -9
- package/dist/vm/commands/text-field.d.ts +7 -7
- package/dist/vm/commands/text.d.ts +14 -14
- package/dist/vm/commands/wait.d.ts +4 -4
- package/dist/vm/vm-helpers.d.ts +19 -19
- package/dist/vm/vm-parser.d.ts +19 -19
- package/dist/vm/vm-parser.test.d.ts +1 -1
- package/dist/vm/vm.d.ts +21 -21
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { NarratPluginObject } from '../exports/plugins';
|
|
2
|
-
export declare class NarratPlugin<T = any> implements NarratPluginObject<T> {
|
|
3
|
-
onPageLoaded(): void;
|
|
4
|
-
onNarratSetup(): void;
|
|
5
|
-
onAppMounted(): void;
|
|
6
|
-
onAssetsLoaded(): void;
|
|
7
|
-
onGameSetup(): void;
|
|
8
|
-
onGameStart(): void;
|
|
9
|
-
onGameMounted(): void;
|
|
10
|
-
onGameDismounted(): void;
|
|
11
|
-
}
|
|
1
|
+
import { NarratPluginObject } from '../exports/plugins';
|
|
2
|
+
export declare class NarratPlugin<T = any> implements NarratPluginObject<T> {
|
|
3
|
+
onPageLoaded(): void;
|
|
4
|
+
onNarratSetup(): void;
|
|
5
|
+
onAppMounted(): void;
|
|
6
|
+
onAssetsLoaded(): void;
|
|
7
|
+
onGameSetup(): void;
|
|
8
|
+
onGameStart(): void;
|
|
9
|
+
onGameMounted(): void;
|
|
10
|
+
onGameDismounted(): void;
|
|
11
|
+
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
export declare const audioModesArray: readonly ["music", "ambiant", "sound"];
|
|
2
|
-
export declare const audioModes: {
|
|
3
|
-
sound: "sound";
|
|
4
|
-
music: "music";
|
|
5
|
-
ambiant: "ambiant";
|
|
6
|
-
};
|
|
7
|
-
export declare type AudioModeKey = keyof typeof audioModes;
|
|
8
|
-
export declare type AudioModes = Map<AudioModeKey, AudioModeState>;
|
|
9
|
-
export declare type AudioMode = 'music' | 'ambiance' | 'sound';
|
|
10
|
-
export interface AudioChannel {
|
|
11
|
-
audio: string;
|
|
12
|
-
howlerId: number;
|
|
13
|
-
}
|
|
14
|
-
export declare type AudioModeState = {
|
|
15
|
-
channels: Array<AudioChannel | null>;
|
|
16
|
-
options: {
|
|
17
|
-
volume: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export interface AudioState {
|
|
21
|
-
modes: AudioModes;
|
|
22
|
-
masterVolume: number;
|
|
23
|
-
}
|
|
24
|
-
export interface AudioSaveMode {
|
|
25
|
-
channels: Array<{
|
|
26
|
-
audio: string | null;
|
|
27
|
-
}>;
|
|
28
|
-
options: {
|
|
29
|
-
volume: number;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export declare type AudioSave = {
|
|
33
|
-
modes: {
|
|
34
|
-
[key: string]: AudioSaveMode;
|
|
35
|
-
};
|
|
36
|
-
masterVolume: number;
|
|
37
|
-
};
|
|
38
|
-
export declare const useAudio: import("pinia").StoreDefinition<"audio", AudioState, {}, {
|
|
39
|
-
stopAll(): void;
|
|
40
|
-
stopChannel(mode: AudioModeKey, channelIndex: number): Promise<void>;
|
|
41
|
-
pauseChannel(mode: AudioModeKey, channelIndex: number): Promise<void>;
|
|
42
|
-
playChannel(mode: AudioModeKey, audio: string, channelIndex: number): Promise<void>;
|
|
43
|
-
changeChannel(mode: AudioModeKey, audio: string, channelIndex: number): Promise<void>;
|
|
44
|
-
actuallyStopChannel(channel: AudioChannel): void;
|
|
45
|
-
getAudioChannel(mode: AudioModeKey, channelIndex: number): AudioChannel | null;
|
|
46
|
-
setAudioChannel(mode: AudioModeKey, channelIndex: number, value: AudioChannel | null): void;
|
|
47
|
-
actuallyPlayChannel(mode: AudioModeKey, channelIndex: number, audio: string): Promise<void>;
|
|
48
|
-
reloadAudio(save: AudioSave): void;
|
|
49
|
-
stopSound(key: string): void;
|
|
50
|
-
generateSaveData(): AudioSave;
|
|
51
|
-
loadSaveData(data: AudioSave): void;
|
|
52
|
-
reset(): void;
|
|
53
|
-
setModeVolume(mode: AudioModeKey, volume: number): void;
|
|
54
|
-
setMasterVolume(volume: number): void;
|
|
55
|
-
modeVolume(mode: AudioModeKey): number;
|
|
56
|
-
}>;
|
|
1
|
+
export declare const audioModesArray: readonly ["music", "ambiant", "sound"];
|
|
2
|
+
export declare const audioModes: {
|
|
3
|
+
sound: "sound";
|
|
4
|
+
music: "music";
|
|
5
|
+
ambiant: "ambiant";
|
|
6
|
+
};
|
|
7
|
+
export declare type AudioModeKey = keyof typeof audioModes;
|
|
8
|
+
export declare type AudioModes = Map<AudioModeKey, AudioModeState>;
|
|
9
|
+
export declare type AudioMode = 'music' | 'ambiance' | 'sound';
|
|
10
|
+
export interface AudioChannel {
|
|
11
|
+
audio: string;
|
|
12
|
+
howlerId: number;
|
|
13
|
+
}
|
|
14
|
+
export declare type AudioModeState = {
|
|
15
|
+
channels: Array<AudioChannel | null>;
|
|
16
|
+
options: {
|
|
17
|
+
volume: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export interface AudioState {
|
|
21
|
+
modes: AudioModes;
|
|
22
|
+
masterVolume: number;
|
|
23
|
+
}
|
|
24
|
+
export interface AudioSaveMode {
|
|
25
|
+
channels: Array<{
|
|
26
|
+
audio: string | null;
|
|
27
|
+
}>;
|
|
28
|
+
options: {
|
|
29
|
+
volume: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare type AudioSave = {
|
|
33
|
+
modes: {
|
|
34
|
+
[key: string]: AudioSaveMode;
|
|
35
|
+
};
|
|
36
|
+
masterVolume: number;
|
|
37
|
+
};
|
|
38
|
+
export declare const useAudio: import("pinia").StoreDefinition<"audio", AudioState, {}, {
|
|
39
|
+
stopAll(): void;
|
|
40
|
+
stopChannel(mode: AudioModeKey, channelIndex: number): Promise<void>;
|
|
41
|
+
pauseChannel(mode: AudioModeKey, channelIndex: number): Promise<void>;
|
|
42
|
+
playChannel(mode: AudioModeKey, audio: string, channelIndex: number): Promise<void>;
|
|
43
|
+
changeChannel(mode: AudioModeKey, audio: string, channelIndex: number): Promise<void>;
|
|
44
|
+
actuallyStopChannel(channel: AudioChannel): void;
|
|
45
|
+
getAudioChannel(mode: AudioModeKey, channelIndex: number): AudioChannel | null;
|
|
46
|
+
setAudioChannel(mode: AudioModeKey, channelIndex: number, value: AudioChannel | null): void;
|
|
47
|
+
actuallyPlayChannel(mode: AudioModeKey, channelIndex: number, audio: string): Promise<void>;
|
|
48
|
+
reloadAudio(save: AudioSave): void;
|
|
49
|
+
stopSound(key: string): void;
|
|
50
|
+
generateSaveData(): AudioSave;
|
|
51
|
+
loadSaveData(data: AudioSave): void;
|
|
52
|
+
reset(): void;
|
|
53
|
+
setModeVolume(mode: AudioModeKey, volume: number): void;
|
|
54
|
+
setMasterVolume(volume: number): void;
|
|
55
|
+
modeVolume(mode: AudioModeKey): number;
|
|
56
|
+
}>;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export declare type AddDialogParams = Omit<DialogKey, 'id' | 'interactive'> & {
|
|
2
|
-
interactive?: boolean;
|
|
3
|
-
};
|
|
4
|
-
export interface DialogKey {
|
|
5
|
-
speaker: string;
|
|
6
|
-
text: string;
|
|
7
|
-
pose?: string;
|
|
8
|
-
cssClass?: string;
|
|
9
|
-
choices?: DialogChoice[];
|
|
10
|
-
textField?: boolean;
|
|
11
|
-
interactive: boolean;
|
|
12
|
-
id: string;
|
|
13
|
-
}
|
|
14
|
-
export interface DialogChoice {
|
|
15
|
-
choice: string;
|
|
16
|
-
originalIndex: number;
|
|
17
|
-
allowed: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare type DialogState = {
|
|
20
|
-
dialog: DialogKey[];
|
|
21
|
-
playMode: 'auto' | 'skip' | 'normal';
|
|
22
|
-
};
|
|
23
|
-
export declare type DialogSave = Pick<DialogState, 'dialog'>;
|
|
24
|
-
export declare const useDialogStore: import("pinia").StoreDefinition<"dialog", DialogState, {
|
|
25
|
-
currentDialog(): DialogKey;
|
|
26
|
-
}, {
|
|
27
|
-
generateSaveData(): DialogSave;
|
|
28
|
-
loadSaveData(data: DialogSave): void;
|
|
29
|
-
addDialog(dialog: AddDialogParams): void;
|
|
30
|
-
toggleAutoPlay(): void;
|
|
31
|
-
toggleSkip(): void;
|
|
32
|
-
clearDialog(): void;
|
|
33
|
-
reset(): void;
|
|
34
|
-
}>;
|
|
35
|
-
export {};
|
|
1
|
+
export declare type AddDialogParams = Omit<DialogKey, 'id' | 'interactive'> & {
|
|
2
|
+
interactive?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export interface DialogKey {
|
|
5
|
+
speaker: string;
|
|
6
|
+
text: string;
|
|
7
|
+
pose?: string;
|
|
8
|
+
cssClass?: string;
|
|
9
|
+
choices?: DialogChoice[];
|
|
10
|
+
textField?: boolean;
|
|
11
|
+
interactive: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DialogChoice {
|
|
15
|
+
choice: string;
|
|
16
|
+
originalIndex: number;
|
|
17
|
+
allowed: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare type DialogState = {
|
|
20
|
+
dialog: DialogKey[];
|
|
21
|
+
playMode: 'auto' | 'skip' | 'normal';
|
|
22
|
+
};
|
|
23
|
+
export declare type DialogSave = Pick<DialogState, 'dialog'>;
|
|
24
|
+
export declare const useDialogStore: import("pinia").StoreDefinition<"dialog", DialogState, {
|
|
25
|
+
currentDialog(): DialogKey;
|
|
26
|
+
}, {
|
|
27
|
+
generateSaveData(): DialogSave;
|
|
28
|
+
loadSaveData(data: DialogSave): void;
|
|
29
|
+
addDialog(dialog: AddDialogParams): void;
|
|
30
|
+
toggleAutoPlay(): void;
|
|
31
|
+
toggleSkip(): void;
|
|
32
|
+
clearDialog(): void;
|
|
33
|
+
reset(): void;
|
|
34
|
+
}>;
|
|
35
|
+
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { HudStatConfig } from '../config';
|
|
2
|
-
export interface HudStatsState {
|
|
3
|
-
[key: string]: HudStat;
|
|
4
|
-
}
|
|
5
|
-
export interface HudStat {
|
|
6
|
-
value: number;
|
|
7
|
-
}
|
|
8
|
-
export interface HudState {
|
|
9
|
-
hudStats: HudStatsState;
|
|
10
|
-
}
|
|
11
|
-
export declare type HudSave = HudState;
|
|
12
|
-
export declare const useHud: import("pinia").StoreDefinition<"hud", HudState, {}, {
|
|
13
|
-
setupHudStats(stats: {
|
|
14
|
-
[key: string]: HudStatConfig;
|
|
15
|
-
}): void;
|
|
16
|
-
setStat(stat: string, value: number): void;
|
|
17
|
-
addStat(stat: string, value: number): void;
|
|
18
|
-
getStat(stat: string): HudStat;
|
|
19
|
-
getStatValue(stat: string): number;
|
|
20
|
-
generateSaveData(): HudSave;
|
|
21
|
-
loadSaveData(data: HudSave): void;
|
|
22
|
-
}>;
|
|
1
|
+
import { HudStatConfig } from '../config';
|
|
2
|
+
export interface HudStatsState {
|
|
3
|
+
[key: string]: HudStat;
|
|
4
|
+
}
|
|
5
|
+
export interface HudStat {
|
|
6
|
+
value: number;
|
|
7
|
+
}
|
|
8
|
+
export interface HudState {
|
|
9
|
+
hudStats: HudStatsState;
|
|
10
|
+
}
|
|
11
|
+
export declare type HudSave = HudState;
|
|
12
|
+
export declare const useHud: import("pinia").StoreDefinition<"hud", HudState, {}, {
|
|
13
|
+
setupHudStats(stats: {
|
|
14
|
+
[key: string]: HudStatConfig;
|
|
15
|
+
}): void;
|
|
16
|
+
setStat(stat: string, value: number): void;
|
|
17
|
+
addStat(stat: string, value: number): void;
|
|
18
|
+
getStat(stat: string): HudStat;
|
|
19
|
+
getStatValue(stat: string): number;
|
|
20
|
+
generateSaveData(): HudSave;
|
|
21
|
+
loadSaveData(data: HudSave): void;
|
|
22
|
+
}>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { ItemData } from '../config';
|
|
2
|
-
export interface ItemState {
|
|
3
|
-
amount: number;
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export interface InventoryState {
|
|
7
|
-
/** Note: Items are an object so that it's easy to access specific items in game scripts.
|
|
8
|
-
* One side effect of this is that the order items appear in isn't technicaclly guaranteed.
|
|
9
|
-
* It also means there can only be one "stack" of an item at a time */
|
|
10
|
-
items: {
|
|
11
|
-
[key: string]: ItemState;
|
|
12
|
-
};
|
|
13
|
-
interactionTags: {
|
|
14
|
-
[key: string]: {
|
|
15
|
-
blockedInteraction: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare type InventorySave = InventoryState;
|
|
20
|
-
export declare const useInventory: import("pinia").StoreDefinition<"inventory", InventoryState, {}, {
|
|
21
|
-
generateSaveData(): InventorySave;
|
|
22
|
-
loadSaveData(save: InventorySave): void;
|
|
23
|
-
setupItems(items: {
|
|
24
|
-
[key: string]: ItemData;
|
|
25
|
-
}): void;
|
|
26
|
-
hasItem(itemId: string, amount?: number): boolean;
|
|
27
|
-
getExistingItem(id: string): ItemState | undefined;
|
|
28
|
-
getItemAmount(id: string): number;
|
|
29
|
-
add(item: ItemState): void;
|
|
30
|
-
enableInteraction(tag?: string): void;
|
|
31
|
-
disableInteraction(tag?: string): void;
|
|
32
|
-
onScriptStart(): void;
|
|
33
|
-
onScriptEnd(): void;
|
|
34
|
-
isInteractionTagBlocked(tag?: string): boolean;
|
|
35
|
-
remove(item: ItemState): void;
|
|
36
|
-
deleteItem(id: string): void;
|
|
37
|
-
canUseItem(item: ItemState): boolean;
|
|
38
|
-
}>;
|
|
1
|
+
import { ItemData } from '../config';
|
|
2
|
+
export interface ItemState {
|
|
3
|
+
amount: number;
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface InventoryState {
|
|
7
|
+
/** Note: Items are an object so that it's easy to access specific items in game scripts.
|
|
8
|
+
* One side effect of this is that the order items appear in isn't technicaclly guaranteed.
|
|
9
|
+
* It also means there can only be one "stack" of an item at a time */
|
|
10
|
+
items: {
|
|
11
|
+
[key: string]: ItemState;
|
|
12
|
+
};
|
|
13
|
+
interactionTags: {
|
|
14
|
+
[key: string]: {
|
|
15
|
+
blockedInteraction: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare type InventorySave = InventoryState;
|
|
20
|
+
export declare const useInventory: import("pinia").StoreDefinition<"inventory", InventoryState, {}, {
|
|
21
|
+
generateSaveData(): InventorySave;
|
|
22
|
+
loadSaveData(save: InventorySave): void;
|
|
23
|
+
setupItems(items: {
|
|
24
|
+
[key: string]: ItemData;
|
|
25
|
+
}): void;
|
|
26
|
+
hasItem(itemId: string, amount?: number): boolean;
|
|
27
|
+
getExistingItem(id: string): ItemState | undefined;
|
|
28
|
+
getItemAmount(id: string): number;
|
|
29
|
+
add(item: ItemState): void;
|
|
30
|
+
enableInteraction(tag?: string): void;
|
|
31
|
+
disableInteraction(tag?: string): void;
|
|
32
|
+
onScriptStart(): void;
|
|
33
|
+
onScriptEnd(): void;
|
|
34
|
+
isInteractionTagBlocked(tag?: string): boolean;
|
|
35
|
+
remove(item: ItemState): void;
|
|
36
|
+
deleteItem(id: string): void;
|
|
37
|
+
canUseItem(item: ItemState): boolean;
|
|
38
|
+
}>;
|