mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 17:54:52 +08:00
* Grammar refactoring WIP * ISerializer.grammar * Fixing various bugs in the grammar * Small touch that improoves performance * Fix unknown values grammar * Various fixes * Serialization refactoring to drop suboject logic * Details fixed * Entity attributes initialization refactoring * JSDoc error fixed * Rename value key to default * Remove useless default * Revert string keys
36 lines
762 B
JavaScript
36 lines
762 B
JavaScript
import IEntity from "../../js/entity/IEntity"
|
|
|
|
export default class SimpleEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
someNumber: {
|
|
default: 567,
|
|
},
|
|
someString: {
|
|
default: "alpha",
|
|
},
|
|
someString2: {
|
|
default: "beta",
|
|
},
|
|
someBoolean: {
|
|
default: true,
|
|
},
|
|
someBoolean2: {
|
|
default: false,
|
|
},
|
|
someObjectString: {
|
|
default: new String("gamma"),
|
|
},
|
|
someArray: {
|
|
default: [400, 500, 600, 700, 800],
|
|
},
|
|
someSet: {
|
|
default: new Set([10, 20, 30, 40, 50, 60, 70]),
|
|
},
|
|
}
|
|
|
|
static {
|
|
this.cleanupAttributes(this.attributes)
|
|
}
|
|
}
|