mirror of
https://forge.apps.education.fr/phroy/frankie-on-platform.git
synced 2024-01-27 11:32:04 +01:00
Merge branch 'revert-249c948f' into 'master'
Revert "Delete NodeTree.hx" See merge request phroy/frankie-on-platform!6
This commit is contained in:
commit
96040ec74c
50
Sources/arm/node/NodeTree.hx
Normal file
50
Sources/arm/node/NodeTree.hx
Normal file
@ -0,0 +1,50 @@
|
||||
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)]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user