narrat 3.10.2 → 3.10.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/data/all-stores.d.ts +2 -0
- package/dist/narrat.es.js +2709 -2703
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +40 -40
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/inputs-store.d.ts +3 -0
- package/dist/vm/commands/if.d.ts +1 -1
- package/dist/vm/vm-parser.d.ts +1 -0
- package/dist/vm/vm.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14,10 +14,13 @@ export interface InputsStoreState {
|
|
|
14
14
|
baseInputListener: InputListener;
|
|
15
15
|
inGameInputListener: InputListener | null;
|
|
16
16
|
inputMode: InputMode;
|
|
17
|
+
isTyping: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare const useInputs: import("pinia").StoreDefinition<"inputs", InputsStoreState, {}, {
|
|
19
20
|
setupInputs(): void;
|
|
20
21
|
createInGameInputListener(): void;
|
|
22
|
+
startTyping(): void;
|
|
23
|
+
stopTyping(): void;
|
|
21
24
|
removeInGameInputListener(): void;
|
|
22
25
|
listenToContainerInputs(): void;
|
|
23
26
|
listenToBaseNarratInputs(): void;
|
package/dist/vm/commands/if.d.ts
CHANGED
package/dist/vm/vm-parser.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface ParserContext {
|
|
|
13
13
|
export declare function parseScript(script: NarratScript): Parser.ParsedScript;
|
|
14
14
|
export declare function parseScriptFunction(errorHandler: ParserErrorHandler, code: string, fileName: string): Parser.ParsedScript;
|
|
15
15
|
export declare function parseExpression(ctx: ParserContext, line: Parser.Line, expression: Parser.Expression): Parser.ParsedExpression;
|
|
16
|
+
export declare function parseArgument(ctx: ParserContext, line: Parser.Line, argument: Parser.Expression | Parser.Primitive): Parser.Arg;
|
|
16
17
|
export declare function parseCodeLine(ctx: ParserContext, codeToProcess: string): Parser.Expression;
|
|
17
18
|
export declare function parseCodeLineIntoTokens(code: string): Parser.Primitive[];
|
|
18
19
|
export declare function splitIntoTokens(code: string): Parser.Primitive[];
|
package/dist/vm/vm.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ export declare class VM {
|
|
|
22
22
|
export declare const vm: VM;
|
|
23
23
|
export declare function runCommand(expression: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<any>;
|
|
24
24
|
export declare function generateCommand(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<Parser.Command>;
|
|
25
|
+
export declare function readVariable(arg: string): any;
|
|
25
26
|
export declare function runExpression<ReturnType = any>(expr: Parser.ParsedExpression, choices?: DialogChoice[]): Promise<ReturnType>;
|
|
26
27
|
export declare function playerAnswered(choice: string | number): Promise<any>;
|