eco2d/code/apps/server/header/world.h

14 lines
410 B
C

#pragma once
#include "system.h"
#define WORLD_ERROR_NONE +0x0000
#define WORLD_ERROR_OUTOFMEM -0x0001
#define WORLD_ERROR_INVALID_BLOCKS -0x0002
#define WORLD_ERROR_INVALID_DIMENSIONS -0x0003
#define WORLD_ERROR_INVALID_BUFFER -0x0004
int32_t world_gen(int32_t seed, uint8_t width, uint8_t height);
int32_t world_destroy(void);
uint32_t world_buf(uint8_t const **ptr);