Attributes initialization refactoring (#19)

This commit is contained in:
barsdeveloper
2024-03-24 17:30:50 +01:00
committed by GitHub
parent 5973570911
commit cc9e3d833a
93 changed files with 4134 additions and 4082 deletions

View File

@@ -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()
}