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

◆ RefreshFireState()

void RefreshFireState ( )
protected

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

1073 {
1074 float temperature = GetTemperature();
1075
1076 //if it's burning
1077 if (IsBurning())
1078 {
1079 //Start fire
1080 if (temperature <= PARAM_MIN_FIRE_TEMPERATURE)
1081 {
1082 if (GetFireState() != FireplaceFireState.START_FIRE)
1083 {
1084 SetFireState(FireplaceFireState.START_FIRE);
1085 }
1086 }
1087 //Small fire
1088 else if (temperature <= PARAM_SMALL_FIRE_TEMPERATURE)
1089 {
1090 if (GetFireState() != FireplaceFireState.SMALL_FIRE)
1091 {
1092 SetFireState(FireplaceFireState.SMALL_FIRE);
1093 }
1094 }
1095 //Normal fire
1096 else if (temperature > PARAM_SMALL_FIRE_TEMPERATURE)
1097 {
1098 if (GetFireState() != FireplaceFireState.NORMAL_FIRE)
1099 {
1100 SetFireState(FireplaceFireState.NORMAL_FIRE);
1101 }
1102 }
1103 }
1104 }
void SetFireState(FireplaceFireState state)
Определения FireplaceBase.c:1737
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:1639
int GetFireState()
Определения FireplaceBase.c:1731
FireplaceFireState
Определения FireplaceBase.c:2

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

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