Class LimitMapper.Config
Functions for 'soft capping' values. That is, making them approach a 'soft cap' linearly as an input changes, then approach a 'hard cap' as a limit,
never actually reaching it. This is used in various places in order to allow for unlimited improvement as a value goes up, but at diminishing returns.
Inheritance
System.Object
LimitMapper.Config
Assembly: Eco.Shared.dll
Syntax
public sealed class Config : ValueType
Properties
Declaration
[LocDescription("After the amount increases this much, it will increase the output half the remaining distance to the limit.")]
public float InputHalflife { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
[LocDescription("Start the mapping at this value.")]
public float InputMin { get; set; }
Property Value
Type |
Description |
System.Single |
|
OutputAtMin
Declaration
[LocDescription("The output yielded when input is at or below 'InputMin'.")]
public float OutputAtMin { get; set; }
Property Value
Type |
Description |
System.Single |
|
OutputLimit
Declaration
[LocDescription("When the input value goes 'InputHalfLife' past 'InputSoftCap', the output will reach 50% towards this value. This is the value it will approach but never reach..")]
public float OutputLimit { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
Describe(LocString, LocString)
Describes the values of this config
Declaration
public LocString Describe(LocString input, LocString output)
Parameters
Returns
Extension Methods