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
174 II Buildable Tools
node = node ["Table "];
// Navigate to the first row , which has the column headers
node = node ["Row "];
int index = 0;
foreach (XmlNode child in node. ChildNodes)
{
if ( child .Name == " Cell")
{
fields [child [" Data"]. InnerText] = index ;
Listing 12.2. C# code to parse the header fields (parsexml.cs).
Next, we need to iterate over each additional row and create objects for each.
The following class and enumerations, shown in Listing 12.3, will be used to store
our data during parsing.
enum CharacterClass
{
Standard ,
Armored
}
class CharacterData
{
public string character;
public string description;
public float hitPoints;
public float
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