aboutsummaryrefslogtreecommitdiff
path: root/NodeOutput.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-15 19:55:38 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-15 19:55:38 +0200
commitbdb2d85a244b5ebb462c8b9763a3b539b0cc68f3 (patch)
tree509dfba9ebe74c3a128d0ae8c7be56a40b49adf0 /NodeOutput.cpp
parentcc85e73456fee27236f0fa18ad7bc9ccd6877c19 (diff)
WIP WIP WIP
Diffstat (limited to 'NodeOutput.cpp')
-rw-r--r--NodeOutput.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/NodeOutput.cpp b/NodeOutput.cpp
index cf1b979..883868d 100644
--- a/NodeOutput.cpp
+++ b/NodeOutput.cpp
@@ -3,19 +3,15 @@
NodeOutput NodeOutput::instance(NodeOutput::type);
-NodeOutput::NodeOutput(const char * type) : Node(type) { init(); }
-
-void NodeOutput::init() {
- this->min_inputs = 1;
- this->max_inputs = 1;
-}
-
void NodeOutput::sim() {
Node::sim();
this->input = this->inputs[0]->getLevel();
}
-NodeOutput::NodeOutput(const NodeOutput * prototype) : Node() { init(); }
+NodeOutput::NodeOutput(const NodeOutput * prototype) : Node() {
+ this->min_inputs = 1;
+ this->max_inputs = 1;
+}
NodeOutput * NodeOutput::clone() const {
return new NodeOutput(this);