mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
28 lines
459 B
JavaScript
28 lines
459 B
JavaScript
import IEntity from "./IEntity.js"
|
|
|
|
export default class ColorChannelEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
value: {
|
|
default: 0,
|
|
},
|
|
}
|
|
|
|
static {
|
|
this.cleanupAttributes(this.attributes)
|
|
}
|
|
|
|
constructor(values = 0) {
|
|
super(values)
|
|
/** @type {Number} */ this.value
|
|
}
|
|
|
|
valueOf() {
|
|
return this.value
|
|
}
|
|
|
|
toString() {
|
|
return this.value.toFixed(6)
|
|
}
|
|
}
|