9 #define CHUNK_TIMESTAMP_UNDEFINED 0xFFFFFFFF
11 #define CHUNK_STATE_CLEAN 0x00 /* unmodified */
12 #define CHUNK_STATE_WRITE_AT_UNLOAD 0x01 /* modified, save when unloaded */
13 #define CHUNK_STATE_WRITE_NEEDED 0x02 /* modified, save ASAP */
14 #define CHUNK_STATE_UNDERGROUND 0x04 /* old is_underground = true */
15 #define CHUNK_STATE_BADLIGHT 0x08 /* old light_expired = true */
16 #define CHUNK_STATE_BADMESH 0x10 /* old mesh_expired = true */
18 #ifndef _HAVE_BLOCK_TYPE
19 #define _HAVE_BLOCK_TYPE
20 typedef struct block_s
{
28 #ifndef _HAVE_CHUNK_TYPE
29 #define _HAVE_CHUNK_TYPE
30 typedef struct chunk_s
{
32 block_t blocks
[4096]; /* 16*16*16 */