Changes between Version 2 and Version 3 of FileFormats


Ignore:
Timestamp:
Sep 12, 2011 2:24:42 PM (5 years ago)
Author:
leo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FileFormats

    v2 v3  
    66struct PieceTableEntry
    77{
    8   char[LC_PIECE_NAME_LEN] - Piece ID
    9   char[64] - Piece description
    10   u16[6] - Bounding box
    11   u8 - Flags
    12   u32 - Number of data groups
    13   u32 - Data offset in bytes from the start of pieces.bin
    14   u32 - Data size in bytes
     8  char PieceID[LC_PIECE_NAME_LEN];  // Piece ID
     9  char Description[64];             // Piece description
     10  u16  BoundingBox[6];              // Bounding box
     11  u8 Flags;                         // Piece flags (see LC_PIECE_*)
     12  u32 Groups;                       // Number of data groups
     13  u32 Offset;                       // Data offset in bytes from the start of pieces.bin
     14  u32 Size;                         // Data size in bytes
    1515};
    1616
    1717struct MovedPieceEntry
    1818{
    19   char[LC_PIECE_NAME_LEN] - From
    20   char[LC_PIECE_NAME_LEN] - To
     19  char From[LC_PIECE_NAME_LEN];     // Original PieceID
     20  char To[LC_PIECE_NAME_LEN];       // New PieceID
    2121};
    2222
    23 char[32] - Header ("LeoCAD piece library index file")
    24 u8 - File format version (currently 4)
    25 u8 - Last official update applied (deprecated)
    26 PieceTableEntry[] PiecesArray
    27 MovedPieceEntry[] MovedPiecesArray
    28 u16 - Number of entries in MovedPiecesArray
    29 u32 - Pieces.bin file size in bytes
    30 u16 - Number of entries in PiecesArray
     23char Header[32];                    // Header ("LeoCAD piece library index file")
     24u8 Version;                         // File format version (currently 4)
     25u8 LastUpdate;                      // Last official update applied (deprecated)
     26PieceTableEntry PiecesArray[];      // List of pieces in this file
     27MovedPieceEntry MovedPiecesArray[]; // List of pieces that were assigned new PieceID
     28u16 NumMovedPieces;                 // Number of elements in MovedPiecesArray
     29u32 PiecesBinSize;                  // Pieces.bin file size in bytes
     30u16 NumPieces;                      // Number of elements in PiecesArray
    3131}}}
    3232