blob: b398985974befa9415e9b59338b930e3c8bd3b14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
using System.Linq;
using Godot;
using Godot.Collections;
namespace Texty.Scripts.GodotExtensions
{
public static class NodeExtensions
{
public static Array<T> GetChildren<T>(this Node node)
{
return new Array<T>(node.GetChildren().OfType<T>());
}
}
}
|