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