Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualslicer4ever

Posted 28 February 2013 - 03:01 PM

you could also use an xml parser such as tinyXML, this would give you a bit more control/information to someone editing a text file, for example, you might do:

 

<Monster name="Rabbit">
 <Attribute Name="Hp" Value="10"/>
 ...
</Monster>
...

 

then all you have to do is go through and look for all monsters tags, then read their child tags to get information about the monster.


#1slicer4ever

Posted 28 February 2013 - 03:00 PM

you could also use an xml parser such as tinyXML, this would give you a bit more control/information to someone editing a text file, for example, you might do:

<Monster name="Rabbit">
 <Attribute Name="Hp" Value="10"/>
 ...
</Monster>
...

 

then all you have to do is go through and look for all monsters, then read their child tags to get information about the monster.


PARTNERS