Files
ueblueprint/js/entity/ColorChannelEntity.js
2023-05-06 18:38:29 +02:00

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)
}
}