UNPKG

lingo3d

Version:

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

21 lines 645 B
import { getGameGraph } from "../../../states/useGameGraph"; import Connector from "../../../visualScripting/Connector"; export default (fromManager, fromProp, toManager, toProp, xyz) => { const connector = Object.assign(new Connector(), { from: fromManager.uuid, fromProp, to: toManager.uuid, toProp, xyz }); const gameGraph = getGameGraph(); gameGraph.append(connector); gameGraph.mergeData({ [connector.uuid]: { type: "connector", from: fromManager.uuid, to: toManager.uuid } }); }; //# sourceMappingURL=createConnector.js.map