From 221cc4ec5cb6301743e947eaabed3fecedba796f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 16 Oct 2019 10:06:34 +0200 Subject: Refactored block-to-pickup conversion. (#4417) --- src/Blocks/ClearMetaOnDrop.h | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/Blocks/ClearMetaOnDrop.h (limited to 'src/Blocks/ClearMetaOnDrop.h') diff --git a/src/Blocks/ClearMetaOnDrop.h b/src/Blocks/ClearMetaOnDrop.h deleted file mode 100644 index 3a375e121..000000000 --- a/src/Blocks/ClearMetaOnDrop.h +++ /dev/null @@ -1,24 +0,0 @@ - -#pragma once - -// mixin for use to clear meta values when the block is converted to a pickup - -// Usage: inherit from this class, passing the parent class as the parameter Base -// For example to use in class Foo which should inherit Bar use -// class Foo : public cClearMetaOnDrop; - -template -class cClearMetaOnDrop : public Base -{ -public: - - cClearMetaOnDrop(BLOCKTYPE a_BlockType) : - Base(a_BlockType) - {} - - virtual ~cClearMetaOnDrop() override {} - virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override - { - a_Pickups.push_back(cItem(this->m_BlockType)); - } -}; -- cgit v1.2.3