Files
ai.interactive.fiction/dist/engine/ink-engine.d.ts
T

27 lines
830 B
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;
loadGame(savedState: string): TurnResult;
private loadStory;
private continueStory;
private getChoiceTags;
private extractChoicePreviewTags;
private resolveInkPath;
private isNamedContainerMap;
}