32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
|
|
- 32 byte header that is read as 8 longword values as follows:
|
|
|
|
struct {
|
|
uint32_t file_type_id; // must be the constant value "0x00000005"
|
|
uint32_t size_of_cel_data; // bytes
|
|
uint32_t size_of_map_data; // bytes
|
|
uint32_t tile_character_size; // (slChar) one of CHAR_SIZE_*
|
|
|
|
uint32_t tile_color_mode; // (slChar) one of COL_TYPE_*
|
|
uint32_t plane_size; // (slPlane) one of PL_SIZE_*
|
|
uint32_t map_data; // (slPage) one of PNB_*, one of CN_*
|
|
|
|
uint16_t height; // must be the constant value "1"
|
|
uint16_t width; // must be the constant value "1"
|
|
}
|
|
|
|
-A file type ID - arbitrarily chosen as [5] for this binary type
|
|
-# of bytes of Cel Data in binary
|
|
-# of bytes of Map Data in binary
|
|
-Tile Character Size (Macros defined in sl_def.h)
|
|
-Tile Character Color Mode (Macros defined in sl_def.h)
|
|
-Plane Unit Size (Macros defined in sl_def.h)
|
|
-Map data config (Macros defined in sl_def.h)
|
|
-Plane dimensions (Height<<16|Width)
|
|
|
|
- Pallet data block of 0, 32, or 512 bytes based on the color mode indicated in header
|
|
|
|
- Map data block of size indicated in header
|
|
|
|
- Cel data block of size indicated in header
|