UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

24 lines (23 loc) 940 B
"use strict"; import { Poly } from "../../Poly"; import { BaseAudioSourceJsNode } from "./_BaseAudioSource"; import { inputObject3D } from "./_BaseObject3D"; export class PauseAudioSourceJsNode extends BaseAudioSourceJsNode { static type() { return "pauseAudioSource"; } setTriggerableLines(shadersCollectionController) { const object3D = inputObject3D(this, shadersCollectionController); const node = this.pv.node.node(); if (!node) { return; } const nodePath = `'${node.path()}'`; const func = Poly.namedFunctionsRegister.getFunction("pauseAudioSource", this, shadersCollectionController); const bodyLine = func.asString(object3D, nodePath); shadersCollectionController.addTriggerableLines(this, [bodyLine]); } setTriggeringLines(shadersCollectionController, triggeredMethods) { shadersCollectionController.addTriggeringLines(this, [triggeredMethods], { gatherable: false }); } }