16 lines
415 B
C#
16 lines
415 B
C#
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)
|
|
};
|
|
} |