mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 21:57:38 +08:00
Attributes initialization refactoring (#19)
This commit is contained in:
@@ -1,28 +1,15 @@
|
||||
import AttributeInfo from "./AttributeInfo.js"
|
||||
import IEntity from "./IEntity.js"
|
||||
|
||||
export default class TerminalTypeEntity extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
...super.attributes,
|
||||
TerminalCategory: {
|
||||
type: String,
|
||||
},
|
||||
TerminalSubCategory: {
|
||||
type: String,
|
||||
},
|
||||
bTerminalIsConst: {
|
||||
type: Boolean,
|
||||
},
|
||||
bTerminalIsWeakPointer: {
|
||||
type: Boolean,
|
||||
},
|
||||
bTerminalIsUObjectWrapper: {
|
||||
type: Boolean,
|
||||
},
|
||||
}
|
||||
|
||||
static {
|
||||
this.cleanupAttributes(this.attributes)
|
||||
TerminalCategory: AttributeInfo.createType(String),
|
||||
TerminalSubCategory: AttributeInfo.createType(String),
|
||||
bTerminalIsConst: AttributeInfo.createType(Boolean),
|
||||
bTerminalIsWeakPointer: AttributeInfo.createType(Boolean),
|
||||
bTerminalIsUObjectWrapper: AttributeInfo.createType(Boolean),
|
||||
}
|
||||
|
||||
constructor(values) {
|
||||
|
||||
Reference in New Issue
Block a user