mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
26 lines
1.0 KiB
JavaScript
Executable File
26 lines
1.0 KiB
JavaScript
Executable File
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"
|
|
import StringEntity from "./StringEntity.js"
|
|
|
|
export default class FunctionReferenceEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
...super.attributes,
|
|
MemberParent: ObjectReferenceEntity,
|
|
MemberName: StringEntity,
|
|
MemberGuid: GuidEntity,
|
|
}
|
|
/** @type {P<FunctionReferenceEntity>} */
|
|
static grammar = Grammar.createEntityGrammar(this, Grammar.commaSeparation, false, 0)
|
|
|
|
constructor(values) {
|
|
super(values)
|
|
/** @type {InstanceType<typeof FunctionReferenceEntity.attributes.MemberParent>} */ this.MemberParent
|
|
/** @type {InstanceType<typeof FunctionReferenceEntity.attributes.MemberName>} */ this.MemberName
|
|
/** @type {InstanceType<typeof FunctionReferenceEntity.attributes.MemberGuid>} */ this.MemberGuid
|
|
}
|
|
}
|