phaser4-rex-plugins
Version:
21 lines (18 loc) • 348 B
JavaScript
import { Invert } from '../../../nodes';
/*
```yaml
conditions:
invert:
```
*/
var CreateInvertNode = function (data, child) {
if (IsPlainObject(data)) {
data.child = child;
} else {
data = {
child: child
}
}
return new Invert(data);
}
export default CreateInvertNode;