@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
26 lines (24 loc) • 784 B
TypeScript
/**
* 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.
*
* @example
* ```typescript
* // In your main game initialization file
* import { setupPixivnViteData } from '@drincs/pixi-vn/vite-listener';
*
* await Promise.all([import("@/content")]);
* // After game setup
* setupPixivnViteData();
* ```
*
* @returns {void}
* @public
*/
declare function setupPixivnViteData(): void;
export { setupPixivnViteData };