Files
ueblueprint/js/entity/primitive/ObjectReference.js
2021-10-25 15:49:09 +02:00

23 lines
455 B
JavaScript

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