diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-01-21 23:51:55 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-01-22 23:04:47 +0100 |
commit | 19302eeb87e6b915786ea7fa156ac3bc2ce451b4 (patch) | |
tree | cf9bd3dbf2fe5617c315a20c453b58655c664f89 /src/Simulator/IncrementalRedstoneSimulator/RedstoneTorchHandler.h | |
parent | End crystal placement (#5112) (diff) | |
download | cuberite-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/RedstoneTorchHandler.h')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator/RedstoneTorchHandler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneTorchHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneTorchHandler.h index a2964ea38..8acaecc8d 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneTorchHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneTorchHandler.h @@ -7,12 +7,12 @@ namespace RedstoneTorchHandler { - inline bool IsOn(BLOCKTYPE a_Block) + static bool IsOn(BLOCKTYPE a_Block) { return (a_Block == E_BLOCK_REDSTONE_TORCH_ON); } - inline Vector3i GetOffsetAttachedTo(const NIBBLETYPE a_Meta) + static Vector3i GetOffsetAttachedTo(const NIBBLETYPE a_Meta) { switch (a_Meta) { @@ -29,7 +29,7 @@ namespace RedstoneTorchHandler } } - 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) { const auto QueryOffset = a_QueryPosition - a_Position; @@ -45,7 +45,7 @@ namespace RedstoneTorchHandler return 15; } - inline void Update(cChunk & a_Chunk, cChunk & CurrentlyTicking, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, const PowerLevel Power) + static void Update(cChunk & a_Chunk, cChunk & CurrentlyTicking, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, const PowerLevel Power) { // LOGD("Evaluating torchy the redstone torch (%i %i %i)", a_Position.x, a_Position.y, a_Position.z); @@ -86,7 +86,7 @@ namespace RedstoneTorchHandler } } - 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); |