Exemple #1
0
        public void RemoveEntity(int ID)
        {
            ECSEntityHandle Entity = entitys.Find(x => x.ID == ID);

            Entity.Disposed = true;
            entitys.Remove(Entity);
        }
Exemple #2
0
        public ECSEntityHandle GetNewEntity()
        {
            ECSEntityHandle newEntity = new ECSEntityHandle(0);
            int             EntityID  = entitys.Add(newEntity);

            newEntity.SetID(EntityID);
            return(newEntity);
        }
Exemple #3
0
 public void RemoveEntity(ECSEntityHandle Entity)
 {
     Entity.Disposed = true;
     entitys.Remove(Entity);
 }