Files
ueblueprint/js/entity/SymbolEntity.js
barsdeveloper ecc71b76d1 WIP
2024-05-31 15:09:48 +02:00

22 lines
433 B
JavaScript

import Grammar from "../serialization/Grammar.js"
import IEntity from "./IEntity.js"
export default class SymbolEntity extends IEntity {
static grammar = Grammar.symbol.map(v => new this(v)).label("SymbolEntity")
/** @param {String} value */
constructor(value = "") {
super()
this.value = value
}
valueOf() {
return this.value
}
toString() {
return this.value
}
}