1
0
Fork 0
cuberite-2a/src/Blocks/GetHandlerCompileTimeTempla...

84 lines
902 B
C
Raw Normal View History

#pragma once
class cBlockTorchHandler;
class cBlockLeverHandler;
class cBlockButtonHandler;
class cBlockTripwireHookHandler;
class cBlockDoorHandler;
class cBlockPistonHandler;
2014-09-25 14:45:39 +00:00
template<BLOCKTYPE T>
class GetHandlerCompileTime;
2014-09-25 14:45:39 +00:00
template<>
class GetHandlerCompileTime<E_BLOCK_TORCH>
{
public:
typedef cBlockTorchHandler type;
};
2014-09-25 14:45:39 +00:00
template<>
class GetHandlerCompileTime<E_BLOCK_LEVER>
{
public:
typedef cBlockLeverHandler type;
};
2014-09-25 14:45:39 +00:00
template<>
class GetHandlerCompileTime<E_BLOCK_STONE_BUTTON>
{
public:
typedef cBlockButtonHandler type;
};
2014-09-25 14:45:39 +00:00
template<>
class GetHandlerCompileTime<E_BLOCK_TRIPWIRE_HOOK>
{
public:
typedef cBlockTripwireHookHandler type;
};
2014-09-25 14:45:39 +00:00
template<>
class GetHandlerCompileTime<E_BLOCK_WOODEN_DOOR>
{
public:
typedef cBlockDoorHandler type;
};
2014-09-25 14:45:39 +00:00
template<>
class GetHandlerCompileTime<E_BLOCK_PISTON>
{
public:
typedef cBlockPistonHandler type;
};
2014-09-25 14:45:39 +00:00