narrat 3.3.7 → 3.4.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/README.md +1 -1
- package/dist/components/achievements/achievements-ui.vue.d.ts +2 -1
- package/dist/components/dialog-picture.vue.d.ts +18 -2
- package/dist/components/quests-ui.vue.d.ts +2 -0
- package/dist/components/utils/floating-tooltip.vue.d.ts +35 -0
- package/dist/config/achievements-config.d.ts +8 -4
- package/dist/config/animations-config.d.ts +64 -0
- package/dist/config/characters-config.d.ts +3 -0
- package/dist/config/choices-config.d.ts +28 -0
- package/dist/config/common-config.d.ts +2 -0
- package/dist/config/config-input.d.ts +23 -0
- package/dist/config/config-output.d.ts +69 -19
- package/dist/config/quests-config.d.ts +26 -0
- package/dist/config/tooltips-config.d.ts +16 -0
- package/dist/config.d.ts +88 -20
- package/dist/exports/others.d.ts +1 -0
- package/dist/exports/utils.d.ts +1 -0
- package/dist/inputs/Inputs.d.ts +9 -1
- package/dist/main.d.ts +2 -0
- package/dist/narrat.es.js +19245 -18535
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +143 -128
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/choices-tracking-store.d.ts +12 -0
- package/dist/stores/dialog-store.d.ts +2 -0
- package/dist/stores/inputs-store.d.ts +3 -1
- package/dist/stores/inventory-store.d.ts +1 -0
- package/dist/stores/main-store.d.ts +5094 -212
- package/dist/stores/quest-log.d.ts +9 -1
- package/dist/stores/rendering-store.d.ts +13 -0
- package/dist/stores/tooltip-store.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/types/app-types.d.ts +5 -0
- package/dist/types/game-save.d.ts +4 -0
- package/dist/utils/animation.d.ts +8 -0
- package/dist/utils/data-helpers.d.ts +332 -2
- package/dist/utils/interact-utils.d.ts +15 -0
- package/dist/utils/save-helpers.d.ts +1 -1
- package/dist/utils/string-helpers.d.ts +2 -1
- package/dist/vm/commands/choice.d.ts +5 -0
- package/dist/vm/commands/quest-commands.d.ts +14 -1
- package/dist/vm/commands/util-commands.d.ts +13 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ChoiceBranchTracking = Record<string, boolean>;
|
|
2
|
+
export type ChoiceTrackingState = {
|
|
3
|
+
choices: Record<string, ChoiceBranchTracking>;
|
|
4
|
+
};
|
|
5
|
+
export type ChoiceTrackingSave = ChoiceTrackingState;
|
|
6
|
+
export declare const useChoicesTrackingStoreStore: import("pinia").StoreDefinition<"choices-tracking-store", ChoiceTrackingState, {}, {
|
|
7
|
+
trackChoice(prompt: string, choice: string): void;
|
|
8
|
+
hasSeenChoice(prompt: string, choice: string): boolean;
|
|
9
|
+
generateSaveData(): ChoiceTrackingSave;
|
|
10
|
+
loadSaveData(save: ChoiceTrackingSave): void;
|
|
11
|
+
reset(): void;
|
|
12
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionStatus, AnalogEvent, ButtonEvent } from '../inputs/Inputs';
|
|
1
|
+
import { ActionStatus, AnalogEvent, ButtonEvent, InputMode } from '../inputs/Inputs';
|
|
2
2
|
export interface InputStoreEvents {
|
|
3
3
|
press?: ButtonEvent;
|
|
4
4
|
release?: ButtonEvent;
|
|
@@ -12,9 +12,11 @@ export interface InputListener {
|
|
|
12
12
|
export interface InputsStoreState {
|
|
13
13
|
inputStack: InputListener[];
|
|
14
14
|
baseInputListener: InputListener;
|
|
15
|
+
inputMode: InputMode;
|
|
15
16
|
}
|
|
16
17
|
export declare const useInputs: import("pinia").StoreDefinition<"inputs", InputsStoreState, {}, {
|
|
17
18
|
setupInputs(): void;
|
|
19
|
+
listenToContainerInputs(): void;
|
|
18
20
|
listenToBaseNarratInputs(): void;
|
|
19
21
|
triggerListeners(actionKey: string, eventType: keyof InputStoreEvents, status: ActionStatus): void;
|
|
20
22
|
getInputs(): import("../inputs/Inputs").Inputs;
|