I have a tree of game entities composed of components. I want to save/load everything to xml file, where my saving/loading code must be located:
- Scene class containing root node and functions save/load
- Utility class containing static functions taking root node as argument
- Member function inside entity class (not preferred cause of 3rd party xml lib)
Is it necessary to have scene class? Maybe some other item management architecture is better.