// world.h #ifndef WORLD_H #define WORLD_H #include "chunkStructures.h" #define WORLD_SIZE_X 16 #define WORLD_SIZE_Z 16 // World is currently a flat grid of chunks on the X-Z plane typedef struct { Chunk *chunks[WORLD_SIZE_X][WORLD_SIZE_Z]; } World; void InitWorld(World *world); void FreeWorld(World *world); void UpdateWorld(World *world); Chunk *GetChunk(World *world, int chunkX, int chunkZ); Chunk *GetChunkContainingBlock(World *world, int wx, int wz); #endif