setup damage types and modifiers as resources
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

This commit is contained in:
2026-01-17 14:32:48 +01:00
parent b1e78df6c7
commit 6b97c226f1
16 changed files with 136 additions and 11 deletions

View File

@@ -5,5 +5,5 @@ namespace Movementtests.interfaces;
public interface IDamageMaker
{
[Export]
public RDamage GetDamageDealt { get; set; }
RDamage GetDamageDealt { get; set; }
}

View File

@@ -1,3 +1,5 @@
using Godot;
namespace Movementtests.interfaces;
public interface IDamageable

View File

@@ -0,0 +1,12 @@
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();
}
}

View File

@@ -0,0 +1 @@
uid://bgnncty7axdwd