summaryrefslogtreecommitdiffstats
path: root/src/Blocks/ClearMetaOnDrop.h
blob: 21b987f2cb30ea3c34d3df1a64f9f61c63689830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#pragma once

template<class Base>
class cClearMetaOnDrop : public Base
{
public:

	cClearMetaOnDrop(BLOCKTYPE a_BlockType) :
		Base(a_BlockType)
	{}
	
	virtual ~cClearMetaOnDrop() {}
	virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
	{
		a_Pickups.push_back(cItem(this->m_BlockType, 1, 0));
	}
};