2021-05-04 17:41:30 +00:00
|
|
|
#pragma once
|
|
|
|
#include "system.h"
|
|
|
|
|
|
|
|
#define BLOCK_INVALID 0xF
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BLOCK_FLAG_COLLISION = (1 << 0)
|
|
|
|
} block_flags;
|
|
|
|
|
|
|
|
#include "blocks_info.h"
|
|
|
|
|
2021-05-12 16:28:39 +00:00
|
|
|
int32_t blocks_setup(void);
|
|
|
|
void blocks_destroy(void);
|
|
|
|
|
2021-05-04 17:41:30 +00:00
|
|
|
uint8_t blocks_find(uint32_t biome, uint32_t kind);
|
|
|
|
|
|
|
|
char *blocks_get_name(uint8_t id);
|
|
|
|
char blocks_get_symbol(uint8_t id);
|
|
|
|
uint32_t blocks_get_flags(uint8_t id);
|
|
|
|
uint32_t blocks_get_biome(uint8_t id);
|
|
|
|
uint32_t blocks_get_kind(uint8_t id);
|
2021-05-12 16:28:39 +00:00
|
|
|
|
|
|
|
// NOTE(zaklaus): viewer-related functions
|
2021-05-12 16:38:47 +00:00
|
|
|
void *blocks_get_img(uint8_t id);
|