ClimbingPressureCalculator
A class in Root.Township, Features.Climbing.
Works out how hard one climbing hand pushes against a surface and how much pressure it has left to resist with. One per hand, built with the other hand for reference.
- Listed in ATT, Features and other game namespaces
Constructors
| Member | What it is |
|---|---|
ClimbingPressureCalculator(ClimbingSettings settings, ClimbingHand thisHand, ClimbingHand otherHand) | Creates a ClimbingPressureCalculator from settings, thisHand and otherHand. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private ClimbingHand otherHand | The opposite climbing hand. |
private float pressureDirectionPower | Direction factor from the last pressure calculation, reused when resisting. |
private float remainingPressure | Backing field for RemainingPressure. |
private ClimbingSettings settings | Climbing settings that give the per-hand pressure limits. |
private ClimbingHand thisHand | The climbing hand this calculator is for. |
Properties
| Member | What it is |
|---|---|
float RemainingPressure { get; } | Pressure left after the last GetCurrentPressure call, including the extra resist pressure while climbing. |
Methods
Used in
Members of other types that take, return or hold a ClimbingPressureCalculator: