Exemplo n.º 1
0
        public static EntityWrapper Instantiate(Entity prefab, int threadId, EntityCommandBuffer.ParallelWriter entityCommandBuffer)
        {
            var entityManagerWrapper = EntityManagerWrapper.FromJobCommandBuffer(entityCommandBuffer, threadId);

            return(new EntityWrapper(entityManagerWrapper.Instantiate(prefab), entityManagerWrapper));
        }
Exemplo n.º 2
0
        public static EntityWrapper CreateEntity <T>(int threadId, EntityCommandBuffer.ParallelWriter entityCommandBuffer) where T : IArchetypeDescriptor
        {
            var entityManagerWrapper = EntityManagerWrapper.FromJobCommandBuffer(entityCommandBuffer, threadId);

            return(new EntityWrapper(entityManagerWrapper.CreateEntityFromArchetype <T>(), entityManagerWrapper));
        }
Exemplo n.º 3
0
        public static EntityWrapper CreateEntity(int threadId, EntityCommandBuffer.ParallelWriter entityCommandBuffer)
        {
            var entityManagerWrapper = EntityManagerWrapper.FromJobCommandBuffer(entityCommandBuffer, threadId);

            return(new EntityWrapper(entityManagerWrapper.CreateEntity(), entityManagerWrapper));
        }
Exemplo n.º 4
0
 public static EntityWrapper Wrap(Entity entity, EntityCommandBuffer.ParallelWriter entityCommandBuffer, int threadId)
 {
     return(new EntityWrapper(entity, EntityManagerWrapper.FromJobCommandBuffer(entityCommandBuffer, threadId)));
 }
Exemplo n.º 5
0
 public Entity Build(EntityCommandBuffer.Concurrent entityCommandBuffer, int threadId)
 {
     return(Build(EntityManagerWrapper.FromJobCommandBuffer(entityCommandBuffer, threadId)));
 }
Exemplo n.º 6
0
 public Entity Build(EntityCommandBuffer.ParallelWriter entityCommandBuffer, int threadId)
 {
     return(Build(EntityManagerWrapper.FromJobCommandBuffer(entityCommandBuffer, threadId)));
 }