UNPKG

@drincs/pixi-vn

Version:

Pixi'VN is a npm package that provides various features for creating visual novels.

30 lines (27 loc) 837 B
import HistoryChoiceMenuOption from '../types/HistoryChoiceMenuOption.js'; import DialogueBaseModel from '../classes/DialogueBaseModel.js'; import '../types/CloseType.js'; import '../types/LabelRunModeType.js'; import '../classes/CharacterBaseModel.js'; import './CharacterBaseModelProps.js'; import '../classes/StoredClassModel.js'; import '../types/StorageElementType.js'; interface DialogueHistory<T extends DialogueBaseModel = DialogueBaseModel> { /** * Dialogue to be shown in the game */ dialoge?: T; /** * List of choices asked of the player */ choices?: HistoryChoiceMenuOption[]; /** * The player made a choice */ playerMadeChoice?: boolean; /** * The index of the step in the history. */ stepIndex: number; } export type { DialogueHistory as default };