Hi,
I'm trying to figure out how to do serialization/deserialization in BGT. I've found 2 approaches to doing so: the built-in serialization methods in BGT, and using a user data class that someone on the BGT forum wrote in an attempt to automate the process. The user data class can be found at http://www.blastbay.com/forum/viewtopic.php?id=1433
Which approach would be better? I have numerous classes (over 20 so far), and arrays that agrigate instances of different objects. Each object have primarily primitive types as data members, but some objects have more complex data members (e.g dictionaries).
If I understand BGT's serialization functions correctly, I have to implement save and load methods for each class. I'm not too sure about how it'll work though. Would I have to store everything in 1 gigantic dictionary? Or is each object its own dictionary?
For example,
X[] xObjects; // this could contain any number of x objects
Y[] yObjects;
...