How could one go about Xml Serializing a base class?

I have a TextureAtlas class that is used for well, texture atlases. However I wish to keep the XML serialized variant separate from the core variant, and thus created a XmlTextureAtlas class.

How can I attach attributes to fields and properties owned by a base class? Would using new be the solution? Or should I make TextureAtlas serializable? Or should I “wrap” TextureAtlasinstead of deriving from it?

Edit: Found a small grammar/missing noun mistake.

submitted by /u/themixedupstuff
[link] [comments]

Leave a Reply