2012-10-06 20:04:58 +00:00
|
|
|
|
2012-06-14 13:06:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2014-02-07 21:59:08 +00:00
|
|
|
#include "Simulator.h"
|
2012-10-06 20:04:58 +00:00
|
|
|
|
|
|
|
|
2014-09-16 19:29:31 +00:00
|
|
|
class cRedstoneSimulatorChunkData
|
|
|
|
{
|
|
|
|
public:
|
2014-09-26 16:00:34 +00:00
|
|
|
virtual ~cRedstoneSimulatorChunkData() = 0;
|
2014-09-16 19:29:31 +00:00
|
|
|
} ;
|
|
|
|
|
2012-10-06 20:04:58 +00:00
|
|
|
|
2014-09-26 16:00:34 +00:00
|
|
|
inline cRedstoneSimulatorChunkData::~cRedstoneSimulatorChunkData() {}
|
|
|
|
|
2014-09-11 16:48:21 +00:00
|
|
|
template <class ChunkType, class WorldType>
|
2012-10-06 20:04:58 +00:00
|
|
|
class cRedstoneSimulator :
|
2014-09-11 16:48:21 +00:00
|
|
|
public cSimulator<ChunkType, WorldType>
|
2012-06-14 13:06:06 +00:00
|
|
|
{
|
2014-09-11 16:48:21 +00:00
|
|
|
typedef cSimulator<ChunkType, WorldType> super;
|
2014-02-07 21:59:08 +00:00
|
|
|
|
2012-06-14 13:06:06 +00:00
|
|
|
public:
|
2014-09-11 16:48:21 +00:00
|
|
|
cRedstoneSimulator(WorldType & a_World) :
|
|
|
|
super(a_World)
|
|
|
|
{
|
|
|
|
}
|
2014-09-28 14:36:00 +00:00
|
|
|
|
|
|
|
virtual cRedstoneSimulatorChunkData * CreateChunkData() = 0;
|
2013-11-18 22:30:34 +00:00
|
|
|
|
2014-02-07 21:59:08 +00:00
|
|
|
} ;
|