mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Runtime.Serialization;
|
|
using NewHorizons.Utility;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace NewHorizons.External.Modules
|
|
{
|
|
[JsonObject]
|
|
public class ReferenceFrameModule
|
|
{
|
|
/// <summary>
|
|
/// Allows the object to be targeted.
|
|
/// </summary>
|
|
[DefaultValue(true)] public bool enabled = true;
|
|
|
|
/// <summary>
|
|
/// Stop the object from being targeted on the map.
|
|
/// </summary>
|
|
public bool hideInMap;
|
|
|
|
/// <summary>
|
|
/// Radius of the brackets that show up when you target this. Defaults to the sphere of influence.
|
|
/// </summary>
|
|
[DefaultValue(-1)] public float bracketRadius = -1;
|
|
|
|
/// <summary>
|
|
/// If it should be targetable even when super close.
|
|
/// </summary>
|
|
public bool targetWhenClose;
|
|
|
|
/// <summary>
|
|
/// The maximum distance that the reference frame can be targeted from. Defaults to 100km and cannot be greater than that.
|
|
/// </summary>
|
|
public float maxTargetDistance; // If it's less than or equal to zero the game makes it 100km
|
|
|
|
/// <summary>
|
|
/// The radius of the sphere around the planet which you can click on to target it. Defaults to twice the sphere of influence.
|
|
/// </summary>
|
|
public float targetColliderRadius;
|
|
}
|
|
} |