DayZ 1.24
Loading...
Searching...
No Matches
UniversalTemperatureSourceLambdaFireplace Class Reference
Inheritance diagram for UniversalTemperatureSourceLambdaFireplace:
[legend]
Collaboration diagram for UniversalTemperatureSourceLambdaFireplace:
[legend]

Private Member Functions

void UniversalTemperatureSourceLambdaFireplace ()
 
void SetSmallFireplaceTemperatureMax (int value)
 
void SetNormalFireplaceTemperatureMax (int value)
 
void SetFuelCount (int value)
 
void SetCurrentTemperature (float temperature)
 
override void Execute (UniversalTemperatureSourceSettings pSettings, UniversalTemperatureSourceResult resultValues)
 

Private Attributes

int m_FuelCount
 
int m_SmallFireplaceTemperatureMax
 
int m_NormalFireplaceTemperatureMax
 
float m_Temperature
 

Detailed Description

Definition at line 1 of file UniversalTemperatureSourceLambdaFireplace.c.

Constructor & Destructor Documentation

◆ UniversalTemperatureSourceLambdaFireplace()

Member Function Documentation

◆ Execute()

override void UniversalTemperatureSourceLambdaFireplace::Execute ( UniversalTemperatureSourceSettings pSettings,
UniversalTemperatureSourceResult resultValues )
inlineprivate

set temperature to the item stat

Definition at line 46 of file UniversalTemperatureSourceLambdaFireplace.c.

47 {
48 resultValues.m_Temperature = m_Temperature;
49 //Debug.Log(string.Format("Execute: temperature: %1", resultValues.m_Temperature), "UTS Fireplace");
50
51 if (pSettings.m_AffectStat)
52 {
54 pSettings.m_Parent.SetTemperature(m_Temperature);
55 }
56
58 }
override void DryItemsInVicinity(UniversalTemperatureSourceSettings pSettings)

References UniversalTemperatureSourceLambdaBaseImpl::DryItemsInVicinity(), and m_Temperature.

◆ SetCurrentTemperature()

void UniversalTemperatureSourceLambdaFireplace::SetCurrentTemperature ( float temperature)
inlineprivate

Definition at line 31 of file UniversalTemperatureSourceLambdaFireplace.c.

32 {
33 //no fuel present, temperature should be low but there can be high temperature from previous fuel burning
35 {
37 }
38 else
39 {
41 }
42
44 }
Definition EnMath.c:7
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'.

References Math::Clamp(), m_FuelCount, m_NormalFireplaceTemperatureMax, m_SmallFireplaceTemperatureMax, and m_Temperature.

◆ SetFuelCount()

void UniversalTemperatureSourceLambdaFireplace::SetFuelCount ( int value)
inlineprivate

Definition at line 26 of file UniversalTemperatureSourceLambdaFireplace.c.

27 {
29 }

References m_FuelCount.

◆ SetNormalFireplaceTemperatureMax()

void UniversalTemperatureSourceLambdaFireplace::SetNormalFireplaceTemperatureMax ( int value)
inlineprivate

◆ SetSmallFireplaceTemperatureMax()

void UniversalTemperatureSourceLambdaFireplace::SetSmallFireplaceTemperatureMax ( int value)
inlineprivate

Member Data Documentation

◆ m_FuelCount

int UniversalTemperatureSourceLambdaFireplace::m_FuelCount
private

◆ m_NormalFireplaceTemperatureMax

int UniversalTemperatureSourceLambdaFireplace::m_NormalFireplaceTemperatureMax
private

◆ m_SmallFireplaceTemperatureMax

int UniversalTemperatureSourceLambdaFireplace::m_SmallFireplaceTemperatureMax
private

◆ m_Temperature

float UniversalTemperatureSourceLambdaFireplace::m_Temperature
private

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