mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 01:24:41 +08:00
Minification of code and html string template
This commit is contained in:
10
js/entity/NaturalNumberEntity.js
Executable file
10
js/entity/NaturalNumberEntity.js
Executable file
@@ -0,0 +1,10 @@
|
||||
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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user