From 5d736b653f9db324a940b28d6ce5c44bf28fc7d2 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 28 Aug 2020 21:42:37 +0100 Subject: [PATCH] Minor style fixes --- src/ChunkStay.h | 2 +- .../IncrementalRedstoneSimulator/ForEachSourceCallback.h | 4 ++++ .../IncrementalRedstoneSimulator/RedstoneHandler.h | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ChunkStay.h b/src/ChunkStay.h index a7c038a9c..59b6841a4 100644 --- a/src/ChunkStay.h +++ b/src/ChunkStay.h @@ -65,7 +65,7 @@ public: /** Called when a specific chunk become available. */ virtual void OnChunkAvailable(int a_ChunkX, int a_ChunkZ) = 0; - /** Caled once all of the contained chunks are available. + /** Called once all of the contained chunks are available. If returns true, the ChunkStay is automatically disabled by the ChunkMap; if it returns false, the ChunkStay is kept. */ virtual bool OnAllChunksAvailable(void) = 0; diff --git a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h index 657638254..6d49291cb 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h +++ b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h @@ -3,6 +3,10 @@ #include "RedstoneSimulatorChunkData.h" + + + + class ForEachSourceCallback { public: diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h index 25c646df3..fdac7901f 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h @@ -3,9 +3,17 @@ #include "RedstoneSimulatorChunkData.h" + + + + class cChunk; class ForEachSourceCallback; + + + + namespace RedstoneHandler { /** Asks a redstone component at the source position how much power it will deliver to the querying position.