2012-08-06 16:10:16 -04:00
|
|
|
|
2012-07-15 16:36:34 -04:00
|
|
|
#pragma once
|
2012-08-06 16:10:16 -04:00
|
|
|
|
2012-09-23 18:09:57 -04:00
|
|
|
#include "BlockHandler.h"
|
2012-07-15 16:36:34 -04:00
|
|
|
|
|
|
|
|
2012-08-06 16:10:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-15 16:36:34 -04:00
|
|
|
class cBlockEntityHandler : public cBlockHandler
|
|
|
|
{
|
|
|
|
public:
|
2012-07-16 15:20:37 -04:00
|
|
|
cBlockEntityHandler(BLOCKTYPE a_BlockID)
|
|
|
|
: cBlockHandler(a_BlockID)
|
|
|
|
{
|
|
|
|
}
|
2012-08-06 16:10:16 -04:00
|
|
|
|
2012-08-19 06:44:19 -04:00
|
|
|
virtual void OnUse(cWorld * a_World, cPlayer *a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) override
|
2012-07-16 15:20:37 -04:00
|
|
|
{
|
2012-08-06 16:10:16 -04:00
|
|
|
a_World->UseBlockEntity(a_Player, a_BlockX, a_BlockY, a_BlockZ);
|
2012-07-16 15:20:37 -04:00
|
|
|
}
|
2012-08-06 16:10:16 -04:00
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual bool IsUseable() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2012-08-06 16:10:16 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|