Changes between Version 1 and Version 2 of FileFormats


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

--

Legend:

Unmodified
Added
Removed
Modified
  • FileFormats

    v1 v2  
     1= Pieces.idx =
     2
     3{{{
     4#define LC_PIECE_NAME_LEN 256
     5
     6struct PieceTableEntry
     7{
     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
     15};
     16
     17struct MovedPieceEntry
     18{
     19  char[LC_PIECE_NAME_LEN] - From
     20  char[LC_PIECE_NAME_LEN] - To
     21};
     22
     23char[32] - Header ("LeoCAD piece library index file")
     24u8 - File format version (currently 4)
     25u8 - Last official update applied (deprecated)
     26PieceTableEntry[] PiecesArray
     27MovedPieceEntry[] MovedPiecesArray
     28u16 - Number of entries in MovedPiecesArray
     29u32 - Pieces.bin file size in bytes
     30u16 - Number of entries in PiecesArray
     31}}}
     32
     33
    134= Category Configuration File (*.lcf) =
    235
    336{{{
    4 lcuint32 - LeoCAD ID (LCD)
    5 lcuint32 - File ID (CAT)
    6 lcuint32 - Number of categories
     37u32 - LeoCAD ID (LCD)
     38u32 - File ID (CAT)
     39u32 - Number of categories
    740lcString - Category Name     -| Repeat for each category
    841lcString - Category Keywords -|