Files
ueblueprint/js/entity/NaturalNumberEntity.js
barsdeveloper a0eeca11d1 Various fixes
2022-03-28 23:04:24 +02:00

13 lines
295 B
JavaScript
Executable File

// @ts-check
import IntegerEntity from "./IntegerEntity"
import Utility from "../Utility"
export default class NaturalNumberEntity extends IntegerEntity {
constructor(options = {}) {
super(options)
this.value = Math.round(Utility.clamp(this.value, 0))
}
}