protected static IEnumerable <NodePath> FindTransformTracks(Godot.Animation animation) { Ensure.That(animation, nameof(animation)).IsNotNull(); return(Enumerable .Range(0, animation.GetTrackCount()) .Select(i => (path: animation.TrackGetPath(i), type: animation.TrackGetType(i))) .Where(t => t.type == Godot.Animation.TrackType.Transform) .Select(t => t.path)); }
private static IEnumerable <NodePath> FindTransformTracks(Godot.Animation animation) { var tracks = animation.GetTrackCount(); return(Enumerable .Range(0, tracks) .Select(i => (animation.TrackGetPath(i), animation.TrackGetType(i))) .Where(t => t.Item2 == Godot.Animation.TrackType.Transform) .Select(t => t.Item1)); }