1 WARNING: OLD file format. Will be discarded. Read FF2
8 at beginning of file. I love magic numbers.
10 For Serialization, we need to separate realizing a layer and adding it to a aggregate. An aggregate
11 layer, when realized, should realize all of its children, and add all of its children to the treeview.
12 An aggregate should realize a layer and add it to the treeview in add_layer only if it is already
13 realized (we cannot assume that it is.) This will pave the road for serialization.
23 layer name len + layer name
24 Layer Data. Call Layer serialize-in func.
26 (if type == aggregate, len = # of layers)
94 Call agg parse function (top layer) with file format.
95 agg parse function parses, calls appropriate function.
96 repeats add infinitum.
103 for loop thru # of layers:
104 read a byte, get id, create a layer of such type via the "serialize_read" func which
105 returns a layer I can then read.
108 Ahhh, the joys of Recursion.
111 write length of layers array.
117 MAX # of layers: 2^16