forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
27
src/world/item/ItemCategory.h
Executable file
27
src/world/item/ItemCategory.h
Executable 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__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue