2023-07-10 17:18:30 +00:00
|
|
|
namespace MfGames.Gallium;
|
|
|
|
|
2024-03-06 05:15:03 +00:00
|
|
|
public record SplitEntityEnumerations(IEnumerable<Entity> HasAll, IEnumerable<Entity> NotHasAll)
|
2023-07-10 17:18:30 +00:00
|
|
|
{
|
2024-03-06 05:15:03 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets a sequence of all entities that have all the given components.
|
|
|
|
/// </summary>
|
|
|
|
public IEnumerable<Entity> HasAll { get; } = HasAll;
|
2023-07-10 17:18:30 +00:00
|
|
|
|
2024-03-06 05:15:03 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the sequence of all entities that do not have all the given components.
|
|
|
|
/// </summary>
|
|
|
|
public IEnumerable<Entity> NotHasAll { get; } = NotHasAll;
|
2023-07-10 17:18:30 +00:00
|
|
|
}
|