-
Notifications
You must be signed in to change notification settings - Fork 17
TorqueToYieldBolt
Namespace: TommoJProductions.ModApi.Attachable
Represents a Torque to yield bolt. When this bolt becomes completely tight, it can be tightened slightly more, - The bolt just rotates after being completly tight. It can break and need repairing if torqued too much. It can become loose over time if not torqued correctly.
public class TorqueToYieldBolt : Bolt
Inheritance Object → Bolt → TorqueToYieldBolt
if , scrolling on this bolt will do nothing.
public bool ignoreInput;
The base bolt settings for this bolt
public virtual BoltSettings settings { get; }
Bolt specific settings. derived from BoltSettings.
public TorqueToYieldBoltSettings torqueToYieldBolt { get; }
The bolt waiting value. when true, the bolt has been tightened/loosened and is waiting for x amount of time base on the tool used before continuing to update the model transform, play the bolt audio, invoke events bolt tighten/loosen events.
public virtual bool wait { get; set; }
The last scroll input.
public virtual int scrollInput { get; set; }
The bolts tightness (0 - 8)
public virtual int tightness { get; set; }
Returns true if this bolt is tight.
public virtual bool isTight { get; }
Returns true if this bolt is loose.
public virtual bool isLoose { get; }
The start position of the bolt.
public virtual Vector3 startPosition { get; set; }
Vector3
The start rotation of the bolt.
public virtual Vector3 startEulerAngles { get; set; }
Vector3
The position vector step (direction * step). How much and in what direction does the bolt move per tightness step.
public virtual Vector3 positionVectorStep { get; }
Vector3
The rotation vector (direction * step). How much and in what direction does the bolt rotate per tightness step.
public virtual Vector3 rotationVectorStep { get; }
Vector3
The max tightness of the bolt.
public virtual int maxTightness { get; }
The Bolts ID
public string boltID { get; }
The bolt model
public GameObject model { get; }
GameObject
The callback
public BoltCallback callback { get; }
the bolt func routine.
public Coroutine routine { get; }
Coroutine
public TorqueToYieldBolt()
Represents the post onscrew event. occurs when this bolt is screwed in or out. called after all other bolt events are called. Bolt.onLoose, Bolt.onTight.
public event Action onScrew;
Represents the on loose event. occurs when this bolt becomes loose (screwed to loose state)
public event Action onLoose;
Represents the on tight event. occurs when this bolt becomes tight (screwed to tight state)
public event Action onTight;
Represents the out loose event. occurs when this bolt was loose but was screw in (screwed from loose state)
public event Action outLoose;
Represents the out tight event. occurs when this bolt was tight but was screw out. (screwed from tight state)
public event Action outTight;