Added WorldEnumerator with 4 generic parameters

This commit is contained in:
Simon Lübeß
2021-09-11 16:31:16 +02:00
parent 5c95668a1d
commit 29749f64e9
2 changed files with 39 additions and 0 deletions
+6
View File
@@ -257,6 +257,12 @@ namespace GlitchyEngine.World
return WorldEnumerator<TComponent0, TComponent1, TComponent2>(this);
}
public WorldEnumerator<TComponent0, TComponent1, TComponent2, TComponent3> Enumerate<TComponent0, TComponent1, TComponent2, TComponent3>()
where TComponent0 : struct where TComponent1 : struct where TComponent2 : struct where TComponent3 : struct
{
return WorldEnumerator<TComponent0, TComponent1, TComponent2, TComponent3>(this);
}
public static void Test()
{
EcsWorld world = new .();