diff --git a/NewHorizons/Builder/StarSystem/SkyboxBuilder.cs b/NewHorizons/Builder/StarSystem/SkyboxBuilder.cs
index 5d4b8548..d531c977 100644
--- a/NewHorizons/Builder/StarSystem/SkyboxBuilder.cs
+++ b/NewHorizons/Builder/StarSystem/SkyboxBuilder.cs
@@ -1,4 +1,4 @@
-using NewHorizons.External.Configs;
+using NewHorizons.External.Modules;
using NewHorizons.Utility;
using NewHorizons.Utility.Files;
using NewHorizons.Utility.OWML;
@@ -13,13 +13,13 @@ namespace NewHorizons.Builder.StarSystem
{
private static readonly Shader _unlitShader = Shader.Find("Unlit/Texture");
- public static void Make(StarSystemConfig.SkyboxModule module, IModBehaviour mod)
+ public static void Make(SkyboxModule module, IModBehaviour mod)
{
NHLogger.Log("Building Skybox");
BuildSkySphere(module, mod);
}
- public static GameObject BuildSkySphere(StarSystemConfig.SkyboxModule module, IModBehaviour mod)
+ public static GameObject BuildSkySphere(SkyboxModule module, IModBehaviour mod)
{
var skybox = SearchUtilities.Find("Skybox");
diff --git a/NewHorizons/External/Configs/StarSystemConfig.cs b/NewHorizons/External/Configs/StarSystemConfig.cs
index 08d0d968..6a1ba402 100644
--- a/NewHorizons/External/Configs/StarSystemConfig.cs
+++ b/NewHorizons/External/Configs/StarSystemConfig.cs
@@ -175,51 +175,6 @@ namespace NewHorizons.External.Configs
public int[] z;
}
- [JsonObject]
- public class SkyboxModule
- {
-
- ///
- /// Whether to destroy the star field around the player
- ///
- public bool destroyStarField;
-
- ///
- /// Whether to use a cube for the skybox instead of a smooth sphere
- ///
- public bool useCube;
-
- ///
- /// Relative filepath to the texture to use for the skybox's positive X direction
- ///
- public string rightPath;
-
- ///
- /// Relative filepath to the texture to use for the skybox's negative X direction
- ///
- public string leftPath;
-
- ///
- /// Relative filepath to the texture to use for the skybox's positive Y direction
- ///
- public string topPath;
-
- ///
- /// Relative filepath to the texture to use for the skybox's negative Y direction
- ///
- public string bottomPath;
-
- ///
- /// Relative filepath to the texture to use for the skybox's positive Z direction
- ///
- public string frontPath;
-
- ///
- /// Relative filepath to the texture to use for the skybox's negative Z direction
- ///
- public string backPath;
- }
-
[JsonObject]
public class GlobalMusicModule
{
diff --git a/NewHorizons/External/Modules/SkyboxModule.cs b/NewHorizons/External/Modules/SkyboxModule.cs
new file mode 100644
index 00000000..b9f27f13
--- /dev/null
+++ b/NewHorizons/External/Modules/SkyboxModule.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+
+namespace NewHorizons.External.Modules
+{
+ [JsonObject]
+ public class SkyboxModule
+ {
+ ///
+ /// Whether to destroy the star field around the player
+ ///
+ public bool destroyStarField;
+
+ ///
+ /// Whether to use a cube for the skybox instead of a smooth sphere
+ ///
+ public bool useCube;
+
+ ///
+ /// Relative filepath to the texture to use for the skybox's positive X direction
+ ///
+ public string rightPath;
+
+ ///
+ /// Relative filepath to the texture to use for the skybox's negative X direction
+ ///
+ public string leftPath;
+
+ ///
+ /// Relative filepath to the texture to use for the skybox's positive Y direction
+ ///
+ public string topPath;
+
+ ///
+ /// Relative filepath to the texture to use for the skybox's negative Y direction
+ ///
+ public string bottomPath;
+
+ ///
+ /// Relative filepath to the texture to use for the skybox's positive Z direction
+ ///
+ public string frontPath;
+
+ ///
+ /// Relative filepath to the texture to use for the skybox's negative Z direction
+ ///
+ public string backPath;
+ }
+}