Cuberite
A lightweight, fast and extensible game server for Minecraft
NoopRedstoneSimulator.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "RedstoneSimulator.h"
5 
6 
7 
8 
9 
11  public cRedstoneSimulator
12 {
14 
15 public:
16 
18  Super(a_World)
19  {
20  }
21 
22  virtual void SimulateChunk(std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk * a_Chunk) override
23  {
24  UNUSED(a_Dt);
25  UNUSED(a_ChunkX);
26  UNUSED(a_ChunkZ);
27  UNUSED(a_Chunk);
28  }
29 
30  virtual void AddBlock(cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block) override
31  {
32  UNUSED(a_Block);
33  UNUSED(a_Chunk);
34  }
35 
37  {
38  return nullptr;
39  }
40 } ;
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:41
#define UNUSED
Definition: Globals.h:72
Definition: Chunk.h:36
virtual void SimulateChunk(std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk *a_Chunk) override
virtual void AddBlock(cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block) override
Called to simulate a new block.
virtual cRedstoneSimulatorChunkData * CreateChunkData() override
cRedstoneNoopSimulator(cWorld &a_World)
Definition: World.h:53