@petkoneo/phaser3-rex-plugins
Version:
30 lines (24 loc) • 966 B
TypeScript
// import * as Phaser from 'phaser';
import Button from '../../../../plugins/button';
import Tap from '../../../../plugins/input/gestures/tap/Tap';
import Press from '../../../../plugins/input/gestures/press/Press';
import Swipe from '../../../../plugins/input/gestures/swipe/Swipe';
export default SetChildrenInteractive;
declare namespace SetChildrenInteractive {
interface IConfig {
targets?: Phaser.GameObjects.GameObject[],
targetMode?: 'parent' | 'direct',
dropZone?: boolean,
click?: Button.IConfig | boolean,
over?: {} | boolean,
tap?: Tap.IConfig | boolean,
press?: Press.IConfig | boolean,
swipe?: Swipe.IConfig | boolean,
inputEventPrefix?: string,
eventEmitter?: Phaser.Events.EventEmitter,
}
}
declare function SetChildrenInteractive(
gameObject: Phaser.GameObjects.GameObject,
config?: SetChildrenInteractive.IConfig
): Phaser.GameObjects.GameObject;