mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
24 lines
479 B
JavaScript
Executable File
24 lines
479 B
JavaScript
Executable File
import Primitive from "./Primitive"
|
|
|
|
export default class ObjectReference extends Primitive {
|
|
|
|
/**
|
|
*
|
|
* @param {String} type
|
|
* @param {String} path
|
|
*/
|
|
constructor(type, path) {
|
|
super()
|
|
this.type = type
|
|
this.path = path
|
|
}
|
|
|
|
toString() {
|
|
return (this.type ?? "") + (
|
|
this.path
|
|
? this.type ? `'"${this.path}"'` : this.path
|
|
: ""
|
|
)
|
|
}
|
|
}
|