frankie-on-platform/Sources/arm/node/TrackCamera.hx

214 lines
11 KiB
Haxe
Raw Normal View History

2019-04-05 04:40:44 +02:00
package arm.node;
@:keep class TrackCamera extends armory.logicnode.LogicTree {
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
public function new() {
super();
name = "TrackCamera";
this.functionNodes = new Map();
this.functionOutputNodes = new Map();
notifyOnAdd(add);
}
override public function add() {
var _TranslateObject_002 = new armory.logicnode.TranslateObjectNode(this);
var _IsTrue_001 = new armory.logicnode.IsTrueNode(this);
var _OnKeyboard_001 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_001.property0 = "Started";
_OnKeyboard_001.property1 = "e";
_OnKeyboard_001.addOutputs([_IsTrue_001]);
_IsTrue_001.addInput(_OnKeyboard_001, 0);
_IsTrue_001.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_IsTrue_001.addOutputs([_TranslateObject_002]);
_TranslateObject_002.addInput(_IsTrue_001, 0);
_TranslateObject_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
var _Vector_003 = new armory.logicnode.VectorNode(this);
var _Float_002 = new armory.logicnode.FloatNode(this);
_Float_002.addInput(new armory.logicnode.FloatNode(this, 40.0), 0);
var _Math_002 = new armory.logicnode.MathNode(this);
_Math_002.property0 = "Multiply";
_Math_002.property1 = "false";
_Math_002.addInput(_Float_002, 0);
_Math_002.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
var _Vector_002 = new armory.logicnode.VectorNode(this);
_Vector_002.addInput(_Math_002, 0);
_Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
var _TranslateObject_003 = new armory.logicnode.TranslateObjectNode(this);
var _IsTrue_002 = new armory.logicnode.IsTrueNode(this);
var _OnKeyboard_002 = new armory.logicnode.OnKeyboardNode(this);
_OnKeyboard_002.property0 = "Released";
_OnKeyboard_002.property1 = "e";
_OnKeyboard_002.addOutputs([_IsTrue_002]);
_IsTrue_002.addInput(_OnKeyboard_002, 0);
_IsTrue_002.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_IsTrue_002.addOutputs([_TranslateObject_003]);
_TranslateObject_003.addInput(_IsTrue_002, 0);
_TranslateObject_003.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_TranslateObject_003.addInput(_Vector_002, 0);
_TranslateObject_003.addOutputs([new armory.logicnode.NullNode(this)]);
_Vector_002.addOutputs([_TranslateObject_003]);
_Math_002.addOutputs([_Vector_002]);
_Float_002.addOutputs([_Math_002, _Vector_003]);
_Vector_003.addInput(_Float_002, 0);
_Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector_003.addOutputs([_TranslateObject_002]);
_TranslateObject_002.addInput(_Vector_003, 0);
_TranslateObject_002.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, "Camera.001"), 0);
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
var _Boolean_001 = new armory.logicnode.BooleanNode(this);
_Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_Boolean_001.addOutputs([_SetProperty_001]);
_SetProperty_001.addInput(_Boolean_001, 0);
_SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]);
var _SetProperty_005 = new armory.logicnode.SetPropertyNode(this);
var _TranslateObject = new armory.logicnode.TranslateObjectNode(this);
var _IsTrue_003 = new armory.logicnode.IsTrueNode(this);
var _Gate = new armory.logicnode.GateNode(this);
_Gate.property0 = "Or";
_Gate.property1 = 9.999999747378752e-05;
var _IsFalse_003 = new armory.logicnode.IsFalseNode(this);
var _OnUpdate_003 = new armory.logicnode.OnUpdateNode(this);
_OnUpdate_003.property0 = "Update";
_OnUpdate_003.addOutputs([_IsFalse_003]);
_IsFalse_003.addInput(_OnUpdate_003, 0);
var _GetProperty_004 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_GetProperty_004.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
_GetProperty_004.addOutputs([_IsFalse_003]);
_IsFalse_003.addInput(_GetProperty_004, 0);
_IsFalse_003.addOutputs([_Gate]);
_Gate.addInput(_IsFalse_003, 0);
var _Compare_002 = new armory.logicnode.CompareNode(this);
_Compare_002.property0 = "Greater Equal";
_Compare_002.property1 = 9.999999747378752e-05;
var _SeparateXYZ_001 = new armory.logicnode.SeparateVectorNode(this);
var _GetVelocity_002 = new armory.logicnode.GetVelocityNode(this);
_GetVelocity_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_GetVelocity_002.addOutputs([_SeparateXYZ_001]);
_GetVelocity_002.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
_SeparateXYZ_001.addInput(_GetVelocity_002, 0);
_SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
_SeparateXYZ_001.addOutputs([new armory.logicnode.FloatNode(this, 0.0)]);
var _Compare_003 = new armory.logicnode.CompareNode(this);
_Compare_003.property0 = "Less Equal";
_Compare_003.property1 = 9.999999747378752e-05;
_Compare_003.addInput(_SeparateXYZ_001, 2);
var _Math_001 = new armory.logicnode.MathNode(this);
_Math_001.property0 = "Multiply";
_Math_001.property1 = "false";
var _Float_001 = new armory.logicnode.FloatNode(this);
_Float_001.addInput(new armory.logicnode.FloatNode(this, 5.0), 0);
_Float_001.addOutputs([_Math_001, _Compare_002]);
_Math_001.addInput(_Float_001, 0);
_Math_001.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
_Math_001.addOutputs([_Compare_003]);
_Compare_003.addInput(_Math_001, 0);
_Compare_003.addOutputs([_Gate]);
_SeparateXYZ_001.addOutputs([_Compare_002, _Compare_003]);
_Compare_002.addInput(_SeparateXYZ_001, 2);
_Compare_002.addInput(_Float_001, 0);
_Compare_002.addOutputs([_Gate]);
_Gate.addInput(_Compare_002, 0);
_Gate.addInput(_Compare_003, 0);
_Gate.addOutputs([_IsTrue_003]);
_Gate.addOutputs([new armory.logicnode.NullNode(this)]);
_IsTrue_003.addInput(_Gate, 0);
_IsTrue_003.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_IsTrue_003.addOutputs([_TranslateObject]);
_TranslateObject.addInput(_IsTrue_003, 0);
_TranslateObject.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
var _Vector = new armory.logicnode.VectorNode(this);
var _Float = new armory.logicnode.FloatNode(this);
_Float.addInput(new armory.logicnode.FloatNode(this, 5.0), 0);
var _Math = new armory.logicnode.MathNode(this);
_Math.property0 = "Multiply";
_Math.property1 = "false";
_Math.addInput(_Float, 0);
_Math.addInput(new armory.logicnode.FloatNode(this, -1.0), 0);
var _Vector_001 = new armory.logicnode.VectorNode(this);
_Vector_001.addInput(_Math, 0);
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
var _TranslateObject_001 = new armory.logicnode.TranslateObjectNode(this);
var _IsTrue_004 = new armory.logicnode.IsTrueNode(this);
var _Merge = new armory.logicnode.MergeNode(this);
var _OnContact_004 = new armory.logicnode.OnContactNode(this);
_OnContact_004.property0 = "Begin";
_OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnContact_004.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0);
_OnContact_004.addOutputs([_Merge]);
_Merge.addInput(_OnContact_004, 0);
var _OnContact_003 = new armory.logicnode.OnContactNode(this);
_OnContact_003.property0 = "Begin";
_OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnContact_003.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0);
_OnContact_003.addOutputs([_Merge]);
_Merge.addInput(_OnContact_003, 0);
var _OnContact_002 = new armory.logicnode.OnContactNode(this);
_OnContact_002.property0 = "Begin";
_OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_OnContact_002.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0);
_OnContact_002.addOutputs([_Merge]);
_Merge.addInput(_OnContact_002, 0);
_Merge.addOutputs([_IsTrue_004]);
_IsTrue_004.addInput(_Merge, 0);
var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this);
_GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_GetProperty_003.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
_GetProperty_003.addOutputs([_IsTrue_004]);
_IsTrue_004.addInput(_GetProperty_003, 0);
_IsTrue_004.addOutputs([_TranslateObject_001]);
_TranslateObject_001.addInput(_IsTrue_004, 0);
_TranslateObject_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
_TranslateObject_001.addInput(_Vector_001, 0);
var _SetProperty_006 = new armory.logicnode.SetPropertyNode(this);
_SetProperty_006.addInput(_TranslateObject_001, 0);
_SetProperty_006.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_006.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
var _Boolean_005 = new armory.logicnode.BooleanNode(this);
_Boolean_005.addInput(new armory.logicnode.BooleanNode(this, false), 0);
_Boolean_005.addOutputs([_SetProperty_006]);
_SetProperty_006.addInput(_Boolean_005, 0);
_SetProperty_006.addOutputs([new armory.logicnode.NullNode(this)]);
_TranslateObject_001.addOutputs([_SetProperty_006]);
_Vector_001.addOutputs([_TranslateObject_001]);
_Math.addOutputs([_Vector_001]);
_Float.addOutputs([_Math, _Vector]);
_Vector.addInput(_Float, 0);
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
_Vector.addOutputs([_TranslateObject]);
_TranslateObject.addInput(_Vector, 0);
_TranslateObject.addOutputs([_SetProperty_005]);
_SetProperty_005.addInput(_TranslateObject, 0);
_SetProperty_005.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
_SetProperty_005.addInput(new armory.logicnode.StringNode(this, "saut_on"), 0);
var _Boolean_004 = new armory.logicnode.BooleanNode(this);
_Boolean_004.addInput(new armory.logicnode.BooleanNode(this, true), 0);
_Boolean_004.addOutputs([_SetProperty_005]);
_SetProperty_005.addInput(_Boolean_004, 0);
_SetProperty_005.addOutputs([new armory.logicnode.NullNode(this)]);
var _SetLocation = new armory.logicnode.SetLocationNode(this);
var _OnUpdate = new armory.logicnode.OnUpdateNode(this);
_OnUpdate.property0 = "Update";
_OnUpdate.addOutputs([_SetLocation]);
_SetLocation.addInput(_OnUpdate, 0);
_SetLocation.addInput(new armory.logicnode.ObjectNode(this, "TrackCamera"), 0);
var _GetLocation = new armory.logicnode.GetLocationNode(this);
_GetLocation.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0);
_GetLocation.addOutputs([_SetLocation]);
_SetLocation.addInput(_GetLocation, 0);
_SetLocation.addOutputs([new armory.logicnode.NullNode(this)]);
}
}