narrat 4.1.2 → 4.2.0-alpha.1
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 +9 -96
- package/dist/{index-CKAHN5GY.js → index-BEHgg-jT.js} +2 -2
- package/dist/{index-CKAHN5GY.js.map → index-BEHgg-jT.js.map} +1 -1
- package/dist/{lib-NFFzLKwm.js → lib-Df9GdocD.js} +2254 -2249
- package/dist/{lib-NFFzLKwm.js.map → lib-Df9GdocD.js.map} +1 -1
- package/dist/narrat.es.js +1 -1
- package/dist/narrat.umd.js +96 -96
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/vm-store.d.ts +11 -97
- package/dist/vm/commands/arithmetic-commands.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4249,101 +4249,7 @@ export declare const sourceAllStores: {
|
|
|
4249
4249
|
readonly config: "tooltips";
|
|
4250
4250
|
};
|
|
4251
4251
|
readonly vm: {
|
|
4252
|
-
readonly store: import("pinia").StoreDefinition<"vm", import("../stores/vm-store").VMState, {
|
|
4253
|
-
currentFrame(state: {
|
|
4254
|
-
commandsWaitingForPlayerAnswer: {
|
|
4255
|
-
args: (import("../types/parser").Parser.Primitive | {
|
|
4256
|
-
code: string;
|
|
4257
|
-
command: {
|
|
4258
|
-
commandType: string;
|
|
4259
|
-
operator: string;
|
|
4260
|
-
args: (import("../types/parser").Parser.Primitive | /*elided*/ any)[];
|
|
4261
|
-
options: import("../types/parser").Parser.DefaultArg;
|
|
4262
|
-
staticOptions: {};
|
|
4263
|
-
};
|
|
4264
|
-
fileName: string;
|
|
4265
|
-
line: number;
|
|
4266
|
-
})[];
|
|
4267
|
-
commandType: string;
|
|
4268
|
-
options: any;
|
|
4269
|
-
code: string;
|
|
4270
|
-
staticOptions: any;
|
|
4271
|
-
operator: string;
|
|
4272
|
-
line: number;
|
|
4273
|
-
fileName: string;
|
|
4274
|
-
finishCommand?: ((res: any) => void) | undefined;
|
|
4275
|
-
}[];
|
|
4276
|
-
promisesWaitingForTextAnimation: (() => void)[];
|
|
4277
|
-
stack: {
|
|
4278
|
-
blocks: {
|
|
4279
|
-
currentIndex: number;
|
|
4280
|
-
branchData: {
|
|
4281
|
-
branch: {
|
|
4282
|
-
code: string;
|
|
4283
|
-
command: {
|
|
4284
|
-
commandType: string;
|
|
4285
|
-
operator: string;
|
|
4286
|
-
args: (import("../types/parser").Parser.Primitive | {
|
|
4287
|
-
code: string;
|
|
4288
|
-
command: /*elided*/ any;
|
|
4289
|
-
fileName: string;
|
|
4290
|
-
line: number;
|
|
4291
|
-
})[];
|
|
4292
|
-
options: import("../types/parser").Parser.DefaultArg;
|
|
4293
|
-
staticOptions: {};
|
|
4294
|
-
};
|
|
4295
|
-
fileName: string;
|
|
4296
|
-
line: number;
|
|
4297
|
-
}[];
|
|
4298
|
-
args?: string[] | undefined;
|
|
4299
|
-
};
|
|
4300
|
-
}[];
|
|
4301
|
-
label: string;
|
|
4302
|
-
scope: {
|
|
4303
|
-
[key: string]: any;
|
|
4304
|
-
};
|
|
4305
|
-
returnValue: any;
|
|
4306
|
-
}[];
|
|
4307
|
-
data: import("../stores/vm-store").DataState;
|
|
4308
|
-
globalData: import("../stores/vm-store").DataState;
|
|
4309
|
-
lastLabel: string;
|
|
4310
|
-
jumpTarget?: {
|
|
4311
|
-
currentIndex: number;
|
|
4312
|
-
branchData: {
|
|
4313
|
-
branch: {
|
|
4314
|
-
code: string;
|
|
4315
|
-
command: {
|
|
4316
|
-
commandType: string;
|
|
4317
|
-
operator: string;
|
|
4318
|
-
args: (import("../types/parser").Parser.Primitive | {
|
|
4319
|
-
code: string;
|
|
4320
|
-
command: /*elided*/ any;
|
|
4321
|
-
fileName: string;
|
|
4322
|
-
line: number;
|
|
4323
|
-
})[];
|
|
4324
|
-
options: import("../types/parser").Parser.DefaultArg;
|
|
4325
|
-
staticOptions: {};
|
|
4326
|
-
};
|
|
4327
|
-
fileName: string;
|
|
4328
|
-
line: number;
|
|
4329
|
-
}[];
|
|
4330
|
-
args?: string[] | undefined;
|
|
4331
|
-
};
|
|
4332
|
-
label: string;
|
|
4333
|
-
scope?: {
|
|
4334
|
-
[key: string]: any;
|
|
4335
|
-
} | undefined;
|
|
4336
|
-
args?: any[] | undefined;
|
|
4337
|
-
} | undefined;
|
|
4338
|
-
hasJumped: boolean;
|
|
4339
|
-
} & import("pinia").PiniaCustomStateProperties<import("../stores/vm-store").VMState>): import("../stores/vm-store").MachineFrame | undefined;
|
|
4340
|
-
scope(): {
|
|
4341
|
-
[key: string]: any;
|
|
4342
|
-
};
|
|
4343
|
-
currentBlock(): import("../stores/vm-store").MachineBlock | undefined;
|
|
4344
|
-
currentLine(): import("../types/parser").Parser.ParsedExpression | undefined;
|
|
4345
|
-
commandWaitingForAnswer(): import("../types/parser").Parser.Command<any, any> | undefined;
|
|
4346
|
-
}, {
|
|
4252
|
+
readonly store: import("pinia").StoreDefinition<"vm", import("../stores/vm-store").VMState, {}, {
|
|
4347
4253
|
generateSaveData(): import("../stores/vm-store").VMSave;
|
|
4348
4254
|
generateGlobalSaveData(): Pick<import("../types/game-save").GlobalGameSave, "data">;
|
|
4349
4255
|
loadSaveData(data: import("../stores/vm-store").VMSave): void;
|
|
@@ -4399,13 +4305,20 @@ export declare const sourceAllStores: {
|
|
|
4399
4305
|
cleanBlock(): void;
|
|
4400
4306
|
runGame(): Promise<void>;
|
|
4401
4307
|
nextLineOnly(): Promise<boolean>;
|
|
4402
|
-
isBlockFinished(): boolean;
|
|
4308
|
+
isBlockFinished(): boolean | undefined;
|
|
4403
4309
|
reachedEndOfScript(): void;
|
|
4404
4310
|
runLineOnly(): Promise<any>;
|
|
4405
4311
|
runLabelFunction(label: string, ...args: any[]): Promise<any>;
|
|
4406
4312
|
runCustomFrame(stack: import("../stores/vm-store").AddFrameOptions): void;
|
|
4407
4313
|
jumpToLabel(label: string, ...args: any[]): Promise<void>;
|
|
4408
4314
|
runThenGoBackToPreviousDialog(label: string, ...args: any[]): Promise<any>;
|
|
4315
|
+
getCurrentFrame(): import("../stores/vm-store").MachineFrame | undefined;
|
|
4316
|
+
getScope(): {
|
|
4317
|
+
[key: string]: any;
|
|
4318
|
+
};
|
|
4319
|
+
getCurrentBlock(): import("../stores/vm-store").MachineBlock | undefined;
|
|
4320
|
+
getCurrentLine(): import("../types/parser").Parser.ParsedExpression | undefined;
|
|
4321
|
+
getCommandWaitingForAnswer(): import("../types/parser").Parser.Command<any, any> | undefined;
|
|
4409
4322
|
}>;
|
|
4410
4323
|
readonly save: "vm";
|
|
4411
4324
|
readonly globalSave: "data";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as rw } from "./lib-
|
|
1
|
+
import { g as rw } from "./lib-Df9GdocD.js";
|
|
2
2
|
function Ar(n) {
|
|
3
3
|
return Array.isArray(n);
|
|
4
4
|
}
|
|
@@ -35979,4 +35979,4 @@ export {
|
|
|
35979
35979
|
Sz as toTextContent,
|
|
35980
35980
|
P0 as valueType
|
|
35981
35981
|
};
|
|
35982
|
-
//# sourceMappingURL=index-
|
|
35982
|
+
//# sourceMappingURL=index-BEHgg-jT.js.map
|