diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-12 13:21:20 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2024-06-12 13:21:20 +0200 |
commit | db98449454a0d94a9e375c0fe0998c76d7c5d6ef (patch) | |
tree | 3cfb6d03d734d22171555e10e157c7e916dc5037 /NodeInput.cpp | |
parent | abd2e7d06055cf5e0e203279a4e19f19abdb0170 (diff) | |
parent | f134abd08ccfdb1ece39df4d4a0e422419bd2fed (diff) |
Merge branch 'node'
Diffstat (limited to 'NodeInput.cpp')
-rw-r--r-- | NodeInput.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/NodeInput.cpp b/NodeInput.cpp new file mode 100644 index 0000000..046cd72 --- /dev/null +++ b/NodeInput.cpp @@ -0,0 +1,26 @@ +#include "NodeInput.h" + +NodeInput::NodeInput(const char * type) : Node(type) { } + +void NodeInput::compare() { + if (this->output == nullptr) return; + + this->output->setLevel(this->level); +} + +NodeInput::NodeInput(const NodeInput * prototype) : Node() { } + +NodeInput * NodeInput::clone() const { + return new NodeInput(this); +} + +// INPUT_LOW +NodeInputLow NodeInputLow::instance(NodeInputLow::type); +NodeInputLow::NodeInputLow(const char * type) : NodeInput() { } + +// NodeInputLow::NodeInputLow(const NodeInputLow * prototype) : NodeInput() { } + +// // INPUT_HIGH +// NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type); +// NodeInputHigh::NodeInputHigh(const char * type) : NodeInput(type) { } +// NodeInputHigh::NodeInputHigh(const NodeInputHigh * prototype) : NodeInput() { } |