mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-13 23:37:30 +08:00
Attributes initialization refactoring (#19)
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
import EntityF from "./EntityF.js"
|
||||
import AttributeInfo from "../../js/entity/AttributeInfo.js"
|
||||
import ObjectEntity from "../../js/entity/ObjectEntity.js"
|
||||
import EntityF from "./EntityF.js"
|
||||
|
||||
// @ts-expect-error
|
||||
export default class Entity5 extends ObjectEntity {
|
||||
|
||||
static attributes = {
|
||||
key1: {
|
||||
type: String,
|
||||
},
|
||||
key2: {
|
||||
type: EntityF,
|
||||
},
|
||||
}
|
||||
static {
|
||||
this.cleanupAttributes(this.attributes)
|
||||
key1: AttributeInfo.createType(String),
|
||||
key2: AttributeInfo.createType(EntityF),
|
||||
}
|
||||
static grammar = this.createGrammar()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user