Cuberite
A lightweight, fast and extensible game server for Minecraft
|
A cStructure descendant representing an empty structure. More...
Public Member Functions | |
cEmptyStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) | |
Public Member Functions inherited from cGridStructGen::cStructure | |
cStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) | |
Creates a structure that has its origin set at the specified coords. More... | |
virtual size_t | GetCacheCost (void) const |
Returns the cost of keeping this structure in the cache. More... | |
virtual | ~cStructure () |
Protected Member Functions | |
virtual void | DrawIntoChunk (cChunkDesc &a_ChunkDesc) override |
Draws self into the specified chunk. More... | |
Private Types | |
using | Super = cGridStructGen::cStructure |
Additional Inherited Members | |
Public Attributes inherited from cGridStructGen::cStructure | |
int | m_GridX |
The grid point for which the structure is generated. More... | |
int | m_GridZ |
int | m_OriginX |
The origin (the coords for which the structure is generated) More... | |
int | m_OriginZ |
A cStructure descendant representing an empty structure.
Used when the generator descended from cGridStructGen doesn't return any structure, to keep at least the Origin coords so that the structure isn't queried over and over again.
Definition at line 19 of file GridStructGen.cpp.
|
private |
Definition at line 22 of file GridStructGen.cpp.
|
inline |
Definition at line 26 of file GridStructGen.cpp.
|
inlineoverrideprotectedvirtual |
Draws self into the specified chunk.
Implements cGridStructGen::cStructure.
Definition at line 32 of file GridStructGen.cpp.