36 lines
1.0 KiB
C#

using NewHorizons.External.SerializableData;
using Newtonsoft.Json;
using System.ComponentModel;
namespace NewHorizons.External.Modules.VariableSize
{
[JsonObject]
public class WaterModule : VariableSizeModule
{
/// <summary>
/// Size of the water sphere
/// </summary>
public float size;
/// <summary>
/// Density of the water sphere. The higher the density, the harder it is to go through this fluid.
/// </summary>
[DefaultValue(30f)] public float density = 30f;
/// <summary>
/// Buoyancy density of the water sphere
/// </summary>
[DefaultValue(1.1f)] public float buoyancy = 1.1f;
/// <summary>
/// Tint of the water
/// </summary>
public MColor tint;
/// <summary>
/// Will the ship automatically try to orient itself to face upwards while in this volume?
/// </summary>
[DefaultValue(true)]
public bool allowShipAutoroll = true;
}
}