blob: ad72f945af5da7329289535a10098b7190d121a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
using System;
using Godot;
using Godot.Collections;
namespace Texty.Scripts.GodotExtensions;
public static class ArrayExtensions
{
public static void ForEach<[MustBeVariant] T>(this Array<T> array, Action<T> action)
{
foreach (var element in array) action.Invoke(element);
}
}
|