Add ink integration UI and media playback
This commit is contained in:
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
export type InputMode = 'text' | 'choice' | 'end';
|
||||
export interface StoryTag {
|
||||
key: string;
|
||||
value?: string;
|
||||
param?: string;
|
||||
}
|
||||
export interface ParagraphResult {
|
||||
text: string;
|
||||
tags: StoryTag[];
|
||||
}
|
||||
export interface ChoiceResult {
|
||||
index: number;
|
||||
text: string;
|
||||
tags: StoryTag[];
|
||||
category?: string;
|
||||
letter?: string;
|
||||
}
|
||||
export interface TurnResult {
|
||||
turnId: number;
|
||||
paragraphs: ParagraphResult[];
|
||||
choices: ChoiceResult[];
|
||||
inputMode: InputMode;
|
||||
globalTags?: StoryTag[];
|
||||
gameState?: {
|
||||
currentRoomId?: string;
|
||||
score?: number;
|
||||
moves?: number;
|
||||
statusLine?: string;
|
||||
};
|
||||
suggestions?: string[];
|
||||
}
|
||||
export declare function textToParagraphs(text: string, tags?: StoryTag[]): ParagraphResult[];
|
||||
Reference in New Issue
Block a user