Instead of editing the level order in egui and saving it in a level index, I want to make the level index a regular level file where each entity is another level, and the components define the order. The editing will be done by dragging and dropping.
This will also allow non-linear level structure, where the levels map can be a graph instead of a list.