2015-06-26 17:24:51 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-26 14:15:00 +01:00
|
|
|
#include "RedstoneSimulatorChunkData.h"
|
2015-06-26 17:24:51 -05:00
|
|
|
|
2020-08-19 21:14:40 +01:00
|
|
|
class cChunk;
|
|
|
|
|
class ForEachSourceCallback;
|
2015-06-26 17:24:51 -05:00
|
|
|
|
2020-08-19 21:14:40 +01:00
|
|
|
namespace RedstoneHandler
|
2015-06-26 17:24:51 -05:00
|
|
|
{
|
2020-08-19 21:14:40 +01:00
|
|
|
unsigned char GetPowerDeliveredToPosition(const cChunk & Chunk, Vector3i Position, BLOCKTYPE BlockType, Vector3i QueryPosition, BLOCKTYPE QueryBlockType, bool IsLinked);
|
2020-08-08 18:22:16 +01:00
|
|
|
|
2020-08-19 21:14:40 +01:00
|
|
|
void Update(cChunk & Chunk, cChunk & CurrentlyTicking, Vector3i Position, BLOCKTYPE BlockType, NIBBLETYPE Meta, PoweringData PoweringData);
|
2020-08-08 18:22:16 +01:00
|
|
|
|
2020-08-19 21:14:40 +01:00
|
|
|
void ForValidSourcePositions(const cChunk & Chunk, Vector3i Position, BLOCKTYPE BlockType, NIBBLETYPE Meta, ForEachSourceCallback & Callback);
|
2020-07-26 14:15:00 +01:00
|
|
|
|
2020-08-19 21:14:40 +01:00
|
|
|
void SetWireState(const cChunk & Chunk, Vector3i Position);
|
|
|
|
|
}
|