feat: add block model with IBlock flyweight and registry
This commit is contained in:
10
World/Blocks/AirBlock.cs
Normal file
10
World/Blocks/AirBlock.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user