mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using NewHorizons.Utility;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace NewHorizons.External.Modules.VariableSize
|
|
{
|
|
[JsonObject]
|
|
public class StarModule : VariableSizeModule
|
|
{
|
|
/// <summary>
|
|
/// Colour of the star at the end of its life.
|
|
/// </summary>
|
|
public MColor endTint;
|
|
|
|
/// <summary>
|
|
/// Should this star explode after 22 minutes?
|
|
/// </summary>
|
|
[DefaultValue(true)] public bool goSupernova = true;
|
|
|
|
/// <summary>
|
|
/// Should we add a star controller to this body? If you want clouds to work on a binary brown dwarf system, set this to false.
|
|
/// </summary>
|
|
[DefaultValue(true)] public bool hasStarController = true;
|
|
|
|
/// <summary>
|
|
/// The default sun has its own atmosphere that is different from regular planets. If you want that, set this to
|
|
/// `true`.
|
|
/// </summary>
|
|
[DefaultValue(true)] public bool hasAtmosphere = true;
|
|
|
|
/// <summary>
|
|
/// Colour of the light given off. Defaults to yellowish.
|
|
/// </summary>
|
|
public MColor lightTint;
|
|
|
|
/// <summary>
|
|
/// Radius of the star.
|
|
/// </summary>
|
|
[DefaultValue(2000f)] [Range(0f, double.MaxValue)]
|
|
public float size = 2000f;
|
|
|
|
/// <summary>
|
|
/// Relative strength of the light compared to the sun.
|
|
/// </summary>
|
|
[DefaultValue(1f)] [Range(0f, double.MaxValue)]
|
|
public float solarLuminosity = 1f;
|
|
|
|
/// <summary>
|
|
/// The tint of the supernova this star creates when it dies.
|
|
/// </summary>
|
|
public MColor supernovaTint;
|
|
|
|
/// <summary>
|
|
/// Colour of the star.
|
|
/// </summary>
|
|
public MColor tint;
|
|
|
|
/// <summary>
|
|
/// Path to the texture to put as the star ramp. Optional.
|
|
/// </summary>
|
|
public string starRampTexture;
|
|
|
|
/// <summary>
|
|
/// How far the light from the star can reach.
|
|
/// </summary>
|
|
[DefaultValue(50000f)] [Range(0f, double.MaxValue)]
|
|
public float lightRadius = 50000f;
|
|
}
|
|
}
|