Added first implementation of cClearMetaOnDrop
This commit is contained in:
18
src/Blocks/ClearMetaOnDrop.h
Normal file
18
src/Blocks/ClearMetaOnDrop.h
Normal file
@@ -0,0 +1,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));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user