frankie-on-platform/Sources/arm/node/NodeTree.hx
2019-04-17 01:04:52 +02:00

50 lines
2.1 KiB
Haxe

package arm.node;
@:keep class NodeTree extends armory.logicnode.LogicTree {
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
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)]);
}
}