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

20 lines
433 B
C
Raw Normal View History

2021-01-11 13:47:14 +00:00
#pragma once
#include "system.h"
2021-01-11 16:20:12 +00:00
#define BLOCK_INVALID 0xF
2021-01-11 14:27:32 +00:00
2021-01-11 14:42:36 +00:00
typedef enum {
BLOCK_FLAG_COLLISION = (1 << 0)
} block_flags;
2021-01-11 16:20:12 +00:00
#include "blocks_info.h"
uint8_t blocks_find(uint32_t biome, uint32_t kind);
2021-01-11 14:27:32 +00:00
2021-01-11 14:42:36 +00:00
char *blocks_get_name(uint8_t id);
2021-01-11 16:20:12 +00:00
uint8_t blocks_get_tex_id(uint8_t id);
char blocks_get_symbol(uint8_t id);
2021-01-11 14:42:36 +00:00
uint32_t blocks_get_flags(uint8_t id);
2021-01-11 17:15:11 +00:00
uint32_t blocks_get_biome(uint8_t id);
uint32_t blocks_get_kind(uint8_t id);