mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
24 lines
625 B
JavaScript
24 lines
625 B
JavaScript
import IEntity from "./IEntity.js"
|
|
import InvariantTextEntity from "./InvariantTextEntity.js"
|
|
import LocalizedTextEntity from "./LocalizedTextEntity.js"
|
|
import UnionType from "./UnionType.js"
|
|
|
|
export default class FormatTextEntity extends IEntity {
|
|
|
|
static lookbehind = "LOCGEN_FORMAT_NAMED"
|
|
static attributes = {
|
|
value: {
|
|
type: [new UnionType(LocalizedTextEntity, String, InvariantTextEntity, FormatTextEntity)],
|
|
},
|
|
}
|
|
|
|
static {
|
|
this.cleanupAttributes(this.attributes)
|
|
}
|
|
|
|
constructor(values) {
|
|
super(values)
|
|
/** @type {String} */ this.value
|
|
}
|
|
}
|