mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
Items intruduced (WIP)
This commit is contained in:
parent
4f6ba8cca6
commit
4a57e71e81
12 changed files with 269 additions and 58 deletions
25
src/content/ItemDef.h
Normal file
25
src/content/ItemDef.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef CONTENT_ITEM_DEF_H_
|
||||
#define CONTENT_ITEM_DEF_H_
|
||||
|
||||
#include <string>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "../typedefs.h"
|
||||
|
||||
struct item_funcs_set {
|
||||
bool init: 1;
|
||||
};
|
||||
|
||||
class ItemDef {
|
||||
public:
|
||||
std::string name;
|
||||
|
||||
struct {
|
||||
itemid_t id;
|
||||
item_funcs_set funcsset {};
|
||||
} rt;
|
||||
|
||||
ItemDef(std::string name);
|
||||
};
|
||||
|
||||
#endif //CONTENT_ITEM_DEF_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue