Rooms, items and some player stuff
This commit is contained in:
23
src/framework/resonator/effects/base-effect.js
Normal file
23
src/framework/resonator/effects/base-effect.js
Normal file
@@ -0,0 +1,23 @@
|
||||
export default class BaseEffect {
|
||||
constructor(context, graph, params) {
|
||||
this.graph = graph;
|
||||
this.context = context;
|
||||
this.effectParams = params;
|
||||
}
|
||||
connectOutput(node) {
|
||||
this.effectNode.connect(node);
|
||||
}
|
||||
connectInput(node) {
|
||||
this.inputNode = node;
|
||||
if (this.effectNode) {
|
||||
this.inputNode.connect(this.effectNode);
|
||||
}
|
||||
}
|
||||
getOutput() {
|
||||
return this.effectNode;
|
||||
}
|
||||
disconnect() {
|
||||
this.inputNode.disconnect();
|
||||
this.effectNode.disconnect();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user