summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-01-21 23:51:55 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-01-22 23:04:47 +0100
commit19302eeb87e6b915786ea7fa156ac3bc2ce451b4 (patch)
treecf9bd3dbf2fe5617c315a20c453b58655c664f89 /src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h
parentEnd crystal placement (#5112) (diff)
downloadcuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.tar
cuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.tar.gz
cuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.tar.bz2
cuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.tar.lz
cuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.tar.xz
cuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.tar.zst
cuberite-19302eeb87e6b915786ea7fa156ac3bc2ce451b4.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h b/src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h
index 00fd8c7eb..cb772bb5b 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/DoorHandler.h
@@ -11,7 +11,7 @@ namespace DoorHandler
{
// "Doormammu, I've come to bargain"
- inline PowerLevel GetPowerDeliveredToPosition(const cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType, bool IsLinked)
+ static PowerLevel GetPowerDeliveredToPosition(const cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType, bool IsLinked)
{
UNUSED(a_Chunk);
UNUSED(a_Position);
@@ -22,7 +22,7 @@ namespace DoorHandler
return 0;
}
- inline void ForValidSourcePositions(const cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, ForEachSourceCallback & Callback)
+ static void ForValidSourcePositions(const cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, ForEachSourceCallback & Callback)
{
UNUSED(a_Chunk);
UNUSED(a_BlockType);
@@ -30,7 +30,7 @@ namespace DoorHandler
InvokeForAdjustedRelatives(Callback, a_Position, RelativeAdjacents);
}
- inline void Update(cChunk & a_Chunk, cChunk &, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, PowerLevel Power)
+ static void Update(cChunk & a_Chunk, cChunk &, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, PowerLevel Power)
{
// LOGD("Evaluating dori the door (%d %d %d)", a_Position.x, a_Position.y, a_Position.z);