mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Attributes initialization refactoring (#19)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Grammar from "../serialization/Grammar.js"
|
||||
import AttributeInfo from "./AttributeInfo.js"
|
||||
import GuidEntity from "./GuidEntity.js"
|
||||
import IEntity from "./IEntity.js"
|
||||
import ObjectReferenceEntity from "./ObjectReferenceEntity.js"
|
||||
@@ -7,18 +8,9 @@ export default class FunctionReferenceEntity extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
...super.attributes,
|
||||
MemberParent: {
|
||||
type: ObjectReferenceEntity,
|
||||
},
|
||||
MemberName: {
|
||||
type: String,
|
||||
},
|
||||
MemberGuid: {
|
||||
type: GuidEntity,
|
||||
},
|
||||
}
|
||||
static {
|
||||
this.cleanupAttributes(this.attributes)
|
||||
MemberParent: AttributeInfo.createType(ObjectReferenceEntity),
|
||||
MemberName: AttributeInfo.createType(String),
|
||||
MemberGuid: AttributeInfo.createType(GuidEntity),
|
||||
}
|
||||
static grammar = this.createGrammar()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user