mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
* Move grammar parsers to entity classes * Fix includes * Fix Entity5 test * Small detail * Fix unknown keys entities * Persistent grammar objects * Fix grammar * Grammar from variable
38 lines
928 B
JavaScript
Executable File
38 lines
928 B
JavaScript
Executable File
import Grammar from "../serialization/Grammar.js"
|
|
import GuidEntity from "./GuidEntity.js"
|
|
import IEntity from "./IEntity.js"
|
|
|
|
export default class VariableReferenceEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
...super.attributes,
|
|
MemberScope: {
|
|
type: String,
|
|
},
|
|
MemberName: {
|
|
default: "",
|
|
},
|
|
MemberGuid: {
|
|
type: GuidEntity,
|
|
},
|
|
bSelfContext: {
|
|
type: Boolean,
|
|
},
|
|
}
|
|
static {
|
|
this.cleanupAttributes(this.attributes)
|
|
}
|
|
static grammar = this.createGrammar()
|
|
|
|
static createGrammar() {
|
|
return Grammar.createEntityGrammar(this)
|
|
}
|
|
|
|
constructor(values) {
|
|
super(values)
|
|
/** @type {String} */ this.MemberName
|
|
/** @type {GuidEntity} */ this.GuidEntity
|
|
/** @type {Boolean} */ this.bSelfContext
|
|
}
|
|
}
|