diff options
Diffstat (limited to 'src/world.h')
| -rw-r--r-- | src/world.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/world.h b/src/world.h index 5be1cf2..c65a1d0 100644 --- a/src/world.h +++ b/src/world.h @@ -3,11 +3,12 @@ #include <stdint.h> #define WORLD_LENGTH 32 #define WORLD_WIDTH 32 + struct world { struct chunk* chunks[WORLD_WIDTH][WORLD_LENGTH]; int32_t seed; }; -int world_init(int32_t seed); +int world_init(int32_t seed, struct world** world); int world_save(int32_t seed); -int world_get_chunk(struct world* world, vec2 coord, struct chunk* chunk); +int world_get_chunk(struct world* world, vec2 coord, struct chunk** chunk); |
