Items intruduced (WIP)

This commit is contained in:
MihailRis 2024-01-08 01:11:22 +03:00
parent 4f6ba8cca6
commit 4a57e71e81
12 changed files with 269 additions and 58 deletions

25
src/content/ItemDef.h Normal file
View 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_