diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-29 14:37:01 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-29 14:37:01 +0200 |
commit | 347402d20d7ecaab3daad691eb178c5a04447d44 (patch) | |
tree | 4a3188eef6087a3029b348cbbe8c93e5d365d158 /src/Simulator | |
parent | Fixed SetDefaultRank() return value. (diff) | |
parent | Merge pull request #1479 from SphinxC0re/master (diff) | |
download | cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.tar cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.tar.gz cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.tar.bz2 cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.tar.lz cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.tar.xz cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.tar.zst cuberite-347402d20d7ecaab3daad691eb178c5a04447d44.zip |
Diffstat (limited to 'src/Simulator')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator.inc | 5 | ||||
-rw-r--r-- | src/Simulator/NoopRedstoneSimulator.h | 5 | ||||
-rw-r--r-- | src/Simulator/RedstoneSimulator.h | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.inc b/src/Simulator/IncrementalRedstoneSimulator.inc index 937e6b790..200fc0971 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.inc +++ b/src/Simulator/IncrementalRedstoneSimulator.inc @@ -27,6 +27,11 @@ public: { } ~cIncrementalRedstoneSimulator(); + + virtual cRedstoneSimulatorChunkData * CreateChunkData() override + { + return new cIncrementalRedstoneSimulatorChunkData; + } virtual void Simulate(float a_Dt) override { UNUSED(a_Dt);} // not used virtual void SimulateChunk(float a_Dt, int a_ChunkX, int a_ChunkZ, ChunkType * a_Chunk) override; diff --git a/src/Simulator/NoopRedstoneSimulator.h b/src/Simulator/NoopRedstoneSimulator.h index 88e141e85..7c961f32b 100644 --- a/src/Simulator/NoopRedstoneSimulator.h +++ b/src/Simulator/NoopRedstoneSimulator.h @@ -36,5 +36,10 @@ public: UNUSED(a_BlockZ); UNUSED(a_Chunk); } + + virtual cRedstoneSimulatorChunkData * CreateChunkData() override + { + return NULL; + } } ; diff --git a/src/Simulator/RedstoneSimulator.h b/src/Simulator/RedstoneSimulator.h index f6d36f869..6104d39b4 100644 --- a/src/Simulator/RedstoneSimulator.h +++ b/src/Simulator/RedstoneSimulator.h @@ -24,5 +24,7 @@ public: super(a_World) { } + + virtual cRedstoneSimulatorChunkData * CreateChunkData() = 0; } ; |