diff options
author | worktycho <work.tycho@gmail.com> | 2014-09-26 17:04:26 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-09-26 17:04:26 +0200 |
commit | 411c69b420acdc1e103a76a1a52e2c488aee5718 (patch) | |
tree | 06e33fb4b17d9c782ebb834a9821571f11ae103c /src/Blocks/GetHandlerCompileTimeTemplate.h | |
parent | Improved searching for spawn. (diff) | |
parent | Merge branch 'master' into redstoneTests (diff) | |
download | cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.gz cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.bz2 cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.lz cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.xz cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.zst cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/GetHandlerCompileTimeTemplate.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/src/Blocks/GetHandlerCompileTimeTemplate.h b/src/Blocks/GetHandlerCompileTimeTemplate.h new file mode 100644 index 000000000..3466b5426 --- /dev/null +++ b/src/Blocks/GetHandlerCompileTimeTemplate.h @@ -0,0 +1,91 @@ + +#pragma once + +class cBlockTorchHandler; +class cBlockLeverHandler; +class cBlockButtonHandler; +class cBlockTripwireHookHandler; +class cBlockDoorHandler; +class cBlockPistonHandler; + + + + + + +template<BLOCKTYPE T> +class GetHandlerCompileTime; + + + + + + + +template<> +class GetHandlerCompileTime<E_BLOCK_TORCH> +{ +public: + typedef cBlockTorchHandler type; +}; + + + + + + +template<> +class GetHandlerCompileTime<E_BLOCK_LEVER> +{ +public: + typedef cBlockLeverHandler type; +}; + + + + + + +template<> +class GetHandlerCompileTime<E_BLOCK_STONE_BUTTON> +{ +public: + typedef cBlockButtonHandler type; +}; + + + + + + +template<> +class GetHandlerCompileTime<E_BLOCK_TRIPWIRE_HOOK> +{ +public: + typedef cBlockTripwireHookHandler type; +}; + + + + + + +template<> +class GetHandlerCompileTime<E_BLOCK_WOODEN_DOOR> +{ +public: + typedef cBlockDoorHandler type; +}; + + + + + + +template<> +class GetHandlerCompileTime<E_BLOCK_PISTON> +{ +public: + typedef cBlockPistonHandler type; +}; + |