1
0
cuberite-2a/src/Blocks/GetHandlerCompileTimeTemplate.h

92 lines
910 B
C
Raw Normal View History

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