mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
50 lines
1.5 KiB
JavaScript
50 lines
1.5 KiB
JavaScript
import Entity from "./Entity"
|
|
import GuidEntity from "./GuidEntity"
|
|
import LocalizedTextEntity from "./LocalizedTextEntity"
|
|
import ObjectReferenceEntity from "./ObjectReferenceEntity"
|
|
import TypeInitialization from "./TypeInitialization"
|
|
import PinReferenceEntity from "./PinReferenceEntity"
|
|
|
|
export default class PinEntity extends Entity {
|
|
|
|
static attributes = {
|
|
PinId: GuidEntity,
|
|
PinName: "",
|
|
PinFriendlyName: new TypeInitialization(new LocalizedTextEntity(), false),
|
|
PinToolTip: "",
|
|
Direction: new TypeInitialization("", false),
|
|
PinType: {
|
|
PinCategory: "",
|
|
PinSubCategory: "",
|
|
PinSubCategoryObject: ObjectReferenceEntity,
|
|
PinSubCategoryMemberReference: null,
|
|
PinValueType: null,
|
|
ContainerType: ObjectReferenceEntity,
|
|
bIsReference: false,
|
|
bIsConst: false,
|
|
bIsWeakPointer: false,
|
|
bIsUObjectWrapper: false
|
|
},
|
|
LinkedTo: [new TypeInitialization(null, false, PinReferenceEntity)],
|
|
DefaultValue: "",
|
|
AutogeneratedDefaultValue: "",
|
|
PersistentGuid: GuidEntity,
|
|
bHidden: false,
|
|
bNotConnectable: false,
|
|
bDefaultValueIsReadOnly: false,
|
|
bDefaultValueIsIgnored: false,
|
|
bAdvancedView: false,
|
|
bOrphanedPin: false,
|
|
}
|
|
|
|
getAttributes() {
|
|
return PinEntity.attributes
|
|
}
|
|
|
|
isOutput() {
|
|
if (this.Direction === "EGPD_Output") {
|
|
return true
|
|
}
|
|
}
|
|
}
|