예제 #1
0
        public EntityManager()
        {
            Systems = new List <BaseSystem>();
            Data    = new EntityStorage();
            Data.Initialize();

            CollisionBvh = new CompactBvh();

            AddedEntities = new List <int>();
        }
예제 #2
0
        public EntityStorage(EntityStorage other)
        {
            Initialize();

            other.Entities.CopyTo(Entities);
            other.ComponentMasks.CopyTo(ComponentMasks);

            other.TransformComponents.CopyTo(TransformComponents);
            other.PhysicsComponents.CopyTo(PhysicsComponents);
            other.CollisionComponents.CopyTo(CollisionComponents);
            other.MeshComponents.CopyTo(MeshComponents);

            other.Reusable.CopyTo(Reusable);
        }
예제 #3
0
 // TODO: create changelist to update GPU scene data
 public void RestoreEntities(EntityStorage data)
 {
     Data = new EntityStorage(data);
 }