narrat 2.6.1 → 2.6.4
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/narrat.es.js +1759 -1729
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +65 -65
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/audio-store.d.ts +9 -8
- package/dist/stores/main-store.d.ts +5 -32
- package/dist/stores/screens-store.d.ts +1 -1
- package/dist/stores/skills.d.ts +1 -0
- package/dist/vm/commands/choice.d.ts +2 -1
- package/dist/vm/commands/skill-commands.d.ts +4 -1
- package/dist/vm/vm-helpers.d.ts +1 -0
- package/package.json +1 -1
|
@@ -21,16 +21,17 @@ export interface AudioState {
|
|
|
21
21
|
modes: AudioModes;
|
|
22
22
|
masterVolume: number;
|
|
23
23
|
}
|
|
24
|
+
export interface AudioSaveMode {
|
|
25
|
+
channels: Array<{
|
|
26
|
+
audio: string | null;
|
|
27
|
+
}>;
|
|
28
|
+
options: {
|
|
29
|
+
volume: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
24
32
|
export declare type AudioSave = {
|
|
25
33
|
modes: {
|
|
26
|
-
[key: string]:
|
|
27
|
-
channels: Array<{
|
|
28
|
-
audio: string;
|
|
29
|
-
} | null>;
|
|
30
|
-
options: {
|
|
31
|
-
volume: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
+
[key: string]: AudioSaveMode;
|
|
34
35
|
};
|
|
35
36
|
masterVolume: number;
|
|
36
37
|
};
|
|
@@ -125,14 +125,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
125
125
|
};
|
|
126
126
|
audio: {
|
|
127
127
|
modes: {
|
|
128
|
-
[key: string]:
|
|
129
|
-
channels: ({
|
|
130
|
-
audio: string;
|
|
131
|
-
} | null)[];
|
|
132
|
-
options: {
|
|
133
|
-
volume: number;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
128
|
+
[key: string]: import("./audio-store").AudioSaveMode;
|
|
136
129
|
};
|
|
137
130
|
masterVolume: number;
|
|
138
131
|
};
|
|
@@ -305,14 +298,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
305
298
|
};
|
|
306
299
|
audio: {
|
|
307
300
|
modes: {
|
|
308
|
-
[key: string]:
|
|
309
|
-
channels: ({
|
|
310
|
-
audio: string;
|
|
311
|
-
} | null)[];
|
|
312
|
-
options: {
|
|
313
|
-
volume: number;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
301
|
+
[key: string]: import("./audio-store").AudioSaveMode;
|
|
316
302
|
};
|
|
317
303
|
masterVolume: number;
|
|
318
304
|
};
|
|
@@ -446,14 +432,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
446
432
|
};
|
|
447
433
|
audio: {
|
|
448
434
|
modes: {
|
|
449
|
-
[key: string]:
|
|
450
|
-
channels: ({
|
|
451
|
-
audio: string;
|
|
452
|
-
} | null)[];
|
|
453
|
-
options: {
|
|
454
|
-
volume: number;
|
|
455
|
-
};
|
|
456
|
-
};
|
|
435
|
+
[key: string]: import("./audio-store").AudioSaveMode;
|
|
457
436
|
};
|
|
458
437
|
masterVolume: number;
|
|
459
438
|
};
|
|
@@ -588,14 +567,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
588
567
|
};
|
|
589
568
|
audio: {
|
|
590
569
|
modes: {
|
|
591
|
-
[key: string]:
|
|
592
|
-
channels: ({
|
|
593
|
-
audio: string;
|
|
594
|
-
} | null)[];
|
|
595
|
-
options: {
|
|
596
|
-
volume: number;
|
|
597
|
-
};
|
|
598
|
-
};
|
|
570
|
+
[key: string]: import("./audio-store").AudioSaveMode;
|
|
599
571
|
};
|
|
600
572
|
masterVolume: number;
|
|
601
573
|
};
|
|
@@ -670,6 +642,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
670
642
|
setupSkillCheck(skillCheck: import("./skills").SkillCheckState, id: string): void;
|
|
671
643
|
passSkillCheck(skillCheckId: string, hide?: boolean | undefined): void;
|
|
672
644
|
failSkillCheck(skillCheckId: string, hide?: boolean | undefined): void;
|
|
645
|
+
resetSkillCheck(skillCheckId: string): void;
|
|
673
646
|
generateSaveData(): import("./skills").Skills;
|
|
674
647
|
getSkillCheck(id: string): import("./skills").SkillCheckState;
|
|
675
648
|
createSkillCheckState(): import("./skills").SkillCheckState;
|
|
@@ -10,7 +10,7 @@ export interface FullLayerState {
|
|
|
10
10
|
screen: string | null;
|
|
11
11
|
transition?: TransitionState;
|
|
12
12
|
}
|
|
13
|
-
export declare type LayerState = FullLayerState
|
|
13
|
+
export declare type LayerState = FullLayerState;
|
|
14
14
|
export interface ScreenState {
|
|
15
15
|
layers: LayerState[];
|
|
16
16
|
buttons: ButtonsState;
|
package/dist/stores/skills.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const useSkills: import("pinia").StoreDefinition<"skills", Skills
|
|
|
23
23
|
setupSkillCheck(skillCheck: SkillCheckState, id: string): void;
|
|
24
24
|
passSkillCheck(skillCheckId: string, hide?: boolean): void;
|
|
25
25
|
failSkillCheck(skillCheckId: string, hide?: boolean): void;
|
|
26
|
+
resetSkillCheck(skillCheckId: string): void;
|
|
26
27
|
generateSaveData(): SkillsSave;
|
|
27
28
|
getSkillCheck(id: string): SkillCheckState;
|
|
28
29
|
createSkillCheckState(): SkillCheckState;
|
|
@@ -29,7 +29,8 @@ export interface ChoicePromptReturnValue {
|
|
|
29
29
|
skillId: string;
|
|
30
30
|
skillCheckId: string;
|
|
31
31
|
difficulty: number;
|
|
32
|
-
hideAfterRoll
|
|
32
|
+
hideAfterRoll?: boolean;
|
|
33
|
+
repeatable?: boolean;
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export declare type ChoicePromptReturn = ChoicePromptReturnValue;
|
|
@@ -25,6 +25,9 @@ export interface RollArgs {
|
|
|
25
25
|
id: string;
|
|
26
26
|
skill: string;
|
|
27
27
|
value: number;
|
|
28
|
-
|
|
28
|
+
mode?: string;
|
|
29
29
|
}
|
|
30
30
|
export declare const rollPlugin: CommandPlugin<RollArgs, {}>;
|
|
31
|
+
export declare const resetSkillCheck: CommandPlugin<{
|
|
32
|
+
id: string;
|
|
33
|
+
}, {}>;
|
package/dist/vm/vm-helpers.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface SkillCheckParams {
|
|
|
7
7
|
value: number;
|
|
8
8
|
id: string;
|
|
9
9
|
hideAfterRoll?: boolean;
|
|
10
|
+
repeatable?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare function runSkillCheck(params: SkillCheckParams): SkillCheckState;
|
|
12
13
|
export declare function runConditionCommand(command: Parser.Command<IfOptions, IfStaticOptions>): Parser.Branch | undefined;
|