27 else if (Offset.
x == 1)
40 else if (Offset.
y == -1)
53 else if (Offset.
y == 1)
66 else if (Offset.
z == -1)
109 AddBlock(a_Chunk, a_Position, a_Block);
120 WakeUp(a_Chunk, a_Position, a_Block);
unsigned char BLOCKTYPE
The datatype used by blockdata.
bool IsValid(void) const
Returns true iff the chunk block data is valid (loaded / generated)
virtual void Simulate(float a_Dt)
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.
static std::array< Vector3i, 5 > GetLinkedOffsets(Vector3i Offset)
For a given offset from a position, return the offsets that represent the adjacents of the newly offs...
virtual void AddBlock(cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block)=0
Called to simulate a new block.