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

14 lines
430 B
C
Raw Normal View History

2021-01-11 13:47:14 +00:00
#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
2021-01-11 21:50:14 +00:00
int32_t world_init(int32_t seed, uint32_t width, uint32_t height);
2021-01-11 14:42:36 +00:00
int32_t world_destroy(void);
2021-01-11 14:48:17 +00:00
uint32_t world_buf(uint8_t const **ptr, uint32_t *width);