UNPKG

narraleaf-react

Version:

A React visual novel player framework

17 lines (16 loc) 991 B
import { TextActionContentType, TextActionTypes } from "../../action/actionTypes"; import { TypedAction } from "../../action/actions"; import { Text } from "../../elements/displayable/text"; import { GameState } from "../../../player/gameState"; import { ActionExecutionInjection, ExecutedActionResult } from "../../action/action"; import { LogicAction } from "../../action/logicAction"; import { Story } from "../../elements/story"; export declare class TextAction<T extends typeof TextActionTypes[keyof typeof TextActionTypes] = typeof TextActionTypes[keyof typeof TextActionTypes]> extends TypedAction<TextActionContentType, T, Text> { static ActionTypes: { readonly action: "text:action"; readonly setText: "text:setText"; readonly setFontSize: "text:setFontSize"; }; executeAction(state: GameState, injection: ActionExecutionInjection): ExecutedActionResult; stringify(_story: Story, _seen: Set<LogicAction.Actions>, _strict: boolean): string; }