31 lines
819 B
C#
31 lines
819 B
C#
namespace MfGames.Gallium;
|
|
|
|
public static class WhereEntityNotHasExtensions
|
|
{
|
|
public static IEnumerable<Entity> WhereEntityNotHas<T1>(this IEnumerable<Entity> entities)
|
|
{
|
|
return entities.Where(x => !x.Has<T1>());
|
|
}
|
|
|
|
public static IEnumerable<Entity> WhereEntityNotHasAll<T1, T2>(
|
|
this IEnumerable<Entity> entities
|
|
)
|
|
{
|
|
return entities.Where(x => !x.HasAll<T1, T2>());
|
|
}
|
|
|
|
public static IEnumerable<Entity> WhereEntityNotHasAll<T1, T2, T3>(
|
|
this IEnumerable<Entity> entities
|
|
)
|
|
{
|
|
return entities.Where(x => !x.HasAll<T1, T2, T3>());
|
|
}
|
|
|
|
public static IEnumerable<Entity> WhereEntityNotHasAll<T1, T2, T3, T4>(
|
|
this IEnumerable<Entity> entities
|
|
)
|
|
{
|
|
return entities.Where(x => !x.HasAll<T1, T2, T3, T4>());
|
|
}
|
|
}
|