Will a root node structure or class and a vector of children survive through a file? all that is done by value right? So therefore I can put something in a vector, write it to a file, then retrieve the vector with no problems right?
The only thing I really know, is that I need to represent a tree structure in a binary file.
I can probably do it in the same way I do it in my C++ code, with a few minor modifications.
Instead of a vector of the children themselves, I need a struct Node, with an ID according to its type, Transformation is 0, geometry is 1, etc etc...
It also needs to hold a vector of children, again based on ID's...
Soooo, when I tell my program, after I load the file..
To create a root node of type 0, with a 1 as a child, it knows to create a DOF node, then create a new geometry node, and set the DOF node as the geometry nodes parent, then I can just add that to the tree.
Simple :d