#include <Weather.h>
Public Member Functions | |
void | ApplyWeather (const FWeatherParameters &WeatherParameters) |
Update the weather parameters and notifies it to the blueprint's event. More... | |
AWeather (const FObjectInitializer &ObjectInitializer) | |
const FWeatherParameters & | GetCurrentWeather () const |
Returns the current WeatherParameters. More... | |
const bool & | GetDayNightCycle () const |
Returns whether the day night cycle is active (automatic on/off switch when changin to night mode) More... | |
void | NotifyWeather () |
Notifing the weather to the blueprint's event. More... | |
void | SetDayNightCycle (const bool &active) |
Update the day night cycle. More... | |
void | SetWeather (const FWeatherParameters &WeatherParameters) |
Update the weather parameters without notifing it to the blueprint's event. More... | |
Protected Member Functions | |
void | RefreshWeather (const FWeatherParameters &WeatherParameters) |
Private Attributes | |
bool | DayNightCycle = true |
FWeatherParameters | Weather |
AWeather::AWeather | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 10 of file Weather.cpp.
void AWeather::ApplyWeather | ( | const FWeatherParameters & | WeatherParameters | ) |
Update the weather parameters and notifies it to the blueprint's event.
Definition at line 17 of file Weather.cpp.
References FWeatherParameters::Cloudiness, FWeatherParameters::FogDensity, FWeatherParameters::FogDistance, FWeatherParameters::FogFalloff, FWeatherParameters::MieScatteringScale, FWeatherParameters::Precipitation, FWeatherParameters::PrecipitationDeposits, FWeatherParameters::RayleighScatteringScale, RefreshWeather(), FWeatherParameters::ScatteringIntensity, SetWeather(), FWeatherParameters::SunAltitudeAngle, FWeatherParameters::SunAzimuthAngle, Weather, FWeatherParameters::Wetness, and FWeatherParameters::WindIntensity.
Referenced by ACarlaGameModeBase::BeginPlay().
|
inline |
|
inline |
void AWeather::NotifyWeather | ( | ) |
Notifing the weather to the blueprint's event.
Definition at line 42 of file Weather.cpp.
References RefreshWeather(), and Weather.
Referenced by ASceneCaptureSensor::BeginPlay().
|
protected |
void AWeather::SetDayNightCycle | ( | const bool & | active | ) |
void AWeather::SetWeather | ( | const FWeatherParameters & | WeatherParameters | ) |
Update the weather parameters without notifing it to the blueprint's event.
Definition at line 48 of file Weather.cpp.
References Weather.
Referenced by ApplyWeather().
|
private |
Definition at line 63 of file Weather.h.
Referenced by SetDayNightCycle().
|
private |
Definition at line 60 of file Weather.h.
Referenced by ApplyWeather(), NotifyWeather(), and SetWeather().