diff --git a/BurnOutSharp.Builders/BSP.cs b/BurnOutSharp.Builders/BSP.cs
index 1b183f8f..254cbdd3 100644
--- a/BurnOutSharp.Builders/BSP.cs
+++ b/BurnOutSharp.Builders/BSP.cs
@@ -3,35 +3,12 @@ using System.Linq;
using System.Text;
using BurnOutSharp.Models.BSP;
using BurnOutSharp.Utilities;
+using static BurnOutSharp.Models.BSP.Constants;
namespace BurnOutSharp.Builders
{
public static class BSP
{
- #region Constants
-
- ///
- /// Number of lumps in a BSP
- ///
- private const int HL_BSP_LUMP_COUNT = 15;
-
- ///
- /// Index for the entities lump
- ///
- public const int HL_BSP_LUMP_ENTITIES = 0;
-
- ///
- /// Index for the texture data lump
- ///
- public const int HL_BSP_LUMP_TEXTUREDATA = 2;
-
- ///
- /// Number of valid mipmap levels
- ///
- public const int HL_BSP_MIPMAP_COUNT = 4;
-
- #endregion
-
#region Byte Data
///
diff --git a/BurnOutSharp.Models/BSP/Constants.cs b/BurnOutSharp.Models/BSP/Constants.cs
new file mode 100644
index 00000000..be3ebde4
--- /dev/null
+++ b/BurnOutSharp.Models/BSP/Constants.cs
@@ -0,0 +1,25 @@
+namespace BurnOutSharp.Models.BSP
+{
+ public static class Constants
+ {
+ ///
+ /// Number of lumps in a BSP
+ ///
+ public const int HL_BSP_LUMP_COUNT = 15;
+
+ ///
+ /// Index for the entities lump
+ ///
+ public const int HL_BSP_LUMP_ENTITIES = 0;
+
+ ///
+ /// Index for the texture data lump
+ ///
+ public const int HL_BSP_LUMP_TEXTUREDATA = 2;
+
+ ///
+ /// Number of valid mipmap levels
+ ///
+ public const int HL_BSP_MIPMAP_COUNT = 4;
+ }
+}
\ No newline at end of file
diff --git a/BurnOutSharp.Wrappers/BSP.cs b/BurnOutSharp.Wrappers/BSP.cs
index 5a84e9ca..c873b167 100644
--- a/BurnOutSharp.Wrappers/BSP.cs
+++ b/BurnOutSharp.Wrappers/BSP.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
+using static BurnOutSharp.Models.BSP.Constants;
namespace BurnOutSharp.Wrappers
{
@@ -41,12 +42,6 @@ namespace BurnOutSharp.Wrappers
#endregion
- #region Extension Properties
-
- // TODO: Figure out what extension oroperties are needed
-
- #endregion
-
#region Instance Variables
///
@@ -155,10 +150,10 @@ namespace BurnOutSharp.Wrappers
string specialLumpName = string.Empty;
switch (i)
{
- case Builders.BSP.HL_BSP_LUMP_ENTITIES:
+ case HL_BSP_LUMP_ENTITIES:
specialLumpName = " (entities)";
break;
- case Builders.BSP.HL_BSP_LUMP_TEXTUREDATA:
+ case HL_BSP_LUMP_TEXTUREDATA:
specialLumpName = " (texture data)";
break;
}
@@ -267,10 +262,10 @@ namespace BurnOutSharp.Wrappers
string filename = $"lump_{index}.bin";
switch (index)
{
- case Builders.BSP.HL_BSP_LUMP_ENTITIES:
+ case HL_BSP_LUMP_ENTITIES:
filename = "entities.ent";
break;
- case Builders.BSP.HL_BSP_LUMP_TEXTUREDATA:
+ case HL_BSP_LUMP_TEXTUREDATA:
filename = "texture_data.bin";
break;
}