public void CreateEntity(EntityArchetype archetype, Span <Entity> entities) => CreateEntityInternal(GetArchetypeInternal(archetype), entities);
public void ForEach(EntityArchetype archetype, Action <EntityBatch> action) { Archetype *ptr = GetArchetypeInternal(archetype); ForEachInternal(ptr, action); }
internal Archetype *GetArchetypeInternal(EntityArchetype archetype) => this.archetypeStore->archetypes + archetype.index;
public int GetEntityCount(EntityArchetype archetype) => GetArchetypeInternal(archetype)->entityCount;
public void ForEach(EntityArchetype archetype, Action <EntityBatch> action) => this.entityManager.ForEach(archetype, action);
public ReadOnlySpan <Entity> GetEntities(EntityArchetype archetype) => this.entityManager.GetEntities(archetype);
public ReadOnlySpan <Entity> CreateEntity(EntityArchetype archetype, int count) => this.entityManager.CreateEntity(archetype, count);
public Entity CreateEntity(EntityArchetype archetype) => this.entityManager.CreateEntity(archetype, 1)[0];
public bool MatchesQuery(EntityQuery query, EntityArchetype archetype) { var queryData = &this.queryCache->queries[query.index]; return(ArchetypeMatchesQueryFilter(GetArchetypeInternal(archetype), queryData)); }