mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 01:24:41 +08:00
31 lines
656 B
JavaScript
31 lines
656 B
JavaScript
import Entity1 from "./Entity1.js"
|
|
import Entity3 from "./Entity3.js"
|
|
import IEntity from "../../js/entity/IEntity.js"
|
|
|
|
export default class Entity4 extends IEntity {
|
|
|
|
static attributes = {
|
|
first: {
|
|
type: Entity3,
|
|
inlined: true,
|
|
},
|
|
second: {
|
|
default: [new Entity1({ a: 1, b: 2 }), new Entity1({ a: 11, b: 22 })],
|
|
inlined: true,
|
|
},
|
|
}
|
|
|
|
constructor() {
|
|
super()
|
|
IEntity.defineAttributes(this.second, {
|
|
0: {
|
|
inlined: true,
|
|
},
|
|
})
|
|
}
|
|
|
|
static {
|
|
this.cleanupAttributes(this.attributes)
|
|
}
|
|
}
|