narrat 2.0.0 → 2.0.3
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/app.vue.d.ts +1 -0
- package/dist/components/menu-buttons.vue.d.ts +11 -0
- package/dist/config.d.ts +7 -1
- package/dist/data/config.json +7 -1
- package/dist/data/example.rpy +8 -4
- package/dist/data/refactor.rpy +1 -1
- package/dist/dialog-box.vue.d.ts +2 -0
- package/dist/lib.css +1 -1
- package/dist/narrat.es.js +168 -67
- package/dist/narrat.es.js.map +1 -0
- package/dist/narrat.umd.js +74 -73
- package/dist/narrat.umd.js.map +1 -0
- package/dist/stores/dialog-store.d.ts +1 -0
- package/dist/stores/main-store.d.ts +2 -1
- package/dist/stores/vm-store.d.ts +1 -0
- package/dist/types/dialog-box-types.d.ts +1 -0
- package/dist/vm/commands/command-plugin.d.ts +1 -1
- package/dist/vm/commands/text-field.d.ts +7 -0
- package/dist/vm/vm.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
24
24
|
startMachine(): void;
|
|
25
25
|
startGame(): Promise<void>;
|
|
26
26
|
loadGame(saveFile: string): Promise<void>;
|
|
27
|
-
playerAnswered(
|
|
27
|
+
playerAnswered(choice: number | string): void;
|
|
28
28
|
menuReturn(): void;
|
|
29
29
|
createError(text: string): void;
|
|
30
30
|
clearErrors(): void;
|
|
@@ -206,6 +206,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
206
206
|
finishGame(): void;
|
|
207
207
|
runLine(): Promise<void>;
|
|
208
208
|
runLabelFunction(label: string, ...args: any[]): Promise<unknown>;
|
|
209
|
+
runCustomStack(stack: import("./vm-store").AddStackOptions): void;
|
|
209
210
|
runLabel(label: string, ...args: any[]): void;
|
|
210
211
|
}>;
|
|
211
212
|
hud: import("pinia").Store<"hud", import("./hud-stats-store").HudState, {}, {
|
|
@@ -143,5 +143,6 @@ export declare const useVM: import("pinia").StoreDefinition<"vm", VMState, {
|
|
|
143
143
|
finishGame(): void;
|
|
144
144
|
runLine(): Promise<void>;
|
|
145
145
|
runLabelFunction(label: string, ...args: any[]): Promise<unknown>;
|
|
146
|
+
runCustomStack(stack: AddStackOptions): void;
|
|
146
147
|
runLabel(label: string, ...args: any[]): void;
|
|
147
148
|
}>;
|
|
@@ -18,7 +18,7 @@ export declare class CommandPlugin<Options, StaticOptions = {}> {
|
|
|
18
18
|
runner: CommandRunner<Options, StaticOptions>;
|
|
19
19
|
argTypes: ArgTypes;
|
|
20
20
|
parser: CommandParserFunction<Options, StaticOptions>;
|
|
21
|
-
onPlayerAnswered?: (cmd: Parser.Command<Options, StaticOptions>,
|
|
21
|
+
onPlayerAnswered?: (cmd: Parser.Command<Options, StaticOptions>, choice: number | string) => Promise<void>;
|
|
22
22
|
constructor(keyword: string, argTypes: ArgTypes, runner: CommandRunner<Options, StaticOptions>, parser?: CommandParserFunction<Options, StaticOptions>);
|
|
23
23
|
}
|
|
24
24
|
export declare type ArgTypes = ArgumentDescription[] | 'any';
|
package/dist/vm/vm.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare const vm: VM;
|
|
|
15
15
|
export declare function runCommand(expression: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<any>;
|
|
16
16
|
export declare function generateCommand(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<Parser.Command>;
|
|
17
17
|
export declare function runExpression<ReturnType = any>(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<ReturnType>;
|
|
18
|
-
export declare function playerAnswered(
|
|
18
|
+
export declare function playerAnswered(choice: string | number): Promise<any>;
|
|
19
19
|
export declare function finishGame(): void;
|