#include <DelayedFluidSimulator.h>
|
virtual void | AddBlock (cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block) override |
| Called to simulate a new block. More...
|
|
virtual cFluidSimulatorData * | CreateChunkData (void) override |
| Creates a ChunkData object for the simulator to use. More...
|
|
virtual void | Simulate (float a_Dt) override |
|
virtual void | SimulateBlock (cChunk *a_Chunk, int a_RelX, int a_RelY, int a_RelZ)=0 |
| Called from SimulateChunk() to simulate each block in one slot of blocks. More...
|
|
virtual void | SimulateChunk (std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk *a_Chunk) override |
|
bool | IsAllowedBlock (BLOCKTYPE a_BlockType) |
|
virtual void | WakeUp (cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block) |
| Called to simulate a single new block, typically as a result of a single block break or change. More...
|
|
virtual void | WakeUp (cChunk &a_Chunk, Vector3i a_Position, Vector3i a_Offset, BLOCKTYPE a_Block) |
| Called to simulate a single block, synthesised by the simulator manager. More...
|
|
Definition at line 48 of file DelayedFluidSimulator.h.
◆ Super
◆ cDelayedFluidSimulator()
cDelayedFluidSimulator::cDelayedFluidSimulator |
( |
cWorld & |
a_World, |
|
|
BLOCKTYPE |
a_Fluid, |
|
|
BLOCKTYPE |
a_StationaryFluid, |
|
|
int |
a_TickDelay |
|
) |
| |
◆ AddBlock()
Called to simulate a new block.
Unlike WakeUp this function will perform minimal checking. It queues the block to be simulated as fast as possible, suitable for area wakeups.
Implements cSimulator.
Definition at line 122 of file DelayedFluidSimulator.cpp.
◆ CreateChunkData()
|
inlineoverrideprotectedvirtual |
◆ Simulate()
void cDelayedFluidSimulator::Simulate |
( |
float |
a_Dt | ) |
|
|
overrideprotectedvirtual |
◆ SimulateBlock()
virtual void cDelayedFluidSimulator::SimulateBlock |
( |
cChunk * |
a_Chunk, |
|
|
int |
a_RelX, |
|
|
int |
a_RelY, |
|
|
int |
a_RelZ |
|
) |
| |
|
protectedpure virtual |
◆ SimulateChunk()
void cDelayedFluidSimulator::SimulateChunk |
( |
std::chrono::milliseconds |
a_Dt, |
|
|
int |
a_ChunkX, |
|
|
int |
a_ChunkZ, |
|
|
cChunk * |
a_Chunk |
|
) |
| |
|
overrideprotectedvirtual |
◆ m_AddSlotNum
int cDelayedFluidSimulator::m_AddSlotNum |
|
protected |
◆ m_SimSlotNum
int cDelayedFluidSimulator::m_SimSlotNum |
|
protected |
◆ m_TickDelay
int cDelayedFluidSimulator::m_TickDelay |
|
protected |
◆ m_TotalBlocks
int cDelayedFluidSimulator::m_TotalBlocks |
|
protected |
The documentation for this class was generated from the following files: