* Initial commit.

:)
This commit is contained in:
iProgramInCpp
2023-07-30 22:22:02 +03:00
commit 9642818a88
613 changed files with 151754 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include "Tile.hpp"
#include "Level.hpp"
TransparentTile::TransparentTile(int ID, int texture, Material* mtl, bool bTransparent) :Tile(ID, texture, mtl)
{
m_bTransparent = bTransparent;
}
bool TransparentTile::isSolidRender()
{
return false;
}
bool TransparentTile::shouldRenderFace(LevelSource* level, int x, int y, int z, int dir)
{
if (!m_bTransparent && level->getTile(x, y, z) == m_ID)
return false;
return Tile::shouldRenderFace(level, x, y, z, dir);
}