Blocks now represented by Objects instead of ints

This commit is contained in:
Simon Lübeß
2021-03-06 20:46:08 +01:00
parent 3449463282
commit 4e87f5f144
7 changed files with 111 additions and 77 deletions
+20
View File
@@ -0,0 +1,20 @@
using GlitchyEngine.Math;
namespace Sandbox.VoxelFun
{
class Block
{
private uint16 _blockID;
public uint16 ID => _blockID;
public Color Color {get;}
public BlockFace VisibleNeighbors {get;}
public this(Color color, BlockFace visibleNeighbors = .None)
{
Color = color;
VisibleNeighbors = visibleNeighbors;
}
}
}