UNPKG

@drincs/pixi-vn-json

Version:

Pixi'VN can be integrated with JSON files to create a visual novel.

28 lines (25 loc) 683 B
import { SoundPlayOptions } from '@drincs/pixi-vn'; type PixiVNJsonSoundPlay = { type: "sound"; operationType: "play"; alias: string; props?: SoundPlayOptions; }; type PixiVNJsonSoundRemove = { type: "sound"; operationType: "stop"; alias: string; }; type PixiVNJsonSoundPauseResume = { type: "sound"; operationType: "pause" | "resume"; alias: string; }; type PixiVNJsonSoundVolume = { type: "sound"; operationType: "volume"; alias: string; value: number; }; type PixiVNJsonSound = (PixiVNJsonSoundPlay | PixiVNJsonSoundRemove | PixiVNJsonSoundPauseResume | PixiVNJsonSoundVolume); export type { PixiVNJsonSound as default };