Created
February 4, 2015 10:59
-
-
Save orofarne/6edc84df91a08f908373 to your computer and use it in GitHub Desktop.
mod_tile data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define META_MAGIC "META" | |
#define META_MAGIC_COMPRESSED "METZ" | |
struct entry { | |
int offset; | |
int size; | |
}; | |
struct meta_layout { | |
char magic[4]; | |
int count; // METATILE ^ 2 | |
int x, y, z; // lowest x,y of this metatile, plus z | |
struct entry index[]; // count entries | |
// Followed by the tile data | |
// The index offsets are measured from the start of the file | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment