added config definitions for bramble nodes and dimensions

This commit is contained in:
FreezeDriedMangoes 2022-06-29 12:26:03 -04:00
parent c65600ab1f
commit d7b7e3226c
2 changed files with 80 additions and 0 deletions

View File

@ -30,6 +30,11 @@ namespace NewHorizons.External.Configs
/// </summary> /// </summary>
public BaseModule Base; public BaseModule Base;
/// <summary>
/// Add bramble nodes to this planet and/or make this planet a bramble dimension
/// </summary>
public BrambleModule Bramble;
/// <summary> /// <summary>
/// Set to a higher number if you wish for this body to be built sooner /// Set to a higher number if you wish for this body to be built sooner
/// </summary> /// </summary>

View File

@ -0,0 +1,75 @@
using NewHorizons.Utility;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NewHorizons.External.Modules
{
[JsonObject]
public class BrambleModule
{
/// <summary>
/// Defining this value will make this body a bramble dimension. Leave it null to not do that.
/// </summary>
public BrambleDimensionInfo dimension;
/// <summary>
/// Place nodes/seeds that take you to other bramble dimensions
/// </summary>
public BrambleNodeInfo[] nodes;
[JsonObject]
public class BrambleDimensionInfo
{
/// <summary>
/// Defines the inner radius of this dimension. Leave blank for the default of
/// </summary>
public float radius;
/// <summary>
/// The color of the fog inside this dimension. Leave blank for the default yellowish color
/// </summary>
public MColor fogTint;
}
[JsonObject]
public class BrambleNodeInfo
{
/// <summary>
/// The physical position of the node
/// </summary>
public MVector3 position;
/// <summary>
/// The physical rotation of the node
/// </summary>
public MVector3 rotation;
/// <summary>
/// The name of the planet that hosts the dimension this node links to
/// </summary>
public string linksTo;
/// <summary>
/// Set this to true to make this node a seed instead of a node the player can enter
/// </summary>
public bool seed;
/// <summary>
/// The color of the fog inside the node. Leave blank for the default yellowish color
/// </summary>
public MColor fogTint;
/// <summary>
/// The color of the shafts of light coming from the entrances to the node. Leave blank for the default yellowish color
/// </summary>
public MColor lightTint;
}
}
}