narraleaf-react
Version:
A React visual novel player framework
17 lines (16 loc) • 608 B
TypeScript
import type { Choice } from "../../../nlcore/elements/menu";
import type { GameState } from "../../gameState";
import { Sentence } from "../../../nlcore/elements/character/sentence";
import { Word } from "../../../nlcore/elements/character/word";
import { Pausing } from "../../../nlcore/elements/character/pause";
import { Chosen } from "../../type";
export interface MenuElementProps {
prompt: Sentence | null;
choices: Choice[];
afterChoose: (choice: Chosen) => void;
state: GameState;
words: Word<Pausing | string>[] | null;
}
export interface IUserMenuProps {
items: number[];
}