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

◆ RefreshFireState()

void RefreshFireState ( )
protected

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

1053 {
1054 float temperature = GetTemperature();
1055
1056 //if it's burning
1057 if (IsBurning())
1058 {
1059 //Start fire
1060 if (temperature <= PARAM_MIN_FIRE_TEMPERATURE)
1061 {
1062 if (GetFireState() != FireplaceFireState.START_FIRE)
1063 {
1064 SetFireState(FireplaceFireState.START_FIRE);
1065 }
1066 }
1067 //Small fire
1068 else if (temperature <= PARAM_SMALL_FIRE_TEMPERATURE)
1069 {
1070 if (GetFireState() != FireplaceFireState.SMALL_FIRE)
1071 {
1072 SetFireState(FireplaceFireState.SMALL_FIRE);
1073 }
1074 }
1075 //Normal fire
1076 else if (temperature > PARAM_SMALL_FIRE_TEMPERATURE)
1077 {
1078 if (GetFireState() != FireplaceFireState.NORMAL_FIRE)
1079 {
1080 SetFireState(FireplaceFireState.NORMAL_FIRE);
1081 }
1082 }
1083 }
1084 }
void SetFireState(FireplaceFireState state)
Определения FireplaceBase.c:1711
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:1619
int GetFireState()
Определения FireplaceBase.c:1705
FireplaceFireState
Определения FireplaceBase.c:2

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

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