Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
IAnalyticTemperatureModifier Interface Reference

This interface is used to modify the final temps applied to a part's skin and internals. The idea is that there is at most one per part. Analytic will use the Set() to tell the module what temps it plans to set, and what the calculated analytic temp was. Analytic will then set the part's skin and internal temp based on the Gets. More...

Public Member Functions

double GetInternalTemperature (out bool lerp)
 Analytic will set the part's internal temperature to this (guaranteed to be called after SetAnalyticTemperature). More...
 
double GetSkinTemperature (out bool lerp)
 Analytic will set the part's skin temperature to this (guaranteed to be called after SetAnalyticTemperature). More...
 
void SetAnalyticTemperature (FlightIntegrator fi, double analyticTemp, double toBeInternal, double toBeSkin)
 Analytic will run this once per part per tick, telling the part what the analytic temperature is and what it plans to set the internal and skin temperatures to. It is up to the implementor of this method to be prepared for the following Get calls and do whatever resource subtraction is involved in procuring for the part temperatures other than the toBe temperatures. More...
 

Detailed Description

This interface is used to modify the final temps applied to a part's skin and internals. The idea is that there is at most one per part. Analytic will use the Set() to tell the module what temps it plans to set, and what the calculated analytic temp was. Analytic will then set the part's skin and internal temp based on the Gets.

Member Function Documentation

double IAnalyticTemperatureModifier.GetInternalTemperature ( out bool  lerp)

Analytic will set the part's internal temperature to this (guaranteed to be called after SetAnalyticTemperature).

Parameters
lerpif false temp is set immediately, else normal lerp is used.
Returns
double IAnalyticTemperatureModifier.GetSkinTemperature ( out bool  lerp)

Analytic will set the part's skin temperature to this (guaranteed to be called after SetAnalyticTemperature).

Parameters
lerpif false temp is set immediately, else normal lerp is used.
Returns
void IAnalyticTemperatureModifier.SetAnalyticTemperature ( FlightIntegrator  fi,
double  analyticTemp,
double  toBeInternal,
double  toBeSkin 
)

Analytic will run this once per part per tick, telling the part what the analytic temperature is and what it plans to set the internal and skin temperatures to. It is up to the implementor of this method to be prepared for the following Get calls and do whatever resource subtraction is involved in procuring for the part temperatures other than the toBe temperatures.

Parameters
fiThe FlightIntegrator for the vessel
analyticTemp
toBeInternal
toBeSkin

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