UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

20 lines 692 B
import GameGraphChild from "./GameGraphChild"; import { templateNodeSet } from "../collections/typeGuards"; import { createObjectPtr } from "../pointers/createObjectPtr"; export default class TemplateNode extends GameGraphChild { spawnNode; constructor() { super(); this.$disableSelection = true; templateNodeSet.add(this); } set source(type) { const target = typeof type === "string" ? createObjectPtr[0](type) : type; target.dispose(); this.children = target.children; this._name = target.name; this._id = target.id; Object.setPrototypeOf(this, target); } } //# sourceMappingURL=TemplateNode.js.map