EasyEcs
API reference

IGroupWith<T>

A system group whose [ForEach] methods visit only entities with T, as WithAttribute on the group would.

public interface IGroupWith<T> : ISystemGroup where T : struct, IComponent

A system group whose [ForEach] methods visit only entities with T, as WithAttribute on the group would. An interface can name its own type parameter where an attribute cannot, so a framework's generic group interface carries the filter for every group that implements it: interface IActor<TSelf> : IGroupWith<In<TSelf>>, then struct Map : IActor<Map> filters its systems to In<Map>. Read by the generator: no cost at run time.

Edit on GitHub

Last updated on

How is this guide?