Rooms, items and some player stuff

This commit is contained in:
2021-11-04 20:58:37 +01:00
parent 36bb9264b3
commit a745ff299e
277 changed files with 14665 additions and 5 deletions

View 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();
}
}