Skip to main content

AccessibleDocks.DockSetup

A private class in Root.Township, Alta.Character. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

One body dock handled by AccessibleDocks: its normal position and the position it moves to in accessible mode, plus a number label that turns to face the centre.

Constructors​

MemberWhat it is
DockSetup()Creates an AccessibleDocks.DockSetup with default values.

Fields​

MemberWhat it is
Quaternion accessibleNumberRotationLocal rotation of the number label in accessible mode, facing the centre.
Vector3 accessiblePositionLocal position of the dock in accessible mode.
Transform dockThe dock transform that is moved.
Transform numberThe number label transform that is turned.
Quaternion originalNumberRotationThe number label's normal local rotation.
Vector3 originalPositionThe dock's normal local position.

Methods​

MemberWhat it is
void SetupNumber(Vector3 centerPosition)Saves the dock's current position and number rotation as the originals, and aims the number at the given centre for accessible mode.
void Update(bool isAccessible, float lerp, float rotationLerp)Moves the dock and turns its number towards the target for the mode. With speeds given it steps towards them, without it snaps.
void Update(bool isAccessible)Moves the dock and turns its number towards the target for the mode. With speeds given it steps towards them, without it snaps.
1 private and internal method
MemberWhat it is
private void GetTargetPosition(bool isAccessible, out Vector3 targetPosition, out Quaternion targetNumberRotation)Picks the dock position and number rotation for accessible or normal mode.

Used in​

Members of other types that take, return or hold a DockSetup: