summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-09-26 18:32:31 +0200
committerMasy98 <masy@antheruscraft.de>2014-09-26 18:32:31 +0200
commit2feee3b316bf5cad87f9b9540c6b49f1775ada6e (patch)
tree7e508a2cc3d2c8586327e8074337da537cbbad5f /src/Simulator/RedstoneSimulator.h
parentAdded slime block to slime balls recipe (diff)
parentFixed issue with casting (diff)
downloadcuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.tar
cuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.tar.gz
cuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.tar.bz2
cuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.tar.lz
cuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.tar.xz
cuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.tar.zst
cuberite-2feee3b316bf5cad87f9b9540c6b49f1775ada6e.zip
Diffstat (limited to 'src/Simulator/RedstoneSimulator.h')
-rw-r--r--src/Simulator/RedstoneSimulator.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/Simulator/RedstoneSimulator.h b/src/Simulator/RedstoneSimulator.h
index b3e20c9a5..f6d36f869 100644
--- a/src/Simulator/RedstoneSimulator.h
+++ b/src/Simulator/RedstoneSimulator.h
@@ -4,14 +4,25 @@
#include "Simulator.h"
+class cRedstoneSimulatorChunkData
+{
+public:
+ virtual ~cRedstoneSimulatorChunkData() = 0;
+} ;
+
+inline cRedstoneSimulatorChunkData::~cRedstoneSimulatorChunkData() {}
+template <class ChunkType, class WorldType>
class cRedstoneSimulator :
- public cSimulator
+ public cSimulator<ChunkType, WorldType>
{
- typedef cSimulator super;
+ typedef cSimulator<ChunkType, WorldType> super;
public:
- cRedstoneSimulator(cWorld & a_World);
+ cRedstoneSimulator(WorldType & a_World) :
+ super(a_World)
+ {
+ }
} ;