feat: add block model with IBlock flyweight and registry
This commit is contained in:
10
World/Blocks/DirtBlock.cs
Normal file
10
World/Blocks/DirtBlock.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace VoxelEngine.World.Blocks;
|
||||
|
||||
public sealed class DirtBlock : IBlock
|
||||
{
|
||||
public ushort Id => 2;
|
||||
public string Name => "Dirt";
|
||||
public bool IsOpaque => true;
|
||||
public bool IsSolid => true;
|
||||
public int GetTextureIndex(BlockFace face) => 1;
|
||||
}
|
||||
Reference in New Issue
Block a user