summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-01 23:55:43 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-06 13:21:20 +0200
commitbef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c (patch)
tree17cccb70bb8a012c84ffde3aaddb9914094eb3ad /src/Simulator/IncrementalRedstoneSimulator.h
parentFixed wire consuming much resources (diff)
downloadcuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.tar
cuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.tar.gz
cuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.tar.bz2
cuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.tar.lz
cuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.tar.xz
cuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.tar.zst
cuberite-bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.h b/src/Simulator/IncrementalRedstoneSimulator.h
index c383b6a0b..5133f7caf 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.h
+++ b/src/Simulator/IncrementalRedstoneSimulator.h
@@ -196,6 +196,8 @@ private:
/** Recursively searches for a wire path and powers everything that should be powered */
void FindAndPowerBorderingWires(std::vector<std::pair<Vector3i, cChunk *>> & a_PotentialWireList, const std::pair<Vector3i, cChunk *> & a_Entry);
+ void PowerBorderingWires(std::vector<std::pair<Vector3i, cChunk *>> & a_PotentialWireList, const std::pair<Vector3i, cChunk *> & a_Entry, const Vector3i & a_AdjustedPos, cChunk * a_NeighbourChunk, unsigned char a_MyPower);
+
/** Marks a block as being powered through another block */
void SetBlockLinkedPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ, int a_RelMiddleX, int a_RelMiddleY, int a_RelMiddleZ, int a_RelSourceX, int a_RelSourceY, int a_RelSourceZ, BLOCKTYPE a_MiddeBlock, unsigned char a_PowerLevel = MAX_POWER_LEVEL);