14 lines
326 B
Haxe
14 lines
326 B
Haxe
package leenkx.logicnode;
|
|
|
|
class GetGroupNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function get(from: Int): Dynamic {
|
|
var groupName: String = inputs[0].get();
|
|
return from == 0 ? iron.Scene.active.getGroup(groupName) : iron.Scene.active.getGroup(groupName).length;
|
|
}
|
|
}
|