Files
MovementTests/interfaces/NodeExtensions.cs
Minimata 68e36742af
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 27s
Create tag and build when new code gets to main / Export (push) Successful in 5m25s
removed obsolete interfaces for health and damage
2026-05-05 11:51:35 +02:00

12 lines
291 B
C#

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