import UEBlueprintDraggableObject from "./UEBlueprintDraggableObject.js" export default class UEBlueprintObject extends UEBlueprintDraggableObject { static classInputs = [/* { name: "Input Example", type: 'integer' } */] static classOutputs = [/* { name: "Return Value", type: 'string' }*/ ] static classInFlow = false static classOutFlow = false static className = 'Empty node' static domTemplate(obj) { return `
${obj.constructor.className}
${obj.constructor.classInputs.forEach((input, index) => `
${input.name}
`) ?? ''}
${obj.constructor.classOutputs.forEach((output, index) => `
${output.name}
`) ?? ''}
` } constructor() { super() this.selected = false this.inputs = this.constructor.classInputs.map(value => { return { connected: null } }) this.outputs = this.constructor.classOutputs.map(value => { return { connected: null } }) } isSelected() { return this.selected } setSelected(value = true) { this.selected = value } }