17 lines
282 B
Haxe
17 lines
282 B
Haxe
|
package leenkx.logicnode;
|
||
|
|
||
|
class FunctionOutputNode extends LogicNode {
|
||
|
|
||
|
@:allow(leenkx.logicnode.LogicTree)
|
||
|
var result: Dynamic;
|
||
|
|
||
|
public function new(tree: LogicTree) {
|
||
|
super(tree);
|
||
|
}
|
||
|
|
||
|
override function run(from: Int) {
|
||
|
this.result = inputs[1].get();
|
||
|
runOutput(0);
|
||
|
}
|
||
|
}
|