Show / Hide Table of Contents

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
Namespace: Eco.Shared.Utils
Assembly: Eco.Shared.dll
Syntax
public sealed class Config : ValueType

Properties

InputHalflife

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

InputMin

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
Type Name Description
LocString input
LocString output
Returns
Type Description
LocString

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾