diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-02 16:44:31 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-02 16:44:31 +0100 |
commit | 66670f5d5ccabb3b560c2342d79d0cb1e8550899 (patch) | |
tree | 8699a9d7ba78f7525b16f896d07525b7cabb3849 /source/Chunk.h | |
parent | Core: Updated with new features (contributed by STR_Warrior) (diff) | |
download | cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.gz cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.bz2 cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.lz cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.xz cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.zst cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.zip |
Diffstat (limited to 'source/Chunk.h')
-rw-r--r-- | source/Chunk.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/Chunk.h b/source/Chunk.h index 826e8bb6d..853f1e61a 100644 --- a/source/Chunk.h +++ b/source/Chunk.h @@ -47,6 +47,7 @@ class cPawn; class cPickup; class cChunkDataSerializer; class cBlockArea; +class cFluidSimulatorData; typedef std::list<cClientHandle *> cClientHandleList; typedef cItemCallback<cEntity> cEntityCallback; @@ -267,7 +268,9 @@ public: bool UnboundedRelFastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); // Simulator data: - cFireSimulatorChunkData & GetFireSimulatorData(void) { return m_FireSimulatorData; } + cFireSimulatorChunkData & GetFireSimulatorData (void) { return m_FireSimulatorData; } + cFluidSimulatorData * GetWaterSimulatorData(void) { return m_WaterSimulatorData; } + cFluidSimulatorData * GetLavaSimulatorData (void) { return m_LavaSimulatorData; } private: @@ -312,7 +315,10 @@ private: cChunk * m_NeighborZM; // Neighbor at [X, Z - 1] cChunk * m_NeighborZP; // Neighbor at [X, Z + 1] + // Per-chunk simulator data: cFireSimulatorChunkData m_FireSimulatorData; + cFluidSimulatorData * m_WaterSimulatorData; + cFluidSimulatorData * m_LavaSimulatorData; void RemoveBlockEntity(cBlockEntity * a_BlockEntity); |