class WorldData
Keeps information about currently loaded world, like temperature
Constants 2
const float SPAWN_CHANCE_CHOLERA_DEF = 50const float COLD_AREA_TOOL_DMG_MODIF_DEF = 1Members 42
float m_TemperaturePerHeightReductionModifierdirectly accesible (defined/overriden in Init())
Show 3 more
, NasdaraData.Init(), GetBaseEnvTemperatureAtPosition(), and Init()float m_CloudsTemperatureEffectModifierhow many % of environment temperature can be lowered by clouds
Show 3 more
, GetTemperature(), GetTemperatureComponentValue(), and Init()float m_TemperatureInsideBuildingsModifierShow 1 more
, Init()Show 1 more
, Init()float m_WaterContactTemperatureModifierprotected float SUDDENCHANGE_TIME_MULTIPLIER = 0.2protected float SUDDENCHANGE_LENGTH_MULTIPLIER = 0.4protected float WIND_MAGNITUDE_TIME_MULTIPLIER = 0.1protected float WIND_DIRECTION_TIME_MULTIPLIER = 0.05protected Weather m_WeatherShow 21 more
, ChernarusPlusData.WeatherOnBeforeChange(), EnochData.CalculateVolFog(), EnochData.CalculateWind(), EnochData.Init(), EnochData.WeatherOnBeforeChange(), NasdaraData.CalculateVolFog(), NasdaraData.CalculateWind(), NasdaraData.Init(), NasdaraData.OnSandstormStart(), NasdaraData.OnSandstormStop(), NasdaraData.WeatherOnBeforeChange(), SakhalData.CalculateVolFog(), SakhalData.CalculateWind(), SakhalData.Init(), SakhalData.WeatherOnBeforeChange(), GetSunEffectOnTemperature(), GetTemperature(), GetTemperatureComponentValue(), Init(), StartSandstorm(), and WindEffectTemperatureValue()protected float m_EnvironmentTemperatureShow 2 more
, Init(), and UpdateBaseEnvTemperature()protected bool m_EnTempUpdatedprotected float m_Timerprotected float m_MaxTemps[12]Show 3 more
, SakhalData.Init(), CalcBaseEnvironmentTemperature(), and Init()protected float m_MinTemps[12]Show 3 more
, SakhalData.Init(), CalcBaseEnvironmentTemperature(), and Init()protected float m_Sunrise_JanShow 4 more
, SakhalData.Init(), GetApproxSunriseTime(), GetSunriseTime(), and Init()protected float m_Sunset_JanShow 4 more
, SakhalData.Init(), GetApproxSunsetTime(), GetSunsetTime(), and Init()protected float m_Sunrise_JulShow 4 more
, SakhalData.Init(), GetApproxSunriseTime(), GetSunriseTime(), and Init()protected float m_Sunset_JulShow 4 more
, SakhalData.Init(), GetApproxSunsetTime(), GetSunsetTime(), and Init()protected int m_ShortestDayOfYear = 1protected int m_LongestDayOfYear = 1Where we should fire from. On Init set the relevant data
protected bool m_Pollutionprotected ref CatchYieldBank m_YieldBankShow 3 more
, CreateYieldBank(), GetCatchYieldBank(), and InitYieldBank()protected ref WorldDataWeatherSettings m_WeatherDefaultSettingsShow 18 more
, ChernarusPlusData.SetupWeatherSettings(), ChernarusPlusData.WeatherOnBeforeChange(), EnochData.CalculateVolFog(), EnochData.CalculateWind(), EnochData.Init(), EnochData.SetupWeatherSettings(), EnochData.WeatherOnBeforeChange(), NasdaraData.CalculateWind(), NasdaraData.Init(), NasdaraData.OnSandstormStart(), NasdaraData.SetupWeatherSettings(), NasdaraData.WeatherOnBeforeChange(), SakhalData.Init(), SakhalData.SetupWeatherSettings(), SakhalData.WeatherOnBeforeChange(), GetSunEffectOnTemperature(), Init(), and SetupWeatherSettings()protected ref WorldDataLiquidSettings m_LiquidSettingsprotected ref DustEffectsSettings m_DustEffectsSettingsprotected ref TStringArray m_DefaultPlayerRestrictedAreasprotected int m_BadWeatherChanceweather related
protected int m_ClearWeatherChanceprotected bool m_IsSuddenChangeprotected float m_WorldWindCoefShow 2 more
, GetWindCoef(), and Init()protected bool m_IsSandstormprotected bool m_IsSandstormStartedByWeatherprotected float m_UniversalTemperatureSourceCapModifierShow 3 more
, SakhalData.Init(), GetUniversalTemperatureSourceCapModifier(), and Init()protected int m_SameWeatherCnt = 0protected int m_StepValue = 5protected int m_Chance = 50protected int m_ChoosenWeather = 1protected int m_LastWeather = 0Methods 45
void Init()Show 25 more
, SetupWeatherSettings(), m_BadWeatherChance, WorldDataWeatherSettings.m_BadWeatherChance, m_ClearWeatherChance, WorldDataWeatherSettings.m_ClearWeatherChance, m_CloudsTemperatureEffectModifier, m_DefaultPlayerRestrictedAreas, m_EnTempUpdated, m_EnvironmentTemperature, m_MaxTemps, m_MinTemps, m_Pollution, m_Sunrise_Jan, m_Sunrise_Jul, m_Sunset_Jan, m_Sunset_Jul, m_TemperatureInsideBuildingsModifier, m_TemperaturePerHeightReductionModifier, m_TemperatureUnderSunModifier, m_Timer, m_UniversalTemperatureSourceCapModifier, m_WaterContactTemperatureModifier, m_Weather, m_WeatherDefaultSettings, and m_WorldWindCoefShow 2 more
, SakhalData.Init(), and WorldData()int GetDaytime()Show 4 more
, GetApproxSunsetTime(), Math.Lerp(), m_MaxTemps, and m_MinTempsvoid UpdateBaseEnvTemperature(float timeslice)Show 3 more
, m_EnTempUpdated, m_EnvironmentTemperature, and m_TimerUpdates *local* weather effects.
weather- Weather instance
timeslice- Time delta since last update
Returns the desired snowflake scale based on weather simulation state.
weather- Weather instance
Show 4 more
, Weather.GetWindMaximumSpeed(), Weather.GetWindSpeed(), Math.InverseLerp(), and Math.Lerp()float GetBaseEnvTemperature()Show 4 more
, map.Get(), m_EnvironmentTemperature, m_LiquidSettings, and WorldDataLiquidSettings.m_Temperaturesbool WeatherOnBeforeChange(EWeatherPhenomenon type, float actual, float change, float time)float GetColdAreaToolDamageModifier()int GetPollution()float GetWindCoef()float GetUniversalTemperatureSourceCapModifier()float GetTemperature(Object object, EEnvironmentTemperatureComponent properties = EEnvironmentTemperatureComponent.BASE)Return actual temperature of environment based on provided parameters
object- Reference to object that is used mainly for sea height related calculation
properties- Flag made of EEnvironmentTemperatureComponent which will influence the resulting value of temperature based on combination of the parts
float GetTemperatureComponentValue(float temperatureIn, EEnvironmentTemperatureComponent properties = 0)Return value of queried EEnvironmentTemperatureComponent which can be used in future calculation(s)
temperature- Base temperature which will be used in component calculation (currently WIND only)
properties- Flag made of EEnvironmentTemperatureComponent which will influence the resulting value of temperature based on combination of the parts
Returns number of day in current year (eg. 1 - 365)
Returns sunrise time for passed day
Returns sunset time for passed day
protected void CreateYieldBank()protected void InitYieldBank()override this to properly register world-specific yields
Show 1 more
, m_YieldBankShow 1 more
, WorldData()protected void SetupWeatherSettings()Show 1 more
, m_WeatherDefaultSettingsShow 2 more
, SakhalData.SetupWeatherSettings(), and Init()protected void SetupLiquidTemperatures()protected void SetupDustEffects()CatchYieldBank GetCatchYieldBank()TStringArray GetDefaultPRAPaths()protected void StartSandstorm(float timeToGather)Helper function that starts the sandstorm while setting an internal flag that allows WorldData identify the source of the call.
Show 1 more
, m_Weathersealed void WeatherSandstormStart(bool continuedSession)Event propagated from SandstormController::OnStart raised when the sandstorm starts and begins fading in to its target magnitude.
sealed void WeatherSandstormStop(bool calledFromWeather)Event propagated from SandstormController::OnStop raised when the sandstorm fades out and terminates.
protected void OnSandstormStart(bool isStartedByWeather)isStartedByWeather- Whether the start is instigated by WorldData (true) or external factors (false).
See also: See, `WeatherSandstormStart`, instead.
protected void OnSandstormStop(bool calledFromWeather)See also: See, `WeatherSandstormStop`, instead.
float GetDayTemperature()float GetNightTemperature()DustEffectsSettings GetDustEffectsSettings()