public EntityQuery(GameWorld gameWorld, FinalizedQuery query) { GameWorld = gameWorld; All = query.All.ToArray(); None = query.None.ToArray(); Or = query.Or.ToArray(); matchedArchetypes = new PooledList <uint>(); archetypeIsValid = Array.Empty <bool>(); }
public static EntityEnumerator QueryEntity(this GameWorld world, FinalizedQuery finalizedQuery) { return(new EntityEnumerator { World = world, Inner = QueryArchetype(world, finalizedQuery) }); }
public static ArchetypeEnumerator QueryArchetype(this GameWorld world, FinalizedQuery finalizedQuery) { return(new ArchetypeEnumerator { Board = world.Boards.Archetype, Archetypes = world.Boards.Archetype.Registered, finalizedQuery = finalizedQuery }); }