]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/client_item.h
cbd633462af027da739d48a1a5d8d203a28b5fba
[dragonblocks_alpha.git] / src / client / client_item.h
1 #ifndef _CLIENT_ITEM_H_
2 #define _CLIENT_ITEM_H_
3
4 #include <stdbool.h>
5 #include "client/mesh.h"
6 #include "item.h"
7 #include "node.h"
8
9 typedef struct {
10         const char *mesh_path;
11         Mesh mesh;
12         bool (*use)(ItemStack *stack);
13 } ClientItemDef;
14
15 extern ClientItemDef client_item_def[];
16
17 void client_item_init();
18 void client_item_deinit();
19 Mesh *client_item_mesh(ItemType type);
20
21 #endif // _CLIENT_ITEM_H_