Add a world saving and loading system by using a region-based savefile system.
Here's how a save file is composed:
typedef struct {
uint32_t magic; // Version ID
uint16_t* chunk_indices; // Offsets of the different chunks
chunk_t* chunks;
} regionfile_t;
Add a world saving and loading system by using a region-based savefile system.
Here's how a save file is composed: