using XML for scene loading an saving

Sep 3, 2007 at 1:09 AM

Why you not mark all game components with Seriable attribute and use XMLSerializer for save or loagind tha scene graph?
Sep 3, 2007 at 1:14 PM
Yea, I used that in an early iteration, and it worked pretty good. However there were one major flaw with that approach; the Serializable attribute is not inherited, so it was not enough just marking EntityComponent with it. You had to mark every single component. Because of that I ditched the idea temporarily, but it is definitely something im gonna implement again at some point, when I get a better idea for a solution that is flexible enough to work for any component.