public void DestroyEntity(int i) { foreach (IIndexed <IComponent> indexed in systemCollection.componentLUT.Values) { indexed.Remove(i); } deletedEntities.Enqueue(entities[i]); entities.Remove(i); }