Files
ueblueprint/js/entity/primitive/ObjectReference.js
barsdeveloper 418630255e Various fixes
2021-10-27 19:27:19 +02:00

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
: ""
)
}
}