UNPKG

phaser-jsx

Version:
14 lines 701 B
import Phaser from 'phaser'; import type { JSX } from 'react'; import type { GameObjectNode } from '../types'; /** * Reconciles a new JSX element tree against the existing game object tree. * * @param element - The new JSX element to reconcile. * @param oldNode - The existing game object node (or null if none). * @param scene - The Phaser scene. * @param parent - Optional parent container/layer. * @returns The new game object node tree. */ export declare function reconcileTree(element: JSX.Element | null, oldNode: GameObjectNode | null, scene: Phaser.Scene, parent?: Phaser.GameObjects.Container | Phaser.GameObjects.Layer): GameObjectNode | null; //# sourceMappingURL=reconcile.d.ts.map