A class in Root.Township, the global namespace.
Asset with the stats that affect player movement speed. Used by LocomotionController.
Constructors
| Member | What it is |
|---|
LocomotionStatSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private StatDefinition crippleStat | Backing field for CrippleStat. |
private AnimationCurve crippleValueToSpeedModifier | Curve from the cripple stat's fraction (0 to 1) to a speed modifier. |
private StatDefinition speedStat | Backing field for SpeedStat. |
Properties
| Member | What it is |
|---|
StatDefinition CrippleStat { get; } | The stat that slows the player as it changes. |
StatDefinition SpeedStat { get; } | The movement speed stat. |
Methods
| Member | What it is |
|---|
float GetCrippleValue(Stat stat) | Returns the speed modifier for a stat, from a curve over its value divided by its maximum. |
Used in
Members of other types that take, return or hold a LocomotionStatSettings: