mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-07 08:07:29 +08:00
Some documentation comments
This commit is contained in:
@@ -7,4 +7,7 @@ export default class FunctionReferenceEntity extends IEntity {
|
||||
MemberParent: ObjectReferenceEntity,
|
||||
MemberName: ""
|
||||
}
|
||||
|
||||
/** @type {ObjectReferenceEntity} */ MemberParent
|
||||
/** @type {String} */ MemberName
|
||||
}
|
||||
|
||||
@@ -9,4 +9,10 @@ export default class KeyBindingEntity extends IEntity {
|
||||
Key: String,
|
||||
CommandName: String,
|
||||
}
|
||||
|
||||
/** @type {Boolean} */ bCtrlDown
|
||||
/** @type {Boolean} */ bAltDown
|
||||
/** @type {Boolean} */ bShiftDown
|
||||
/** @type {String} */ Key
|
||||
/** @type {String} */ CommandName
|
||||
}
|
||||
|
||||
@@ -8,4 +8,8 @@ export default class LocalizedTextEntity extends IEntity {
|
||||
key: String,
|
||||
value: String
|
||||
}
|
||||
|
||||
/** @type {String} */ namespace
|
||||
/** @type {String} */ key
|
||||
/** @type {String} */ value
|
||||
}
|
||||
|
||||
@@ -25,8 +25,21 @@ export default class ObjectEntity extends IEntity {
|
||||
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() {
|
||||
|
||||
@@ -6,4 +6,7 @@ export default class ObjectReferenceEntity extends IEntity {
|
||||
type: String,
|
||||
path: String
|
||||
}
|
||||
|
||||
/** @type {String} */ type
|
||||
/** @type {String} */ path
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ import IEntity from "./IEntity"
|
||||
|
||||
export default class PathSymbolEntity extends IEntity {
|
||||
|
||||
//value
|
||||
|
||||
static attributes = {
|
||||
value: String
|
||||
}
|
||||
|
||||
@@ -5,6 +5,20 @@ import ObjectReferenceEntity from "./ObjectReferenceEntity"
|
||||
import PinReferenceEntity from "./PinReferenceEntity"
|
||||
import TypeInitialization from "./TypeInitialization"
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* PinCategory: String,
|
||||
* PinSubCategory: String,
|
||||
* PinSubCategoryObject: ObjectReferenceEntity,
|
||||
* PinSubCategoryMemberReference: *,
|
||||
* PinValueType: String,
|
||||
* ContainerType: ObjectReferenceEntity,
|
||||
* bIsReference: Boolean,
|
||||
* bIsConst: Boolean,
|
||||
* bIsWeakPointer: Boolean,
|
||||
* bIsUObjectWrapper: Boolean,
|
||||
* }} PinTypeObjectType
|
||||
*/
|
||||
export default class PinEntity extends IEntity {
|
||||
|
||||
static lookbehind = "Pin"
|
||||
@@ -24,7 +38,7 @@ export default class PinEntity extends IEntity {
|
||||
bIsReference: false,
|
||||
bIsConst: false,
|
||||
bIsWeakPointer: false,
|
||||
bIsUObjectWrapper: false
|
||||
bIsUObjectWrapper: false,
|
||||
},
|
||||
LinkedTo: [PinReferenceEntity],
|
||||
DefaultValue: "",
|
||||
@@ -38,6 +52,23 @@ export default class PinEntity extends IEntity {
|
||||
bOrphanedPin: false,
|
||||
}
|
||||
|
||||
/** @type {GuidEntity} */ PinId
|
||||
/** @type {String} */ PinName
|
||||
/** @type {LocalizedTextEntity} */ PinFriendlyName
|
||||
/** @type {String} */ PinToolTip
|
||||
/** @type {String} */ Direction
|
||||
/** @type {PinTypeObjectType} */ PinType
|
||||
/** @type {PinReferenceEntity[]} */ LinkedTo
|
||||
/** @type {String} */ DefaultValue
|
||||
/** @type {String} */ AutogeneratedDefaultValue
|
||||
/** @type {GuidEntity} */ PersistentGuid
|
||||
/** @type {Boolean} */ bHidden
|
||||
/** @type {Boolean} */ bNotConnectable
|
||||
/** @type {Boolean} */ bDefaultValueIsReadOnly
|
||||
/** @type {Boolean} */ bDefaultValueIsIgnored
|
||||
/** @type {Boolean} */ bAdvancedView
|
||||
/** @type {Boolean} */ bOrphanedPin
|
||||
|
||||
isInput() {
|
||||
return !this.bHidden && this.Direction !== "EGPD_Output"
|
||||
}
|
||||
@@ -47,7 +78,19 @@ export default class PinEntity extends IEntity {
|
||||
}
|
||||
|
||||
isConnected() {
|
||||
return this.LinkedTo.length > 0
|
||||
return this.LinkedTo?.length > 0 ?? false
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {PinReferenceEntity} pinReferenceEntity
|
||||
*/
|
||||
connectTo(pinReferenceEntity) {
|
||||
/** @type {PinReferenceEntity[]} */
|
||||
this.LinkedTo
|
||||
this.LinkedTo.forEach(reference => {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
getType() {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import GuidEntity from "./GuidEntity"
|
||||
import IEntity from "./IEntity"
|
||||
import PathSymbol from "./PathSymbolEntity"
|
||||
import PathSymbolEntity from "./PathSymbolEntity"
|
||||
|
||||
export default class PinReferenceEntity extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
objectName: PathSymbol,
|
||||
objectName: PathSymbolEntity,
|
||||
pinGuid: GuidEntity
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ export default class TypeInitialization {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {typeof Object} type
|
||||
* @param {boolean} showDefault
|
||||
* @param {*} value
|
||||
|
||||
Reference in New Issue
Block a user