mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-18 19:47:32 +08:00
Entities semplification
* Entities semplification WIP * Bug fixes after entity semplification * Fix object serialization
This commit is contained in:
@@ -5,15 +5,15 @@ export default class Entity1 extends IEntity {
|
||||
static attributes = {
|
||||
a: {
|
||||
type: Number,
|
||||
default: 8,
|
||||
},
|
||||
b: {
|
||||
type: Number,
|
||||
default: 9,
|
||||
},
|
||||
}
|
||||
|
||||
constructor(values = {}) {
|
||||
values.a ??= 8
|
||||
values.b ??= 9
|
||||
super(values)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user