mirror of
https://forge.apps.education.fr/phroy/frankie-on-platform.git
synced 2024-01-27 11:32:04 +01:00
70 lines
3.2 KiB
Haxe
70 lines
3.2 KiB
Haxe
|
package arm.node;
|
||
|
|
||
|
@:keep class Intro_cam2 extends armory.logicnode.LogicTree {
|
||
|
|
||
|
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
|
||
|
|
||
|
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
|
||
|
|
||
|
public function new() {
|
||
|
super();
|
||
|
name = "Intro_cam2";
|
||
|
this.functionNodes = new Map();
|
||
|
this.functionOutputNodes = new Map();
|
||
|
notifyOnAdd(add);
|
||
|
}
|
||
|
|
||
|
override public function add() {
|
||
|
var _SetRotation = new armory.logicnode.SetRotationNode(this);
|
||
|
var _Branch = new armory.logicnode.BranchNode(this);
|
||
|
var _OnUpdate = new armory.logicnode.OnUpdateNode(this);
|
||
|
_OnUpdate.property0 = "Update";
|
||
|
_OnUpdate.addOutputs([_Branch]);
|
||
|
_Branch.addInput(_OnUpdate, 0);
|
||
|
var _LookingAt = new armory.logicnode.LookingAtNode(this);
|
||
|
var _GetLocation = new armory.logicnode.GetLocationNode(this);
|
||
|
var _Object = new armory.logicnode.ObjectNode(this);
|
||
|
_Object.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0);
|
||
|
_Object.addOutputs([_GetLocation]);
|
||
|
_GetLocation.addInput(_Object, 0);
|
||
|
_GetLocation.addOutputs([_LookingAt]);
|
||
|
_LookingAt.addInput(_GetLocation, 0);
|
||
|
var _GetLocation_001 = new armory.logicnode.GetLocationNode(this);
|
||
|
var _Object_001 = new armory.logicnode.ObjectNode(this);
|
||
|
_Object_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||
|
_Object_001.addOutputs([_GetLocation_001]);
|
||
|
_GetLocation_001.addInput(_Object_001, 0);
|
||
|
_GetLocation_001.addOutputs([_LookingAt]);
|
||
|
_LookingAt.addInput(_GetLocation_001, 0);
|
||
|
var _Vector = new armory.logicnode.VectorNode(this);
|
||
|
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_Vector.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||
|
_Vector.addOutputs([_LookingAt]);
|
||
|
_LookingAt.addInput(_Vector, 0);
|
||
|
var _Vector_001 = new armory.logicnode.VectorNode(this);
|
||
|
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 1.0), 0);
|
||
|
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_Vector_001.addOutputs([_LookingAt]);
|
||
|
_LookingAt.addInput(_Vector_001, 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0);
|
||
|
_LookingAt.addOutputs([_SetRotation]);
|
||
|
_LookingAt.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]);
|
||
|
_LookingAt.addOutputs([_Branch]);
|
||
|
_Branch.addInput(_LookingAt, 2);
|
||
|
_Branch.addOutputs([_SetRotation]);
|
||
|
_Branch.addOutputs([new armory.logicnode.NullNode(this)]);
|
||
|
_SetRotation.addInput(_Branch, 0);
|
||
|
_SetRotation.addInput(new armory.logicnode.ObjectNode(this, ""), 0);
|
||
|
_SetRotation.addInput(_LookingAt, 0);
|
||
|
_SetRotation.addOutputs([new armory.logicnode.NullNode(this)]);
|
||
|
}
|
||
|
}
|