mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-17 10:17:29 +08:00
Serialization test
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
export default class SimpleObject {
|
||||
import IEntity from "../../js/entity/IEntity.js"
|
||||
|
||||
constructor(a = 8, b = 9) {
|
||||
this.a = a
|
||||
this.b = b
|
||||
export default class SimpleObject extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
a: {
|
||||
type: Number,
|
||||
},
|
||||
b: {
|
||||
type: Number,
|
||||
},
|
||||
}
|
||||
|
||||
constructor(values = {}) {
|
||||
values.a ??= 8
|
||||
values.b ??= 9
|
||||
super(values)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user