package lnx.node; @:access(leenkx.logicnode.LogicNode)@:keep class TankTree extends leenkx.logicnode.LogicTree { var functionNodes:Map; var functionOutputNodes:Map; public function new() { super(); this.functionNodes = new Map(); this.functionOutputNodes = new Map(); notifyOnAdd(add); } override public function add() { var _TranslateObject = new leenkx.logicnode.TranslateObjectNode(this); _TranslateObject.preallocInputs(4); _TranslateObject.preallocOutputs(1); var _OnEvent_001 = new leenkx.logicnode.OnEventNode(this); _OnEvent_001.property1 = "init"; _OnEvent_001.preallocInputs(1); _OnEvent_001.preallocOutputs(1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.StringNode(this, "backward"), _OnEvent_001, 0, 0); leenkx.logicnode.LogicNode.addLink(_OnEvent_001, _TranslateObject, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.ObjectNode(this, ""), _TranslateObject, 0, 1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.VectorNode(this, 0.0,-0.05000000074505806,0.0), _TranslateObject, 0, 2); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.BooleanNode(this, true), _TranslateObject, 0, 3); leenkx.logicnode.LogicNode.addLink(_TranslateObject, new leenkx.logicnode.NullNode(this), 0, 0); var _TranslateObject_002 = new leenkx.logicnode.TranslateObjectNode(this); _TranslateObject_002.preallocInputs(4); _TranslateObject_002.preallocOutputs(1); var _OnEvent_003 = new leenkx.logicnode.OnEventNode(this); _OnEvent_003.property1 = "init"; _OnEvent_003.preallocInputs(1); _OnEvent_003.preallocOutputs(1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.StringNode(this, "forward"), _OnEvent_003, 0, 0); leenkx.logicnode.LogicNode.addLink(_OnEvent_003, _TranslateObject_002, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.ObjectNode(this, ""), _TranslateObject_002, 0, 1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.VectorNode(this, 0.0,0.05000000074505806,0.0), _TranslateObject_002, 0, 2); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.BooleanNode(this, true), _TranslateObject_002, 0, 3); leenkx.logicnode.LogicNode.addLink(_TranslateObject_002, new leenkx.logicnode.NullNode(this), 0, 0); var _Rotation_001 = new leenkx.logicnode.RotationNode(this); _Rotation_001.property0 = "EulerAngles"; _Rotation_001.property1 = "Deg"; _Rotation_001.property2 = "XYZ"; _Rotation_001.preallocInputs(2); _Rotation_001.preallocOutputs(1); var _Vector_001 = new leenkx.logicnode.VectorNode(this); _Vector_001.preallocInputs(3); _Vector_001.preallocOutputs(1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.0), _Vector_001, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.0), _Vector_001, 0, 1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.029999999329447746), _Vector_001, 0, 2); leenkx.logicnode.LogicNode.addLink(_Vector_001, _Rotation_001, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.0), _Rotation_001, 0, 1); var _RotateObject = new leenkx.logicnode.RotateObjectNode(this); _RotateObject.property0 = "Local"; _RotateObject.preallocInputs(3); _RotateObject.preallocOutputs(1); var _OnEvent = new leenkx.logicnode.OnEventNode(this); _OnEvent.property1 = "init"; _OnEvent.preallocInputs(1); _OnEvent.preallocOutputs(1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.StringNode(this, "turn_left"), _OnEvent, 0, 0); leenkx.logicnode.LogicNode.addLink(_OnEvent, _RotateObject, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.ObjectNode(this, ""), _RotateObject, 0, 1); var _Rotation = new leenkx.logicnode.RotationNode(this); _Rotation.property0 = "EulerAngles"; _Rotation.property1 = "Deg"; _Rotation.property2 = "XYZ"; _Rotation.preallocInputs(2); _Rotation.preallocOutputs(1); var _Vector_002 = new leenkx.logicnode.VectorNode(this); _Vector_002.preallocInputs(3); _Vector_002.preallocOutputs(1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.0), _Vector_002, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.0), _Vector_002, 0, 1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, -0.029999999329447746), _Vector_002, 0, 2); leenkx.logicnode.LogicNode.addLink(_Vector_002, _Rotation, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.FloatNode(this, 0.0), _Rotation, 0, 1); leenkx.logicnode.LogicNode.addLink(_Rotation, _RotateObject, 0, 2); leenkx.logicnode.LogicNode.addLink(_RotateObject, new leenkx.logicnode.NullNode(this), 0, 0); var _RotateObject_003 = new leenkx.logicnode.RotateObjectNode(this); _RotateObject_003.property0 = "Local"; _RotateObject_003.preallocInputs(3); _RotateObject_003.preallocOutputs(1); var _OnEvent_004 = new leenkx.logicnode.OnEventNode(this); _OnEvent_004.property1 = "init"; _OnEvent_004.preallocInputs(1); _OnEvent_004.preallocOutputs(1); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.StringNode(this, "turn_right"), _OnEvent_004, 0, 0); leenkx.logicnode.LogicNode.addLink(_OnEvent_004, _RotateObject_003, 0, 0); leenkx.logicnode.LogicNode.addLink(new leenkx.logicnode.ObjectNode(this, ""), _RotateObject_003, 0, 1); leenkx.logicnode.LogicNode.addLink(_Rotation_001, _RotateObject_003, 0, 2); leenkx.logicnode.LogicNode.addLink(_RotateObject_003, new leenkx.logicnode.NullNode(this), 0, 0); } }