Files
ueblueprint/js/entity/NaturalNumberEntity.js
2021-12-06 22:07:51 +01:00

11 lines
279 B
JavaScript
Executable File

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