Ben C cbd0109ea0 Merge branch 'dev' into schema-integration
# Conflicts:
#	NewHorizons/Builder/Body/FunnelBuilder.cs
#	NewHorizons/External/Configs/PlanetConfig.cs
#	NewHorizons/External/Configs/StarSystemConfig.cs
#	NewHorizons/External/Modules/AsteroidBeltModule.cs
#	NewHorizons/External/Modules/AtmosphereModule.cs
#	NewHorizons/External/Modules/BaseModule.cs
#	NewHorizons/External/Modules/OrbitModule.cs
#	NewHorizons/External/Modules/PropModule.cs
#	NewHorizons/External/Modules/ShipLogModule.cs
#	NewHorizons/External/Modules/SignalModule.cs
#	NewHorizons/External/Modules/VariableSize/FunnelModule.cs
#	NewHorizons/External/Modules/VariableSize/RingModule.cs
#	NewHorizons/External/Modules/VariableSize/SingularityModule.cs
#	NewHorizons/External/Modules/VariableSize/StarModule.cs
#	NewHorizons/Main.cs
2022-05-22 13:24:02 -04:00

56 lines
1.5 KiB
C#

using NewHorizons.Utility;
using Newtonsoft.Json;
using System.ComponentModel;
using UnityEngine.Internal;
namespace NewHorizons.External.Modules.VariableSize
{
[JsonObject]
public class StarModule : VariableSizeModule
{
/// <summary>
/// Radius of the star.
/// </summary>
[DefaultValue(2000f)]
public float Size = 2000f;
/// <summary>
/// Colour of the star.
/// </summary>
public MColor Tint;
/// <summary>
/// Colour of the star at the end of its life.
/// </summary>
public MColor EndTint;
/// <summary>
/// The tint of the supernova this star creates when it dies.
/// </summary>
public MColor SupernovaTint;
/// <summary>
/// Colour of the light given off.
/// </summary>
public MColor LightTint;
/// <summary>
/// Relative strength of the light compared to the sun.
/// </summary>
[DefaultValue(1f)]
public float SolarLuminosity = 1f;
/// <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>
/// Should this star explode after 22 minutes?
/// </summary>
[DefaultValue(true)]
public bool GoSupernova = true;
}
}