1
0
cuberite-2a/src/Simulator/NoopRedstoneSimulator.h
Tiger Wang 225c2fa9f6 Always use relative coordinates in AddBlock
+ Pass block, use relatives
* Fixes everything immediately converting abs back to rel and getting block, when these data were already available
2020-08-02 15:52:06 +01:00

35 lines
533 B
C++

#pragma once
#include "RedstoneSimulator.h"
class cRedstoneNoopSimulator final :
public cRedstoneSimulator
{
using Super = cRedstoneSimulator;
public:
cRedstoneNoopSimulator(cWorld & a_World):
Super(a_World)
{
}
virtual void Simulate(float a_Dt) override { UNUSED(a_Dt);} // not used
virtual void AddBlock(cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block) override
{
UNUSED(a_Block);
UNUSED(a_Chunk);
}
virtual cRedstoneSimulatorChunkData * CreateChunkData() override
{
return nullptr;
}
} ;