2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BlockHandler.h"
|
2014-09-29 11:18:20 -04:00
|
|
|
#include "BlockID.h"
|
2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockStoneHandler :
|
|
|
|
public cBlockHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cBlockStoneHandler(BLOCKTYPE a_BlockType)
|
|
|
|
: cBlockHandler(a_BlockType)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
|
|
|
{
|
2014-10-11 13:39:46 -04:00
|
|
|
if (a_BlockMeta == E_META_STONE_STONE)
|
2014-09-29 13:19:17 -04:00
|
|
|
{
|
|
|
|
a_Pickups.push_back(cItem(E_BLOCK_COBBLESTONE, 1, 0));
|
|
|
|
return;
|
2014-09-29 11:18:20 -04:00
|
|
|
}
|
2014-09-29 13:19:17 -04:00
|
|
|
a_Pickups.push_back(cItem(E_BLOCK_STONE, 1, a_BlockMeta));
|
2013-07-29 07:13:03 -04:00
|
|
|
}
|
2014-09-29 11:18:20 -04:00
|
|
|
};
|
2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|