mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
11 lines
279 B
JavaScript
Executable File
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))
|
|
}
|
|
}
|