forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
16
leenkx/Sources/leenkx/logicnode/ActionNameNode.hx
Normal file
16
leenkx/Sources/leenkx/logicnode/ActionNameNode.hx
Normal file
@ -0,0 +1,16 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
class ActionNameNode extends LogicNode {
|
||||
|
||||
public var value: String;
|
||||
|
||||
public function new(tree: LogicTree, value = "") {
|
||||
super(tree);
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
override function get(from: Int): Dynamic {
|
||||
if (inputs.length > 0) return inputs[0].get();
|
||||
return value;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user