예제 #1
0
 public void CreateEntity(EntityArchetype archetype, Span <Entity> entities) =>
 CreateEntityInternal(GetArchetypeInternal(archetype), entities);
예제 #2
0
        public void ForEach(EntityArchetype archetype, Action <EntityBatch> action)
        {
            Archetype *ptr = GetArchetypeInternal(archetype);

            ForEachInternal(ptr, action);
        }
예제 #3
0
 internal Archetype *GetArchetypeInternal(EntityArchetype archetype) =>
 this.archetypeStore->archetypes + archetype.index;
예제 #4
0
 public int GetEntityCount(EntityArchetype archetype) =>
 GetArchetypeInternal(archetype)->entityCount;
예제 #5
0
파일: World.cs 프로젝트: dn9090/Checs
 public void ForEach(EntityArchetype archetype, Action <EntityBatch> action) => this.entityManager.ForEach(archetype, action);
예제 #6
0
파일: World.cs 프로젝트: dn9090/Checs
 public ReadOnlySpan <Entity> GetEntities(EntityArchetype archetype) => this.entityManager.GetEntities(archetype);
예제 #7
0
파일: World.cs 프로젝트: dn9090/Checs
 public ReadOnlySpan <Entity> CreateEntity(EntityArchetype archetype, int count) => this.entityManager.CreateEntity(archetype, count);
예제 #8
0
파일: World.cs 프로젝트: dn9090/Checs
 public Entity CreateEntity(EntityArchetype archetype) => this.entityManager.CreateEntity(archetype, 1)[0];
예제 #9
0
        public bool MatchesQuery(EntityQuery query, EntityArchetype archetype)
        {
            var queryData = &this.queryCache->queries[query.index];

            return(ArchetypeMatchesQueryFilter(GetArchetypeInternal(archetype), queryData));
        }