summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-10 15:19:38 +0100
committerMattes D <github@xoft.cz>2013-12-10 15:19:38 +0100
commit9cfd8f69105b57495028bc8441ad6075f43401c7 (patch)
treee0bc682ffb03d53a513e5a0243c488f0461d0b9a /src/Simulator/RedstoneSimulator.h
parentupdate d the contrib file. (diff)
parentReadded initial line (diff)
downloadcuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.gz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.bz2
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.lz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.xz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.zst
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.zip
Diffstat (limited to 'src/Simulator/RedstoneSimulator.h')
-rw-r--r--src/Simulator/RedstoneSimulator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Simulator/RedstoneSimulator.h b/src/Simulator/RedstoneSimulator.h
index e094150e8..1d85c0634 100644
--- a/src/Simulator/RedstoneSimulator.h
+++ b/src/Simulator/RedstoneSimulator.h
@@ -56,14 +56,23 @@ private:
Vector3i a_BlockPos;
bool WasLastStatePowered;
};
+
+ struct sRepeatersDelayList
+ {
+ Vector3i a_BlockPos;
+ short a_DelayTicks;
+ short a_ElapsedTicks;
+ };
typedef std::vector <sPoweredBlocks> PoweredBlocksList;
typedef std::vector <sLinkedPoweredBlocks> LinkedBlocksList;
typedef std::vector <sSimulatedPlayerToggleableList> SimulatedPlayerToggleableList;
+ typedef std::vector <sRepeatersDelayList> RepeatersDelayList;
PoweredBlocksList m_PoweredBlocks;
LinkedBlocksList m_LinkedPoweredBlocks;
SimulatedPlayerToggleableList m_SimulatedPlayerToggleableBlocks;
+ RepeatersDelayList m_RepeatersDelayList;
virtual void AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, cChunk * a_Chunk) override;