mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-27 10:44:43 +08:00
Tests for various entity classes and update entity class implementations
This commit is contained in:
@@ -5,6 +5,9 @@ export default class ByteEntity extends IntegerEntity {
|
||||
|
||||
static grammar = P.numberByte.map(v => new this(v))
|
||||
|
||||
get value() {
|
||||
return super.value
|
||||
}
|
||||
set value(value) {
|
||||
if (value % 1 == 0 && value >= 0 && value < 1 << 8) {
|
||||
super.value = value
|
||||
|
||||
Reference in New Issue
Block a user