UNPKG

@drincs/pixi-vn

Version:

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

41 lines (38 loc) 994 B
import { UPDATE_PRIORITY } from 'pixi.js'; import { a as TickerArgsType } from '../TickerBase-3rLpDpmb.js'; import { PauseType } from '../types/PauseType.js'; import { RepeatType } from '../types/RepeatType.js'; import '../types/StorageElementType.js'; import '../types/TickerIdType.js'; interface ITickersStep<TArgs extends TickerArgsType> { /** * Ticker class name */ ticker: string; /** * Duration in seconds. If is undefined, the step will end only when the animation is finished. */ duration?: number; /** * Arguments to pass to the ticker */ args: TArgs; /** * Priority of the ticker */ priority?: UPDATE_PRIORITY; } /** * The steps of the tickers */ interface ITickersSteps { /** * The step number */ currentStepNumber: number; /** * The steps of the tickers */ steps: (ITickersStep<any> | RepeatType | PauseType)[]; } export type { ITickersStep, ITickersSteps as default };