mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
33 lines
1.0 KiB
JavaScript
Executable File
33 lines
1.0 KiB
JavaScript
Executable File
import P from "parsernostrum"
|
|
import Grammar from "../serialization/Grammar.js"
|
|
import BooleanEntity from "./BooleanEntity.js"
|
|
import IEntity from "./IEntity.js"
|
|
import StringEntity from "./StringEntity.js"
|
|
|
|
export default class TerminalTypeEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
...super.attributes,
|
|
TerminalCategory: StringEntity,
|
|
TerminalSubCategory: StringEntity,
|
|
bTerminalIsConst: BooleanEntity,
|
|
bTerminalIsWeakPointer: BooleanEntity,
|
|
bTerminalIsUObjectWrapper: BooleanEntity,
|
|
}
|
|
static grammar = this.createGrammar()
|
|
|
|
constructor(values) {
|
|
super(values)
|
|
/** @type {String} */ this.TerminalCategory
|
|
/** @type {String} */ this.TerminalSubCategory
|
|
/** @type {Boolean} */ this.bTerminalIsConst
|
|
/** @type {Boolean} */ this.bTerminalIsWeakPointer
|
|
/** @type {Boolean} */ this.bTerminalIsUObjectWrapper
|
|
}
|
|
|
|
/** @returns {P<TerminalTypeEntity>} */
|
|
static createGrammar() {
|
|
return Grammar.createEntityGrammar(this)
|
|
}
|
|
}
|