Add parentPath and isRelativeToParent

This commit is contained in:
Noah Pilarski 2022-12-24 13:19:12 -05:00
parent fa8b1249e8
commit 56d52bd5cd
2 changed files with 55 additions and 0 deletions

View File

@ -244,6 +244,16 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
[DefaultValue(5f)] public float acceleration = 5f; [DefaultValue(5f)] public float acceleration = 5f;
/// <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> /// <summary>
/// An optional rename of this object /// An optional rename of this object
/// </summary> /// </summary>
@ -293,6 +303,11 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
[DefaultValue(0.7f)] public float volume = 0.7f; [DefaultValue(0.7f)] public float volume = 0.7f;
/// <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> /// <summary>
/// An optional rename of this object /// An optional rename of this object
/// </summary> /// </summary>
@ -365,6 +380,16 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
[DefaultValue("cloud")] public FluidType fluidType = FluidType.Cloud; [DefaultValue("cloud")] public FluidType fluidType = FluidType.Cloud;
/// <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> /// <summary>
/// An optional rename of this object /// An optional rename of this object
/// </summary> /// </summary>
@ -418,6 +443,16 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
public MColor stoneTint; public MColor stoneTint;
/// <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> /// <summary>
/// An optional rename of this object /// An optional rename of this object
/// </summary> /// </summary>
@ -510,6 +545,16 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
public MVector3 position; 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> /// <summary>
/// An optional rename of this object /// An optional rename of this object
/// </summary> /// </summary>

View File

@ -76,6 +76,16 @@ namespace NewHorizons.External.Modules.VariableSize
/// </summary> /// </summary>
[Range(2501f, 3500f)] public int renderQueueOverride = 2985; [Range(2501f, 3500f)] public int renderQueueOverride = 2985;
/// <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> /// <summary>
/// An optional rename of this object /// An optional rename of this object
/// </summary> /// </summary>