Update SJKScripts
Some checks failed
Spellcheck / Spellcheck (push) Successful in 18s
Tests / Evaluate Tests on ubuntu-latest (push) Failing after 38s

This commit is contained in:
2026-08-07 13:40:27 -04:00
parent fa5bc913a4
commit c5d5a0da61
3 changed files with 7 additions and 5 deletions

View File

@@ -48,7 +48,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="GodotSharp" Version="4.6.2" />
<PackageReference Include="SjkScripts" Version="1.0.17" />
<PackageReference Include="SjkScripts" Version="1.0.19" />
<!-- [1.2.3,2.3.4] use range of versions -->
</ItemGroup>
</Project>

View File

@@ -3,7 +3,7 @@ namespace GodotHelpers;
using System;
using System.Linq;
using Godot;
using SJK.Functional;
public static class MyNodeExtensions
{
@@ -41,6 +41,7 @@ public static class MyNodeExtensions
var result = self.GetNodeAndResource(path);
return ((Node)(GodotObject)result[0], (Resource)(GodotObject)result[1], (NodePath)result[2]);
}
public static void QueueFreeChildren(this Node node) => node.GetChildren().ToList().ForEach(item => item.QueueFree());
public static void QueueFreeChildren(this Node node, Func<Node, bool> predicate) => node.GetChildren().Where(predicate).ToList().ForEach(item => item.QueueFree());
}