the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

27
src/world/item/ItemCategory.h Executable file
View File

@@ -0,0 +1,27 @@
#ifndef NET_MINECRAFT_WORLD_ITEM__ItemCategory_H__
#define NET_MINECRAFT_WORLD_ITEM__ItemCategory_H__
class ItemCategory {
public:
static const int Structures = 1;
static const int Tools = 2;
static const int FoodArmor = 4;
static const int Decorations= 8;
static const int Mechanisms = 16;
static const int NUM_CATEGORIES = 5;
static const char* categoryToString(int id) {
switch (id) {
case Structures: return "Structures";
case Tools: return "Tools";
case FoodArmor: return "Food and\nArmor";
case Decorations: return "Decorations";
case Mechanisms: return "Mechanisms";
default: return "<Unknown category>";
}
}
};
#endif /*NET_MINECRAFT_WORLD_ITEM__ItemCategory_H__*/