mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-14 00:54:48 +08:00
28 lines
755 B
JavaScript
28 lines
755 B
JavaScript
import AttributeInfo from "../../js/entity/AttributeInfo.js"
|
|
import IEntity from "../../js/entity/IEntity.js"
|
|
import Union from "../../js/entity/Union.js"
|
|
import Grammar from "../../js/serialization/Grammar.js"
|
|
|
|
export default class EntityF extends IEntity {
|
|
|
|
static attributes = {
|
|
...super.attributes,
|
|
arg1: AttributeInfo.createType(Number),
|
|
arg2: AttributeInfo.createType(String),
|
|
lookbehind: new AttributeInfo({
|
|
...super.attributes.lookbehind,
|
|
default: new Union("Foo", "Bar"),
|
|
})
|
|
}
|
|
|
|
static grammar = this.createGrammar()
|
|
|
|
static createGrammar() {
|
|
return Grammar.createEntityGrammar(this, false)
|
|
}
|
|
|
|
constructor(values = {}) {
|
|
super(values)
|
|
}
|
|
}
|