mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 08:34:46 +08:00
22 lines
433 B
JavaScript
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
|
|
}
|
|
}
|