public static byte CalcShape(MeshShapeType meshShape, RotationType rotation, bool upsideDown) { var result = (byte)((byte)meshShape | (byte)rotation); if (upsideDown) { result |= UpsideDownFlag; } return(result); }
public Voxel ChangeShape(MeshShapeType meshShape, RotationType rotation, bool upsideDown) { return(new Voxel(meshShape, rotation, upsideDown, BlockType)); }
public Voxel(MeshShapeType meshShape, ushort blockType) { ShapeData = CalcShape(meshShape, RotationType.North, false); BlockType = blockType; }
public Voxel(MeshShapeType meshShape, RotationType rotation, bool upsideDown, ushort blockType) { ShapeData = CalcShape(meshShape, rotation, upsideDown); BlockType = blockType; }