feat: add block model with IBlock flyweight and registry

This commit is contained in:
2026-05-28 11:53:15 +02:00
parent 17503820e6
commit f4d3f9aab4
8 changed files with 156 additions and 0 deletions

10
World/Blocks/AirBlock.cs Normal file
View File

@@ -0,0 +1,10 @@
namespace VoxelEngine.World.Blocks;
public sealed class AirBlock : IBlock
{
public ushort Id => 0;
public string Name => "Air";
public bool IsOpaque => false;
public bool IsSolid => false;
public int GetTextureIndex(BlockFace face) => 0;
}