the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "TileItem.h"
5#include "HalfSlabTile.h"
6
7class StoneSlabTileItem : public TileItem
8{
9private:
10 bool isFull;
11 HalfSlabTile *halfTile;
12 HalfSlabTile *fullTile;
13public:
14 StoneSlabTileItem(int id, HalfSlabTile *halfTile, HalfSlabTile *fullTile, bool full);
15
16 virtual Icon *getIcon(int itemAuxValue);
17 virtual int getLevelDataForAuxValue(int auxValue);
18 virtual unsigned int getDescriptionId(shared_ptr<ItemInstance> instance);
19 virtual bool useOn(shared_ptr<ItemInstance> instance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false);
20
21 virtual bool mayPlace(Level *level, int x, int y, int z, int face,shared_ptr<Player> player, shared_ptr<ItemInstance> item);
22private:
23 bool tryConvertTargetTile(shared_ptr<ItemInstance> instance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, bool bTestUseOnOnly);
24};