eco2d/code/apps/server/source/world.c

21 lines
406 B
C
Raw Normal View History

2021-01-11 13:47:14 +00:00
#include "world.h"
2021-01-11 14:42:36 +00:00
#include "zpl.h"
2021-01-11 13:47:14 +00:00
2021-01-11 14:42:36 +00:00
static uint8_t *world = NULL;
static uint32_t world_size = 0;
int32_t world_gen(int32_t seed, uint8_t width, uint8_t height) {
return WORLD_ERROR_NONE;
}
int32_t world_destroy(void) {
2021-01-11 13:47:14 +00:00
return WORLD_ERROR_NONE;
}
2021-01-11 14:42:36 +00:00
uint32_t world_buf(uint8_t const **ptr) {
ZPL_ASSERT_NOT_NULL(world);
ZPL_ASSERT_NOT_NULL(ptr);
*ptr = world;
return world_size;
}