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

◆ StartSandstorm()

void WorldData::StartSandstorm ( float timeToGather)
inlineprotected

Helper function that starts the sandstorm while setting an internal flag that allows WorldData identify the source of the call.

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

478 {
479 // Set instigator flag to identify that this request
480 // is coming from WorldData
481 bool lastStartedByWeather = m_IsSandstormStartedByWeather;
483
484 // In case of a failure make sure to reset the flag
485 // to its original state as this request did not pass
486 if (!m_Weather.GetSandstorm().Start(timeToGather, true))
487 {
488 m_IsSandstormStartedByWeather = lastStartedByWeather;
489 }
490 }
bool m_IsSandstormStartedByWeather
Определения WorldData.c:47
Weather m_Weather
Определения WorldData.c:19

Перекрестные ссылки m_IsSandstormStartedByWeather и m_Weather.

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