import FunctionReferenceEntity from "./FunctionReferenceEntity" import GuidEntity from "./GuidEntity" import IEntity from "./IEntity" import IntegerEntity from "./IntegerEntity" import ObjectReferenceEntity from "./ObjectReferenceEntity" import PinEntity from "./PinEntity" import TypeInitialization from "./TypeInitialization" import VariableReferenceEntity from "./VariableReferenceEntity" export default class ObjectEntity extends IEntity { static attributes = { Class: ObjectReferenceEntity, Name: "", bIsPureFunc: new TypeInitialization(Boolean, false, false), VariableReference: new TypeInitialization(VariableReferenceEntity, false, null), FunctionReference: new TypeInitialization(FunctionReferenceEntity, false, null,), EventReference: new TypeInitialization(FunctionReferenceEntity, false, null,), TargetType: new TypeInitialization(ObjectReferenceEntity, false, null), NodePosX: IntegerEntity, NodePosY: IntegerEntity, NodeGuid: GuidEntity, ErrorType: new TypeInitialization(IntegerEntity, false), ErrorMsg: new TypeInitialization(String, false, ""), CustomProperties: [PinEntity] } /** @type {ObjectReferenceEntity} */ Class /** @type {String} */ Name /** @type {Boolean} */ bIsPureFunc /** @type {VariableReferenceEntity} */ VariableReference /** @type {FunctionReferenceEntity} */ FunctionReference /** @type {FunctionReferenceEntity} */ EventReference /** @type {ObjectReferenceEntity} */ TargetType /** @type {IntegerEntity} */ NodePosX /** @type {IntegerEntity} */ NodePosY /** @type {GuidEntity} */ NodeGuid /** @type {IntegerEntity} */ ErrorType /** @type {String} */ ErrorMsg /** @type {PinEntity[]} */ CustomProperties /** * @returns {String} The name of the node */ getNodeDisplayName() { return this.Name } }