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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.