diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-07-14 22:21:17 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-07-14 22:21:17 +0200 |
commit | 2cd3443fbbb498f06227ed44db0c6a749cafdb76 (patch) | |
tree | 6fdea2e67312de2b93c2685ce9a6a77043660ae6 | |
parent | Converted some blockhandlers to use cClearMetaOnDrop (diff) | |
download | cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.tar cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.tar.gz cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.tar.bz2 cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.tar.lz cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.tar.xz cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.tar.zst cuberite-2cd3443fbbb498f06227ed44db0c6a749cafdb76.zip |
-rw-r--r-- | src/Blocks/ClearMetaOnDrop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/ClearMetaOnDrop.h b/src/Blocks/ClearMetaOnDrop.h index e6d26863a..3f8c33819 100644 --- a/src/Blocks/ClearMetaOnDrop.h +++ b/src/Blocks/ClearMetaOnDrop.h @@ -1,6 +1,12 @@ #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<Bar>; + template<class Base> class cClearMetaOnDrop : public Base { |