Files
ueblueprint/js/entity/FormatTextEntity.js
2023-03-10 10:52:32 +01:00

24 lines
604 B
JavaScript

import IEntity from "./IEntity"
import InvariantTextEntity from "./InvariantTextEntity"
import LocalizedTextEntity from "./LocalizedTextEntity"
import UnionType from "./UnionType"
export default class FormatTextEntity extends IEntity {
static lookbehind = "LOCGEN_FORMAT_NAMED"
static attributes = {
value: {
type: [new UnionType(LocalizedTextEntity, InvariantTextEntity, FormatTextEntity)]
},
}
static {
this.cleanupAttributes(this.attributes)
}
constructor(values) {
super(values)
/** @type {String} */ this.value
}
}