Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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:

  1. Scene class containing root node and functions save/load
  2. Utility class containing static functions taking root node as argument
  3. 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.

share|improve this question

closed as too broad by Josh Petrie Aug 22 at 16:15

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.