How would a visual editor for an Entity-Component-System pattern (like from the Bevy Engine) load component declarations from existing .rs and reflect changes back to these .rs files?
syn could work, but full type checking might be desired.
I'm not aware of any ecs editors that emit source code, generally they work with the component types you have available and the editor creates a "save" file of what entities and components to create.
Here's bevy's example of scene loading for what the file side looks like, then your editor "just" has to handle creating and editing the entities in the initial loaded state
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.