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

19 lines
415 B
C
Raw Normal View History

2021-01-11 13:47:14 +00:00
#pragma once
#include "system.h"
2021-01-11 14:27:32 +00:00
#define BLOCKS_ERROR_NONE +0x0000
#define BLOCKS_ERROR_OUTOFMEM -0x0001
#define BLOCKS_ERROR_NOTFOUND -0x0002
#define BLOCKS_ERROR_INVALID -0x0003
2021-01-11 14:42:36 +00:00
typedef enum {
BLOCK_FLAG_COLLISION = (1 << 0)
} block_flags;
2021-01-11 14:27:32 +00:00
int32_t blocks_init(void);
int32_t blocks_destroy(void);
// persisting buffer
2021-01-11 14:42:36 +00:00
char *blocks_get_name(uint8_t id);
uint32_t blocks_get_flags(uint8_t id);