22 lines
408 B
C
22 lines
408 B
C
#ifndef _CLIENT_ITEM_H_
|
|
#define _CLIENT_ITEM_H_
|
|
|
|
#include <stdbool.h>
|
|
#include "client/mesh.h"
|
|
#include "common/item.h"
|
|
#include "common/node.h"
|
|
|
|
typedef struct {
|
|
const char *mesh_path;
|
|
Mesh mesh;
|
|
bool (*use)(ItemStack *stack);
|
|
} ClientItemDef;
|
|
|
|
extern ClientItemDef client_item_def[];
|
|
|
|
void client_item_init();
|
|
void client_item_deinit();
|
|
Mesh *client_item_mesh(ItemType type);
|
|
|
|
#endif // _CLIENT_ITEM_H_
|