mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 16:44:49 +08:00
24 lines
854 B
JavaScript
24 lines
854 B
JavaScript
import P from "parsernostrum"
|
|
import Grammar from "../serialization/Grammar.js"
|
|
import GuidEntity from "./GuidEntity.js"
|
|
import IEntity from "./IEntity.js"
|
|
import ObjectReferenceEntity from "./ObjectReferenceEntity.js"
|
|
|
|
export default class ScriptVariableEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
...super.attributes,
|
|
ScriptVariable: ObjectReferenceEntity,
|
|
OriginalChangeId: GuidEntity,
|
|
}
|
|
static grammar = /** @type {P<ScriptVariableEntity>} */(
|
|
Grammar.createEntityGrammar(this).label("ScriptVariableEntity")
|
|
)
|
|
|
|
constructor(values = {}) {
|
|
super(values)
|
|
/** @type {InstanceType<typeof ScriptVariableEntity.attributes.ScriptVariable>} */ this.ScriptVariable
|
|
/** @type {InstanceType<typeof ScriptVariableEntity.attributes.OriginalChangeId>} */ this.OriginalChangeId
|
|
}
|
|
}
|