Settings Schema?
by Richard Foge · in Torque X 2D · 01/19/2007 (6:05 pm) · 7 replies
Does anyone know where the schema definitions for the Settings.xml file live?
Specifically when using the Spacewar starter.
Any guidance would be great!
Thanks!
Specifically when using the Spacewar starter.
Any guidance would be great!
Thanks!
#2
Basically just trying to set up a decent way to use .xml files for saving and loading data.
01/21/2007 (3:45 pm)
I'm just trying to figure out some of the XmlSerializer functionality so that I can mimic some of it in my own code, and I can't find any trace of a schema for the settings file.Basically just trying to set up a decent way to use .xml files for saving and loading data.
#3
01/21/2007 (3:50 pm)
Then you should be looking at how it deserializes the txscene files, not the settings file. Since that's the soul purpose of it is to load in data elements.
#4
01/21/2007 (3:55 pm)
I can't find the deserialization for txscene files in the Spacewar demo. Does that only take place in particular demos?
#5
01/21/2007 (5:22 pm)
Isn't the Spacewar demo a Microsoft XNA starter kit that has nothing to do with TorqueX? You'll want to be looking at the TorqueX projects like Tank Buster. All the xml deserialization in TorqueX is done through the GarageGames.Torque.Core.Xml namespace. Look at the classes in there to get a jumping off point. It should also be noted that the classes in that namespace are pretty much designed around deserializing TorqueX data specifically. If you want to generally (de)serialize xml then C# has plenty of great stuff. I'm sure you can google for lots of .net tutorials on using the System.Xml.Serialization namespace.
#6
01/21/2007 (5:32 pm)
Ha! That's totally it. Thanks!
#7
01/22/2007 (9:44 am)
Awesome!
Torque 3D Owner Jonathon Stevens
Something specific you're looking to do in the Settings.xml file?