feat: make Sand/Snow opaque and register Sand/Snow/Water blocks

This commit is contained in:
MDietermann
2026-05-31 21:38:11 +02:00
parent 4e14786668
commit 6eb17b6c5d
6 changed files with 59 additions and 1 deletions

16
World/Blocks/SnowBlock.cs Normal file
View File

@@ -0,0 +1,16 @@
namespace VoxelEngine.World.Blocks;
public class SnowBlock : IBlock
{
public ushort Id => 5;
public string Name => "Snow Block";
public bool IsOpaque => true;
public bool IsSolid => true;
public TileCoord GetTextureTile(BlockFace face) => face switch
{
BlockFace.Top => new TileCoord(2, 0),
BlockFace.Bottom => new TileCoord(0, 0),
_ => new TileCoord(3, 0)
};
}