CustomTopBlock

Undocumented in source.

Constructors

this
this(cell_t blockId, string blockName, BlockVisibility v, int tx, int topTx, int sideTx)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

createFace
void createFace(World world, Position camPosition, Vector3d pos, Dir face, Mesh mesh)

create cube face

Variables

sideTxIndex
int sideTxIndex;
Undocumented in source.
topTxIndex
int topTxIndex;
Undocumented in source.

Inherited Members

From BlockDef

id
cell_t id;
Undocumented in source.
name
string name;
Undocumented in source.
visibility
BlockVisibility visibility;
Undocumented in source.
txIndex
int txIndex;
Undocumented in source.
~this
~this()
Undocumented in source.
canPass
bool canPass [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isOpaque
bool isOpaque [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
terrainSmoothing
bool terrainSmoothing [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
addFace
void addFace(Vector3d pos, Dir face, Mesh mesh, int textureIndex)

add cube face

createFace
void createFace(World world, Position camPosition, Vector3d pos, Dir face, Mesh mesh)

create cube face

createFaces
void createFaces(World world, Position camPosition, Vector3d pos, int visibleFaces, Mesh mesh)

create faces

Meta