Files

34 lines
1.0 KiB
TypeScript

import { TurnResult } from '../interfaces/turn-result';
export interface InkCompileResult {
sourcePath: string;
outputPath: string;
warningCount: number;
}
export declare function compileInkSource(sourcePath: string, outputPath: string): InkCompileResult;
export declare class InkEngine {
private readonly storyPath;
private story;
private nextTurnId;
private storyJson;
private readonly choicePreviewTagKeys;
constructor(storyPath: string);
isRunning(): boolean;
newGame(): TurnResult;
chooseChoice(choiceIndex: number): TurnResult;
saveGame(): string;
resumeGame(savedState: string): void;
loadGame(savedState: string): TurnResult;
private restoreState;
private loadStory;
private continueStory;
private isParagraphScopedTag;
private reassignTrailingGlossTags;
private normalizeGlossMatchText;
private getChoiceTags;
private extractChoicePreviewTags;
private resolveInkPath;
private findNamedInkChild;
private getInkContainerMap;
private isNamedContainerMap;
}