UNPKG

@drincs/pixi-vn

Version:

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

41 lines (38 loc) 999 B
import { UPDATE_PRIORITY } from 'pixi.js'; import { a as TickerArgsType } from '../TickerBase-DKYzbzro.mjs'; import { PauseType } from '../types/PauseType.mjs'; import { RepeatType } from '../types/RepeatType.mjs'; import '../types/StorageElementType.mjs'; import '../types/TickerIdType.mjs'; 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 };