summaryrefslogtreecommitdiff
path: root/Scripts/GodotExtensions/ArrayExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/GodotExtensions/ArrayExtensions.cs')
-rw-r--r--Scripts/GodotExtensions/ArrayExtensions.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Scripts/GodotExtensions/ArrayExtensions.cs b/Scripts/GodotExtensions/ArrayExtensions.cs
index aa3a9c4..2712232 100644
--- a/Scripts/GodotExtensions/ArrayExtensions.cs
+++ b/Scripts/GodotExtensions/ArrayExtensions.cs
@@ -1,11 +1,12 @@
using System;
+using Godot;
using Godot.Collections;
namespace Texty.Scripts.GodotExtensions
{
public static class ArrayExtensions
{
- public static void ForEach<T>(this Array<T> array, Action<T> action)
+ public static void ForEach<[MustBeVariant] T>(this Array<T> array, Action<T> action)
{
foreach (var element in array) action.Invoke(element);
}