Files
cuberite-2a/source/Blocks/BlockStairs.h
T

23 lines
610 B
C++
Raw Normal View History

2012-07-15 20:36:34 +00:00
#pragma once
#include "BlockHandler.h"
#include "../Stairs.h"
2012-07-15 20:36:34 +00:00
class cBlockStairsHandler : public cBlockHandler
{
public:
cBlockStairsHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
2012-07-16 19:20:37 +00:00
{
}
2012-07-15 20:36:34 +00:00
virtual void PlaceBlock(cWorld *a_World, cPlayer *a_Player, NIBBLETYPE a_BlockMeta, int a_BlockX, int a_BlockY, int a_BlockZ, char a_Dir) override
2012-07-16 19:20:37 +00:00
{
a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, m_BlockType, cStairs::RotationToMetaData(a_Player->GetRotation(), a_Dir));
OnPlacedByPlayer(a_World, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_Dir);
2012-07-16 19:20:37 +00:00
}
2012-07-15 20:36:34 +00:00
2012-09-11 12:01:34 +00:00
//TODO: step sound
};