DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ RefreshFireState()

void RefreshFireState ( )
protected

См. определение в файле FireplaceBase.c строка 1056

1057 {
1058 float temperature = GetTemperature();
1059
1060 //if it's burning
1061 if (IsBurning())
1062 {
1063 //Start fire
1064 if (temperature <= PARAM_MIN_FIRE_TEMPERATURE)
1065 {
1066 if (GetFireState() != FireplaceFireState.START_FIRE)
1067 {
1068 SetFireState(FireplaceFireState.START_FIRE);
1069 }
1070 }
1071 //Small fire
1072 else if (temperature <= PARAM_SMALL_FIRE_TEMPERATURE)
1073 {
1074 if (GetFireState() != FireplaceFireState.SMALL_FIRE)
1075 {
1076 SetFireState(FireplaceFireState.SMALL_FIRE);
1077 }
1078 }
1079 //Normal fire
1080 else if (temperature > PARAM_SMALL_FIRE_TEMPERATURE)
1081 {
1082 if (GetFireState() != FireplaceFireState.NORMAL_FIRE)
1083 {
1084 SetFireState(FireplaceFireState.NORMAL_FIRE);
1085 }
1086 }
1087 }
1088 }
float GetTemperature()
Определения Environment.c:500
void SetFireState(FireplaceFireState state)
Определения FireplaceBase.c:1721
const float PARAM_MIN_FIRE_TEMPERATURE
maximum fireplace temperature of an outdoor fire (degree Celsius)
Определения FireplaceBase.c:44
const float PARAM_SMALL_FIRE_TEMPERATURE
Определения FireplaceBase.c:41
bool IsBurning()
Определения FireplaceBase.c:1623
int GetFireState()
Определения FireplaceBase.c:1715
FireplaceFireState
Определения FireplaceBase.c:2

Перекрестные ссылки GetFireState(), GetTemperature(), IsBurning(), PARAM_MIN_FIRE_TEMPERATURE, PARAM_SMALL_FIRE_TEMPERATURE и SetFireState().

Используется в Heating().