mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
|
|
using NewHorizons.External.Modules.SerializableData;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace NewHorizons.External.Modules
|
|
{
|
|
[JsonObject]
|
|
public abstract class GeneralPointPropInfo
|
|
{
|
|
/// <summary>
|
|
/// Position of the object
|
|
/// </summary>
|
|
public MVector3 position;
|
|
|
|
/// <summary>
|
|
/// The relative path from the planet to the parent of this object. Optional (will default to the root sector).
|
|
/// </summary>
|
|
public string parentPath;
|
|
|
|
/// <summary>
|
|
/// Whether the positional and rotational coordinates are relative to parent instead of the root planet object.
|
|
/// </summary>
|
|
public bool isRelativeToParent;
|
|
|
|
/// <summary>
|
|
/// An optional rename of this object
|
|
/// </summary>
|
|
public string rename;
|
|
}
|
|
|
|
[JsonObject]
|
|
public abstract class GeneralPropInfo : GeneralPointPropInfo
|
|
{
|
|
/// <summary>
|
|
/// Rotation of the object
|
|
/// </summary>
|
|
public MVector3 rotation;
|
|
|
|
/// <summary>
|
|
/// Do we try to automatically align this object to stand upright relative to the body's center? Stacks with rotation.
|
|
/// Defaults to true for geysers, tornados, and volcanoes, and false for everything else.
|
|
/// </summary>
|
|
public bool? alignRadial;
|
|
}
|
|
|
|
[JsonObject]
|
|
public abstract class GeneralSolarSystemPropInfo : GeneralPropInfo
|
|
{
|
|
/// <summary>
|
|
/// The name of the planet that will be used with `parentPath`. Must be set if `parentPath` is set.
|
|
/// </summary>
|
|
public string parentBody;
|
|
}
|
|
}
|