Files
MovementTests/interfaces/NodeExtensions.cs
Minimata 6b97c226f1
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 19s
Create tag and build when new code gets to main / Export (push) Successful in 10m48s
setup damage types and modifiers as resources
2026-01-17 14:32:48 +01:00

12 lines
299 B
C#

using Godot;
using System.Linq;
namespace Movementtests.interfaces;
public static class NodeExtensions
{
public static IDamageable[] ToIDamageables(this GodotObject[] nodes)
{
return nodes == null ? System.Array.Empty<IDamageable>() : nodes.OfType<IDamageable>().ToArray();
}
}