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,16 +1,17 @@
import AttributeInfo from "../../js/entity/AttributeInfo.js"
import IEntity from "../../js/entity/IEntity.js"
export default class Entity1 extends IEntity {
static attributes = {
a: {
a: new AttributeInfo({
type: Number,
default: 8,
},
b: {
}),
b: new AttributeInfo({
type: Number,
default: 9,
},
}),
}
constructor(values = {}) {