LogoPixi’VN
vite-listenerFunctions

Function: setupPixivnViteData()

> setupPixivnViteData(): void

Defined in: src/vite-listener/plugins.ts:95

Initializes Pixi VN development tools by syncing game state with the Vite dev server. Sends registered characters, labels, assets manifest, and canvas options.

Note: This function only operates in Vite development mode and is a no-op in production.

Call this function: After RegisteredCharacters and RegisteredLabels are populated, typically in your client-side initialization code.

Returns

void

Example

// In your main game initialization file
import { setupPixivnViteData } from '@drincs/pixi-vn/vite-listener';

await Promise.all([import("@/content")]);
// After game setup
setupPixivnViteData();