Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 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.