Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
VesselValues.PartValuesComparison< T > Class Template Reference

Public Member Functions

 PartValuesComparison (Vessel host, T defaultValue, Func< T, T, bool > comparison, Func< Part, T > valueAccessor)
 
void ResetValueCache ()
 Reset the cached value for this comparison More...
 

Public Attributes

defaultValue
 

Properties

value [get]
 The output value of this comparison operation. More...
 
valueUncached [get]
 The output value of this comparison operation. More...
 

Constructor & Destructor Documentation

VesselValues.PartValuesComparison< T >.PartValuesComparison ( Vessel  host,
defaultValue,
Func< T, T, bool >  comparison,
Func< Part, T >  valueAccessor 
)
inline

Member Function Documentation

void VesselValues.PartValuesComparison< T >.ResetValueCache ( )
inline

Reset the cached value for this comparison

Member Data Documentation

T VesselValues.PartValuesComparison< T >.defaultValue

Property Documentation

T VesselValues.PartValuesComparison< T >.value
get

The output value of this comparison operation.

Note: This is only calculated once per frame, and the result cached till the next frame. Use valueUncached and/or ResetValueCache for immediate values

T VesselValues.PartValuesComparison< T >.valueUncached
get

The output value of this comparison operation.

Use value for performant once a frame values


The documentation for this class was generated from the following file: