mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-19 04:55:57 +08:00
WIP
This commit is contained in:
@@ -6,7 +6,7 @@ export default class MirroredEntity extends IEntity {
|
||||
/** @type {typeof IEntity} */
|
||||
static type
|
||||
|
||||
/** @param {() => T} getter */
|
||||
/** @param {() => InstanceType<T>} getter */
|
||||
constructor(getter = null) {
|
||||
super()
|
||||
this.getter = getter
|
||||
@@ -32,7 +32,11 @@ export default class MirroredEntity extends IEntity {
|
||||
return result
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.getter().toString()
|
||||
toString(
|
||||
insideString = false,
|
||||
indentation = "",
|
||||
printKey = this.Self().printKey,
|
||||
) {
|
||||
return this.getter().toString(insideString, indentation, printKey)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user