2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "Tile.h"
|
|
|
|
|
|
|
|
|
|
class ChunkRebuildData;
|
|
|
|
|
|
|
|
|
|
class HalfTransparentTile : public Tile
|
|
|
|
|
{
|
|
|
|
|
friend class ChunkRebuildData;
|
|
|
|
|
private:
|
|
|
|
|
bool allowSame;
|
|
|
|
|
wstring texture;
|
|
|
|
|
protected:
|
|
|
|
|
HalfTransparentTile(int id, const wstring &tex, Material *material, bool allowSame);
|
|
|
|
|
public:
|
|
|
|
|
virtual bool isSolidRender(bool isServerLevel = false);
|
|
|
|
|
virtual bool shouldRenderFace(LevelSource *level, int x, int y, int z, int face);
|
|
|
|
|
virtual bool blocksLight();
|
2026-03-03 03:04:10 +08:00
|
|
|
virtual void registerIcons(IconRegister *iconRegister);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|