SAVE FORMAT
The Save format is fairly simple, it uses groups of 5 numbers to
specify all the information about the terrain followed by a -1 to
signify the end of the save file.
Example:
1
1
21
4
235
2
2
46
22
88
3
3
12
37
252
-1
Annotated:
1 - Number of terrain piece so this is obviously the first
terrain piece
1 - Type of terrain piece, 1=Large, 2=Medium, 3=Small
21 -X position in inches
4 -Y position in inches
235 - Rotation in degrees
2 - Start of information about the second piece
2
46
22
88
3 - Start of information about the third piece
3
12
37
252
-1 - End of Save file, you must add this at the end.
So this save file holds information about 3 pieces of terrain, 1 large
, 1 medium and 1 small. Large Terrain 1 has co-ordinates of
(21,4) and a rotation of 235 degrees, Medium Terrain 2 has co-ordinates
of (46,22) and a rotation of 88 degrees. Small Terrain 3 has
co-ordinates of (12,37) and a rotation of 252 degrees
Back