frankie-on-platform/Sources/arm/node/General.hx
2019-04-19 01:47:51 +02:00

95 lines
4.2 KiB
Haxe

package arm.node;
@:keep class General extends armory.logicnode.LogicTree {
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
public function new() {
super();
name = "General";
this.functionNodes = new Map();
this.functionOutputNodes = new Map();
notifyOnAdd(add);
}
override public function add() {
var _Shutdown = new armory.logicnode.ShutdownNode(this);
var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard.property0 = "Down";
_OnKeyboard.property1 = "escape";
_OnKeyboard.addOutputs([_Shutdown]);
_Shutdown.addInput(_OnKeyboard, 0);
_Shutdown.addOutputs([new armory.logicnode.NullNode(this)]);
var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this);
var _OnInit = new armory.logicnode.OnInitNode(this);
_OnInit.addOutputs([_SetProperty_001]);
_SetProperty_001.addInput(_OnInit, 0);
_SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0);
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "depart"), 0);
var _Boolean = new armory.logicnode.BooleanNode(this);
_Boolean.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_Boolean.addOutputs([_SetProperty_001]);
_SetProperty_001.addInput(_Boolean, 0);
_SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]);
var _OnKeyboard_002 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_002.property0 = "Released";
_OnKeyboard_002.property1 = "space";
_OnKeyboard_002.addOutputs([new armory.logicnode.NullNode(this)]);
var _SetCamera = new armory.logicnode.SetCameraNode(this);
var _SetProperty_002 = new armory.logicnode.SetPropertyNode(this);
var _IsTrue = new armory.logicnode.IsTrueNode(this);
var _Merge = new armory.logicnode.MergeNode(this);
_Merge.addInput(new armory.logicnode.NullNode(this), 0);
var _OnKeyboard_003 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_003.property0 = "Released";
_OnKeyboard_003.property1 = "down";
_OnKeyboard_003.addOutputs([_Merge]);
_Merge.addInput(_OnKeyboard_003, 0);
var _OnKeyboard_004 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_004.property0 = "Released";
_OnKeyboard_004.property1 = "up";
_OnKeyboard_004.addOutputs([_Merge]);
_Merge.addInput(_OnKeyboard_004, 0);
var _OnKeyboard_005 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_005.property0 = "Released";
_OnKeyboard_005.property1 = "left";
_OnKeyboard_005.addOutputs([_Merge]);
_Merge.addInput(_OnKeyboard_005, 0);
var _OnKeyboard_006 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_006.property0 = "Released";
_OnKeyboard_006.property1 = "right";
_OnKeyboard_006.addOutputs([_Merge]);
_Merge.addInput(_OnKeyboard_006, 0);
var _OnKeyboard_007 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_007.property0 = "Released";
_OnKeyboard_007.property1 = "f";
_OnKeyboard_007.addOutputs([_Merge]);
_Merge.addInput(_OnKeyboard_007, 0);
var _OnKeyboard_008 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_008.property0 = "Released";
_OnKeyboard_008.property1 = "e";
_OnKeyboard_008.addOutputs([_Merge]);
_Merge.addInput(_OnKeyboard_008, 0);
_Merge.addOutputs([_IsTrue]);
_IsTrue.addInput(_Merge, 0);
var _GetProperty = new armory.logicnode.GetPropertyNode(this);
_GetProperty.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0);
_GetProperty.addInput(new armory.logicnode.StringNode(this, "depart"), 0);
_GetProperty.addOutputs([_IsTrue]);
_IsTrue.addInput(_GetProperty, 0);
_IsTrue.addOutputs([_SetProperty_002]);
_SetProperty_002.addInput(_IsTrue, 0);
_SetProperty_002.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0);
_SetProperty_002.addInput(new armory.logicnode.StringNode(this, "depart"), 0);
var _Boolean_001 = new armory.logicnode.BooleanNode(this);
_Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_Boolean_001.addOutputs([_SetProperty_002]);
_SetProperty_002.addInput(_Boolean_001, 0);
_SetProperty_002.addOutputs([_SetCamera]);
_SetCamera.addInput(_SetProperty_002, 0);
_SetCamera.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_SetCamera.addOutputs([new armory.logicnode.NullNode(this)]);
}
}