|
|
| __attribute__ ((packed)) short width |
| |
|
| __attribute__ ((packed)) short height |
| | asset width (divided by 8)
|
| |
|
| AssetData () |
| | asset height (divided by 8)
|
| |
| int | get_color_depth () const |
| | gets color bit depth of the asset More...
|
| |
| bool | is_bitmap () const |
| | checks if the asset is a tileset or a bitmap More...
|
| |
|
int | get_gfx_length () const |
| |
|
int | get_pal_length () const |
| |
|
int | get_pal_count () const |
| |
|
void | extract_gfx (void *destination) const |
| |
|
void | extract_palette (void *destination) const |
| |
| int | get_metatile_width () const |
| | gets the width of an asset's metatile. If no metatile data is provided, the width of a single 8x8 tile is provided. More...
|
| |
| int | get_metatile_height () const |
| | gets the height of an asset's metatile. If no metatile data is provided, the height of a single 8x8 tile is provided. More...
|
| |
| int | get_metatile_size () const |
| | gets the size in bytes of an asset's metatile. If no metatile data is provided, the size of a single 8x8 tile is provided. More...
|
| |
|
| __attribute__ ((packed)) short header_size |
| | Some technical observations to account for during implementation:
|
| |
|
| __attribute__ ((packed)) int data_length |
| | equilavent of sizeof(*this), but foresees class inheritance
|
| |
|
| __attribute__ ((packed)) char *data_source |
| | size in bytes of the actual data
|
| |
| | __attribute__ ((packed)) unsigned short flags |
| |
| | ReadOnlyData (int header_size=sizeof(ReadOnlyData)) |
| |
| void | extract (void *destination) const |
| | writes all binary data to the given address More...
|
| |
| void | extract (void *destination, int offset, int length) const |
| | writes binary data sequence to the given address More...
|
| |
|
| ReadOnlyData (const ReadOnlyData &)=delete |
| |
|
| ReadOnlyData (ReadOnlyData &&)=delete |
| |
|
ReadOnlyData | operator= (const ReadOnlyData &)=delete |
| |
|
ReadOnlyData | operator= (ReadOnlyData &&)=delete |
| |
| bool | is_file () const |
| | checks if data is written to file More...
|
| |