DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл TemperatureData.c

См. исходные тексты.

Структуры данных

class  TemperatureData
 

Функции

class TemperatureData InterpolateTemperatureDelta (float start)
 
void TemperatureData (float val, ETemperatureAccessTypes accessType=ETemperatureAccessTypes.ACCESS_UNKNOWN, float time=-1, float timeCoef=1, float heatPermCoef=1)
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 

Переменные

ETemperatureAccessTypes m_AccessType
 
float m_Value
 
float m_AdjustedTarget
 
float m_UpdateTimeInfo
 
float m_UpdateTimeCoef
 
float m_HeatPermeabilityCoef
 
float m_InterpolatedStepSize
 
float m_InterpolatedFraction
 

Функции

◆ Init()

void Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

◆ InterpolateTemperatureDelta()

class TemperatureData InterpolateTemperatureDelta ( float start)
34 {
36
37 float target = m_Value;
39
40 if (start != target)
41 {
45
46 float coef = m_UpdateTimeCoef;
48 if (start > target)
49 {
52 }
54 absBaseTempChange *= coef;
55
57 }
58 }
float m_InterpolatedStepSize
Definition TemperatureData.c:41
float m_InterpolatedFraction
Definition TemperatureData.c:42
float m_AdjustedTarget
Definition TemperatureData.c:36
float m_HeatPermeabilityCoef
Definition TemperatureData.c:39
float m_UpdateTimeInfo
Definition TemperatureData.c:37
float m_UpdateTimeCoef
Definition TemperatureData.c:38
float m_Value
Definition TemperatureData.c:35
Definition constants.c:638
Definition EnMath.c:7
Definition EntityAI.c:95
const float TEMP_COEF_COOLING_GLOBAL
Definition constants.c:908
static const float TEMPERATURE_INTERPOLATION_THRESHOLD_MAX_ABS
Definition constants.c:885
static const float TEMPERATURE_INTERPOLATION_THRESHOLD_MIN_ABS
Definition constants.c:884
static const float TEMPERATURE_RATE_MAX_ABS
Definition constants.c:882
static const float TEMPERATURE_RATE_AVERAGE_ABS
Definition constants.c:881
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.

◆ TemperatureData()

void TemperatureData ( float val,
ETemperatureAccessTypes accessType = ETemperatureAccessTypes.ACCESS_UNKNOWN,
float time = -1,
float timeCoef = 1,
float heatPermCoef = 1 )

Перекрестные ссылки GameConstants::TEMP_COEF_COOLING_GLOBAL.

Используется в Entity::SetTemperature().

Переменные

◆ m_AccessType

◆ m_AdjustedTarget

float m_AdjustedTarget

◆ m_HeatPermeabilityCoef

float m_HeatPermeabilityCoef

◆ m_InterpolatedFraction

float m_InterpolatedFraction

◆ m_InterpolatedStepSize

float m_InterpolatedStepSize

◆ m_UpdateTimeCoef

float m_UpdateTimeCoef

◆ m_UpdateTimeInfo

float m_UpdateTimeInfo

◆ m_Value

float m_Value