Skip to Main Content
Game Development Tools
book

Game Development Tools

by Marwan Ansari
April 2016
Intermediate to advanced content levelIntermediate to advanced
688 pages
10h 52m
English
A K Peters/CRC Press
Content preview from Game Development Tools
12. Pragmatic XML Use in Tools 179
Now that we have a simpler XML document, let’s mark up our original
CharacterData class from Listing 12.3 using the XML serializer attributes. The
full list of attributes can be found in a document entitled “Controlling XML Seri-
alization Using Attributes” on Microsoft’s MSDN site. For our purposes, we only
need two:
1. [XmlElement]: controls the mapping between a field and the element name
in the document;
2. [XmlRoot]: used to control mapping between a class and the root element
name of the document.
Listing 12.8 shows our CharacterData class from Listing 12.3 with attributes
added.
public enum CharacterClass
{
Standard ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development Tool Essentials

Game Development Tool Essentials

Alessandro Ardolino, Remi Arnaud, Paula Berinstein, Simon Franco, Adrien Herubel, John McCutchan, Nicusor Nedelcu, Benjamin Nitschke, Fabrice Robinet, Christian Ronchi, Gustavo Samour, Rita Turkowski, Robert Walter
End-to-End Game Development

End-to-End Game Development

Nick Iuppa, Terry Borst, Chris Simpson
Sams Teach Yourself Unreal® Engine 4 Game Development in 24 Hours

Sams Teach Yourself Unreal® Engine 4 Game Development in 24 Hours

Aram Cookson, Ryan DowlingSoka, Clinton Crumpler

Publisher Resources

ISBN: 9781439867723