Refactoring and bugfixing

This commit is contained in:
barsdeveloper
2021-10-24 00:17:16 +02:00
parent a34be2351e
commit f80c9f8dc1
16 changed files with 274 additions and 1396 deletions

View File

@@ -1,12 +1,14 @@
import Entity from "./Entity";
import Guid from "../Guid";
import ObjectReferenceEntity from "./ObjectReferenceEntity";
import TypeInitialization from "./TypeInitialization";
import LocalizedTextEntity from "./LocalizedTextEntity";
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: Guid,
PinId: GuidEntity,
PinName: "",
PinFriendlyName: new TypeInitialization(new LocalizedTextEntity(), false),
PinToolTip: "",
@@ -23,10 +25,10 @@ export default class PinEntity extends Entity {
bIsWeakPointer: false,
bIsUObjectWrapper: false
},
LinkedTo: Guid,
LinkedTo: [new TypeInitialization(null, false, PinReferenceEntity)],
DefaultValue: "",
AutogeneratedDefaultValue: "",
PersistentGuid: Guid,
PersistentGuid: GuidEntity,
bHidden: false,
bNotConnectable: false,
bDefaultValueIsReadOnly: false,
@@ -38,4 +40,10 @@ export default class PinEntity extends Entity {
getAttributes() {
return PinEntity.attributes
}
}
isOutput() {
if (this.Direction === "EGPD_Output") {
return true
}
}
}