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