cleaned up all the code and updated

This commit is contained in:
maxwes08
2025-09-02 13:36:14 +02:00
parent 71c5f3a3aa
commit 6fb19c415f
11 changed files with 9 additions and 67 deletions

View File

@@ -1,10 +1,4 @@
using System; namespace Voxel
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel
{ {
public class BlockData public class BlockData
{ {

View File

@@ -1,10 +1,4 @@
using System; namespace Voxel
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel
{ {
public enum Blocks : byte public enum Blocks : byte
{ {
@@ -12,7 +6,7 @@ namespace Voxel
Stone = 1, Stone = 1,
} }
public enum Orientation: uint public enum Orientation : uint
{ {
West = 0, // + X West = 0, // + X
East = 1, // - X East = 1, // - X
@@ -22,7 +16,7 @@ namespace Voxel
South = 5, // - Z South = 5, // - Z
} }
public enum Texture: uint public enum Texture : uint
{ {
Stone = 1 Stone = 1
} }

View File

@@ -1,5 +1,4 @@
using OpenTK.Mathematics; using OpenTK.Mathematics;
using System.Security.Cryptography;
namespace Voxel namespace Voxel
{ {

View File

@@ -1,10 +1,4 @@
using System; namespace Voxel
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel
{ {
public class Chunk public class Chunk
{ {

View File

@@ -1,10 +1,4 @@
using System; namespace Voxel
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel
{ {
public class ChunkMesh public class ChunkMesh
{ {
@@ -17,7 +11,7 @@ namespace Voxel
private void MeshBlock(int i) private void MeshBlock(int i)
{ {
} }
} }
} }

View File

@@ -1,10 +1,4 @@
using System; namespace Voxel
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel
{ {
static class ChunkMesher static class ChunkMesher
{ {

View File

@@ -1,9 +1,4 @@
using System; using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Voxel namespace Voxel
{ {

View File

@@ -1,9 +1,4 @@
using OpenTK.Windowing.GraphicsLibraryFramework; using OpenTK.Windowing.GraphicsLibraryFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel namespace Voxel
{ {

View File

@@ -1,10 +1,4 @@
using OpenTK.Graphics.OpenGL4; using OpenTK.Graphics.OpenGL4;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Voxel namespace Voxel
{ {

View File

@@ -1,11 +1,5 @@
using OpenTK.Graphics.OpenGL4; using OpenTK.Graphics.OpenGL4;
using OpenTK.Mathematics; using OpenTK.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
namespace Voxel namespace Voxel
{ {

View File

@@ -1,9 +1,4 @@
using OpenTK.Graphics.OpenGL4; using OpenTK.Graphics.OpenGL4;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Voxel namespace Voxel
{ {