14 lines
233 B
Haxe
14 lines
233 B
Haxe
package leenkx.logicnode;
|
|
|
|
class BranchNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function run(from: Int) {
|
|
var b: Bool = inputs[1].get();
|
|
b ? runOutput(0) : runOutput(1);
|
|
}
|
|
}
|