armory/Sources/armory/logicnode/FunctionOutputNode.hx

17 lines
282 B
Haxe
Raw Normal View History

package armory.logicnode;
class FunctionOutputNode extends LogicNode {
@:allow(armory.logicnode.LogicTree)
2019-12-19 23:54:08 +01:00
var result: Dynamic;
2019-12-19 23:54:08 +01:00
public function new(tree: LogicTree) {
super(tree);
}
2019-12-19 23:54:08 +01:00
override function run(from: Int) {
this.result = inputs[1].get();
runOutput(0);
}
}