mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 16:44:49 +08:00
22 lines
392 B
JavaScript
Executable File
22 lines
392 B
JavaScript
Executable File
import Entity from "./Entity"
|
|
|
|
export default class IntegerEntity extends Entity {
|
|
|
|
static attributes = {
|
|
value: Number
|
|
}
|
|
|
|
getAttributes() {
|
|
return IntegerEntity.attributes
|
|
}
|
|
|
|
constructor(options = {}) {
|
|
super(options)
|
|
this.value = Math.round(value)
|
|
}
|
|
|
|
toString() {
|
|
return this.value.toString()
|
|
}
|
|
}
|