diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-10 17:53:46 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-10 17:53:46 +0100 |
commit | 5d2311bcff631bcb9849754318b3469af6f7e4fe (patch) | |
tree | 79cb23ac444cb09a4b7b69858651d453dc6ac1a8 /src/Simulator/RedstoneSimulator.h | |
parent | moved deafult action into deafult clause at src/Generating/DistortedHeightmap.cpp line 741 (diff) | |
parent | Merge pull request #412 from mc-server/fixes (diff) | |
download | cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.gz cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.bz2 cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.lz cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.xz cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.zst cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.zip |
Diffstat (limited to 'src/Simulator/RedstoneSimulator.h')
-rw-r--r-- | src/Simulator/RedstoneSimulator.h | 9 |
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; |