public int CreateEntityInternal()
        {
            var entityInternal = new EntityInternal();

            entityInternal.Archetype   = _archetypeManager.CreateArchetype(new Type[0]);
            entityInternal.EntityIndex = new EntityIndex {
                ChunkIndex = -1, ChunkOffset = -1
            };
            EntityInternals.Add(entityInternal);
            return(EntityInternals.Count - 1);
        }
Beispiel #2
0
 public EntityArchetype CreateArchetype(params Type[] types)
 {
     return(_archetypeManager.CreateArchetype(types));
 }