Skip to main content

BodyTypeSettings

A class in Root.Township, Alta.Character.

Per-body-type distances for belt docks and stat bars on a character dummy. Set by the chosen CosmeticBodyType.

Constructors​

MemberWhat it is
BodyTypeSettings()Creates a BodyTypeSettings with default values.

Fields​

3 private and internal fields
MemberWhat it is
private float pouchBeltDocksDistanceRatioBacking field for PouchBeltDocksDistanceRatio.
private float statbarsDistanceRatioBacking field for StatbarsDistanceRatio.
private float toolBeltDocksDistanceRatioBacking field for ToolBeltDocksDistanceRatio.

Properties​

MemberWhat it is
float PouchBeltDocksDistanceRatio { get; set; }Scale for how far the pouch belt docks sit from the body.
float StatbarsDistanceRatio { get; set; }Scale for how far the stat bars sit. Setting it raises OnStatBarDistanceChanged.
float ToolBeltDocksDistanceRatio { get; set; }Scale for how far the tool belt docks sit from the body. Read when the player character sets up its docks.

Events​

MemberWhat it is
event Action<float> OnStatBarDistanceChangedRaised with the new ratio when StatbarsDistanceRatio is set.

Used in​

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