2015-06-26 22:24:51 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RedstoneHandler.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-26 13:15:00 +00:00
|
|
|
class cRedstoneBlockHandler final : public cRedstoneHandler
|
2015-06-26 22:24:51 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2020-08-08 17:22:16 +00:00
|
|
|
virtual unsigned char GetPowerDeliveredToPosition(const cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType, bool IsLinked) const override
|
2015-06-26 22:24:51 +00:00
|
|
|
{
|
2020-07-26 13:15:00 +00:00
|
|
|
UNUSED(a_Chunk);
|
2015-06-26 22:24:51 +00:00
|
|
|
UNUSED(a_Position);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_QueryPosition);
|
2020-08-08 17:22:16 +00:00
|
|
|
UNUSED(IsLinked);
|
|
|
|
return IsLinked ? 0 : 15;
|
2015-06-26 22:24:51 +00:00
|
|
|
}
|
|
|
|
|
2020-07-26 13:15:00 +00:00
|
|
|
virtual void Update(cChunk & a_Chunk, cChunk & CurrentlyTicking, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, PoweringData a_PoweringData) const override
|
2015-06-26 22:24:51 +00:00
|
|
|
{
|
2015-12-24 15:57:45 +00:00
|
|
|
// LOGD("Evaluating crimson the redstone block (%d %d %d)", a_Position.x, a_Position.y, a_Position.z);
|
2015-06-26 22:24:51 +00:00
|
|
|
}
|
|
|
|
|
2020-08-08 17:22:16 +00:00
|
|
|
virtual void ForValidSourcePositions(const cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, SourceCallback Callback) const override
|
2015-06-26 22:24:51 +00:00
|
|
|
{
|
2020-07-26 13:15:00 +00:00
|
|
|
UNUSED(a_Chunk);
|
2015-06-26 22:24:51 +00:00
|
|
|
UNUSED(a_Position);
|
|
|
|
UNUSED(a_BlockType);
|
|
|
|
UNUSED(a_Meta);
|
2020-07-26 13:15:00 +00:00
|
|
|
UNUSED(Callback);
|
2015-06-26 22:24:51 +00:00
|
|
|
}
|
|
|
|
};
|