From cab892c3b736ee6629deb9c39a2e79ca60dce519 Mon Sep 17 00:00:00 2001 From: Philippe Roy Date: Fri, 19 Apr 2019 00:01:41 +0000 Subject: [PATCH] Revert "Delete NodeTree.hx" This reverts commit 249c948ff0a2f1b84293390beeac7c78e6eea6d6 --- Sources/arm/node/NodeTree.hx | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Sources/arm/node/NodeTree.hx diff --git a/Sources/arm/node/NodeTree.hx b/Sources/arm/node/NodeTree.hx new file mode 100644 index 0000000..25436c0 --- /dev/null +++ b/Sources/arm/node/NodeTree.hx @@ -0,0 +1,50 @@ +package arm.node; + +@:keep class NodeTree extends armory.logicnode.LogicTree { + + var functionNodes:Map; + + var functionOutputNodes:Map; + + public function new() { + super(); + name = "NodeTree"; + this.functionNodes = new Map(); + this.functionOutputNodes = new Map(); + notifyOnAdd(add); + } + + override public function add() { + var _Print_001 = new armory.logicnode.PrintNode(this); + var _SetProperty = new armory.logicnode.SetPropertyNode(this); + var _SetLocation_002 = new armory.logicnode.SetLocationNode(this); + var _Print = new armory.logicnode.PrintNode(this); + _Print.addInput(new armory.logicnode.NullNode(this), 0); + var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); + _GetLocation_001.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step4"), 0); + _GetLocation_001.addOutputs([_SetLocation_002, _Print]); + _Print.addInput(_GetLocation_001, 0); + _Print.addOutputs([_SetLocation_002]); + _SetLocation_002.addInput(_Print, 0); + _SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetLocation_002.addInput(_GetLocation_001, 0); + _SetLocation_002.addOutputs([_SetProperty]); + _SetProperty.addInput(_SetLocation_002, 0); + _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty.addInput(new armory.logicnode.StringNode(this, "step"), 0); + var _Integer = new armory.logicnode.IntegerNode(this); + _Integer.addInput(new armory.logicnode.IntegerNode(this, 4), 0); + _Integer.addOutputs([_SetProperty, _Print_001]); + _SetProperty.addInput(_Integer, 0); + _SetProperty.addOutputs([_Print_001]); + _Print_001.addInput(_SetProperty, 0); + _Print_001.addInput(_Integer, 0); + _Print_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _OnInit_001 = new armory.logicnode.OnInitNode(this); + _OnInit_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _OnMouse = new armory.logicnode.OnMouseNode(this); + _OnMouse.property0 = "Down"; + _OnMouse.property1 = "left"; + _OnMouse.addOutputs([new armory.logicnode.NullNode(this)]); + } +} \ No newline at end of file