Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
WorldData Class Reference

Keeps information about currently loaded world, like temperature. More...

Inheritance diagram for WorldData:
ChernarusPlusData EnochData SakhalData

Protected Member Functions

void WorldData ()
void Init ()
float GetApproxSunriseTime (float monthday)
float GetApproxSunsetTime (float monthday)
int GetDaytime ()
float CalcBaseEnvironmentTemperature (float monthday, float daytime)
void UpdateBaseEnvTemperature (float timeslice)
void UpdateWeatherEffects (Weather weather, float timeslice)
 Updates local weather effects.
float ComputeSnowflakeScale (Weather weather)
 Returns the desired snowflake scale based on weather simulation state.
float GetBaseEnvTemperature ()
float GetBaseEnvTemperatureAtObject (notnull Object object)
float GetBaseEnvTemperatureAtPosition (vector pos)
float GetBaseEnvTemperatureExact (int month, int day, int hour, int minute)
float GetLiquidTypeEnviroTemperature (int liquidType)
bool WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time)
array< vectorGetArtyFiringPos ()
float GetAgentSpawnChance (eAgents agent)
float GetColdAreaToolDamageModifier ()
void BaseTempDebug (int month, int day)
int GetPollution ()
float GetWindCoef ()
float GetUniversalTemperatureSourceCapModifier ()
float GetTemperature (Object object, EEnvironmentTemperatureComponent properties=EEnvironmentTemperatureComponent.BASE)
 Return actual temperature of environment based on provided parameters.
float GetTemperatureComponentValue (float temperatureIn, EEnvironmentTemperatureComponent properties=0)
 Return value of queried EEnvironmentTemperatureComponent which can be used in future calculation(s).
float WindEffectTemperatureValue (float temperatureInput)
void CalculateWind (int newWeather, bool suddenChange, out float magnitude, out float direction)
void CalculateVolFog (float lerpValue, float windMagnitude, float changeTime)
void CreateYieldBank ()
void InitYieldBank ()
 override this to properly register world-specific yields
void SetupWeatherSettings ()
void SetupLiquidTemperatures ()
CatchYieldBank GetCatchYieldBank ()
TStringArray GetDefaultPRAPaths ()
float GetDayTemperature ()
float GetNightTemperature ()

Protected Attributes

float SUDDENCHANGE_TIME_MULTIPLIER = 0.2
float SUDDENCHANGE_LENGTH_MULTIPLIER = 0.4
float WIND_MAGNITUDE_TIME_MULTIPLIER = 0.1
float WIND_DIRECTION_TIME_MULTIPLIER = 0.05
Weather m_Weather
float m_EnvironmentTemperature
bool m_EnTempUpdated
float m_Timer
float m_MaxTemps [12]
float m_MinTemps [12]
float m_Sunrise_Jan
float m_Sunset_Jan
float m_Sunrise_Jul
float m_Sunset_Jul
ref array< vectorm_FiringPos
bool m_Pollution
ref CatchYieldBank m_YieldBank
ref WorldDataWeatherSettings m_WeatherDefaultSettings
ref WorldDataLiquidSettings m_LiquidSettings
ref TStringArray m_DefaultPlayerRestrictedAreas
int m_BadWeatherChance
 weather related
int m_ClearWeatherChance
bool m_IsSuddenChange
float m_WorldWindCoef
float m_UniversalTemperatureSourceCapModifier
int m_SameWeatherCnt = 0
int m_StepValue = 5
int m_Chance = 50
int m_ChoosenWeather = 1
int m_LastWeather = 0
float m_DayTemperature = 10
float m_NightTemperature = 6

Detailed Description

Keeps information about currently loaded world, like temperature.

Definition at line 2 of file worlddata.c.

Constructor & Destructor Documentation

◆ WorldData()

void WorldData::WorldData ( )
protected

Definition at line 50 of file worlddata.c.

Member Function Documentation

◆ BaseTempDebug()

void WorldData::BaseTempDebug ( int month,
int day )
protected

Definition at line 269 of file worlddata.c.

◆ CalcBaseEnvironmentTemperature()

float WorldData::CalcBaseEnvironmentTemperature ( float monthday,
float daytime )
protected

Definition at line 123 of file worlddata.c.

◆ CalculateVolFog()

void WorldData::CalculateVolFog ( float lerpValue,
float windMagnitude,
float changeTime )
protected

◆ CalculateWind()

void WorldData::CalculateWind ( int newWeather,
bool suddenChange,
out float magnitude,
out float direction )
protected

◆ ComputeSnowflakeScale()

float WorldData::ComputeSnowflakeScale ( Weather weather)
protected

Returns the desired snowflake scale based on weather simulation state.

Parameters
weatherWeather instance

Definition at line 195 of file worlddata.c.

◆ CreateYieldBank()

void WorldData::CreateYieldBank ( )
protected

Definition at line 359 of file worlddata.c.

◆ GetAgentSpawnChance()

float WorldData::GetAgentSpawnChance ( eAgents agent)
protected

Definition at line 254 of file worlddata.c.

◆ GetApproxSunriseTime()

float WorldData::GetApproxSunriseTime ( float monthday)
protected

Definition at line 89 of file worlddata.c.

◆ GetApproxSunsetTime()

float WorldData::GetApproxSunsetTime ( float monthday)
protected

Definition at line 96 of file worlddata.c.

◆ GetArtyFiringPos()

array< vector > WorldData::GetArtyFiringPos ( )
protected

Definition at line 248 of file worlddata.c.

◆ GetBaseEnvTemperature()

float WorldData::GetBaseEnvTemperature ( )
protected

Definition at line 207 of file worlddata.c.

◆ GetBaseEnvTemperatureAtObject()

float WorldData::GetBaseEnvTemperatureAtObject ( notnull Object object)
protected

Definition at line 212 of file worlddata.c.

◆ GetBaseEnvTemperatureAtPosition()

float WorldData::GetBaseEnvTemperatureAtPosition ( vector pos)
protected

Definition at line 217 of file worlddata.c.

◆ GetBaseEnvTemperatureExact()

float WorldData::GetBaseEnvTemperatureExact ( int month,
int day,
int hour,
int minute )
protected

Definition at line 224 of file worlddata.c.

◆ GetCatchYieldBank()

CatchYieldBank WorldData::GetCatchYieldBank ( )
protected

Definition at line 388 of file worlddata.c.

◆ GetColdAreaToolDamageModifier()

float WorldData::GetColdAreaToolDamageModifier ( )
protected

Definition at line 263 of file worlddata.c.

◆ GetDayTemperature()

float WorldData::GetDayTemperature ( )
protected

Definition at line 406 of file worlddata.c.

◆ GetDaytime()

int WorldData::GetDaytime ( )
protected

Definition at line 104 of file worlddata.c.

◆ GetDefaultPRAPaths()

TStringArray WorldData::GetDefaultPRAPaths ( )
protected

Definition at line 393 of file worlddata.c.

◆ GetLiquidTypeEnviroTemperature()

float WorldData::GetLiquidTypeEnviroTemperature ( int liquidType)
protected

Definition at line 229 of file worlddata.c.

◆ GetNightTemperature()

float WorldData::GetNightTemperature ( )
protected

Definition at line 411 of file worlddata.c.

◆ GetPollution()

int WorldData::GetPollution ( )
protected

Definition at line 282 of file worlddata.c.

◆ GetTemperature()

float WorldData::GetTemperature ( Object object,
EEnvironmentTemperatureComponent properties = EEnvironmentTemperatureComponent.BASE )
protected

Return actual temperature of environment based on provided parameters.

Parameters
objectReference to object that is used mainly for sea height related calculation
propertiesFlag made of EEnvironmentTemperatureComponent which will influence the resulting value of temperature based on combination of the parts

Definition at line 302 of file worlddata.c.

◆ GetTemperatureComponentValue()

float WorldData::GetTemperatureComponentValue ( float temperatureIn,
EEnvironmentTemperatureComponent properties = 0 )
protected

Return value of queried EEnvironmentTemperatureComponent which can be used in future calculation(s).

Parameters
temperatureBase temperature which will be used in component calculation (currently WIND only)
propertiesFlag made of EEnvironmentTemperatureComponent which will influence the resulting value of temperature based on combination of the parts

Definition at line 327 of file worlddata.c.

◆ GetUniversalTemperatureSourceCapModifier()

float WorldData::GetUniversalTemperatureSourceCapModifier ( )
protected

Definition at line 292 of file worlddata.c.

◆ GetWindCoef()

float WorldData::GetWindCoef ( )
protected

Definition at line 287 of file worlddata.c.

◆ Init()

void WorldData::Init ( )
protected

Definition at line 58 of file worlddata.c.

◆ InitYieldBank()

void WorldData::InitYieldBank ( )
protected

override this to properly register world-specific yields

Definition at line 365 of file worlddata.c.

◆ SetupLiquidTemperatures()

void WorldData::SetupLiquidTemperatures ( )
protected

Definition at line 375 of file worlddata.c.

◆ SetupWeatherSettings()

void WorldData::SetupWeatherSettings ( )
protected

Definition at line 370 of file worlddata.c.

◆ UpdateBaseEnvTemperature()

void WorldData::UpdateBaseEnvTemperature ( float timeslice)
protected

Definition at line 165 of file worlddata.c.

◆ UpdateWeatherEffects()

void WorldData::UpdateWeatherEffects ( Weather weather,
float timeslice )
protected

Updates local weather effects.

Parameters
weatherWeather instance
timesliceTime delta since last update

Definition at line 185 of file worlddata.c.

◆ WeatherOnBeforeChange()

bool WorldData::WeatherOnBeforeChange ( EWeatherPhenomenon type,
float actual,
float change,
float time )
protected

Definition at line 241 of file worlddata.c.

◆ WindEffectTemperatureValue()

float WorldData::WindEffectTemperatureValue ( float temperatureInput)
protected

Definition at line 345 of file worlddata.c.

Member Data Documentation

◆ m_BadWeatherChance

int WorldData::m_BadWeatherChance
protected

weather related

Definition at line 36 of file worlddata.c.

◆ m_Chance

int WorldData::m_Chance = 50
protected

Definition at line 46 of file worlddata.c.

◆ m_ChoosenWeather

int WorldData::m_ChoosenWeather = 1
protected

Definition at line 47 of file worlddata.c.

◆ m_ClearWeatherChance

int WorldData::m_ClearWeatherChance
protected

Definition at line 37 of file worlddata.c.

◆ m_DayTemperature

float WorldData::m_DayTemperature = 10
protected

DEPRECATED

Definition at line 403 of file worlddata.c.

◆ m_DefaultPlayerRestrictedAreas

ref TStringArray WorldData::m_DefaultPlayerRestrictedAreas
protected

Definition at line 33 of file worlddata.c.

◆ m_EnTempUpdated

bool WorldData::m_EnTempUpdated
protected

Definition at line 20 of file worlddata.c.

◆ m_EnvironmentTemperature

float WorldData::m_EnvironmentTemperature
protected

Definition at line 19 of file worlddata.c.

◆ m_FiringPos

ref array<vector> WorldData::m_FiringPos
protected

Definition at line 28 of file worlddata.c.

◆ m_IsSuddenChange

bool WorldData::m_IsSuddenChange
protected

Definition at line 38 of file worlddata.c.

◆ m_LastWeather

int WorldData::m_LastWeather = 0
protected

Definition at line 48 of file worlddata.c.

◆ m_LiquidSettings

ref WorldDataLiquidSettings WorldData::m_LiquidSettings
protected

Definition at line 32 of file worlddata.c.

◆ m_MaxTemps

float WorldData::m_MaxTemps[12]
protected

Definition at line 22 of file worlddata.c.

◆ m_MinTemps

float WorldData::m_MinTemps[12]
protected

Definition at line 23 of file worlddata.c.

◆ m_NightTemperature

float WorldData::m_NightTemperature = 6
protected

Definition at line 404 of file worlddata.c.

◆ m_Pollution

bool WorldData::m_Pollution
protected

Definition at line 29 of file worlddata.c.

◆ m_SameWeatherCnt

int WorldData::m_SameWeatherCnt = 0
protected

Definition at line 44 of file worlddata.c.

◆ m_StepValue

int WorldData::m_StepValue = 5
protected

Definition at line 45 of file worlddata.c.

◆ m_Sunrise_Jan

float WorldData::m_Sunrise_Jan
protected

Definition at line 24 of file worlddata.c.

◆ m_Sunrise_Jul

float WorldData::m_Sunrise_Jul
protected

Definition at line 26 of file worlddata.c.

◆ m_Sunset_Jan

float WorldData::m_Sunset_Jan
protected

Definition at line 25 of file worlddata.c.

◆ m_Sunset_Jul

float WorldData::m_Sunset_Jul
protected

Definition at line 27 of file worlddata.c.

◆ m_Timer

float WorldData::m_Timer
protected

Definition at line 21 of file worlddata.c.

◆ m_UniversalTemperatureSourceCapModifier

float WorldData::m_UniversalTemperatureSourceCapModifier
protected

Definition at line 41 of file worlddata.c.

◆ m_Weather

Weather WorldData::m_Weather
protected

Definition at line 18 of file worlddata.c.

◆ m_WeatherDefaultSettings

ref WorldDataWeatherSettings WorldData::m_WeatherDefaultSettings
protected

Definition at line 31 of file worlddata.c.

◆ m_WorldWindCoef

float WorldData::m_WorldWindCoef
protected

Definition at line 39 of file worlddata.c.

◆ m_YieldBank

ref CatchYieldBank WorldData::m_YieldBank
protected

Definition at line 30 of file worlddata.c.

◆ SUDDENCHANGE_LENGTH_MULTIPLIER

float WorldData::SUDDENCHANGE_LENGTH_MULTIPLIER = 0.4
protected

Definition at line 14 of file worlddata.c.

◆ SUDDENCHANGE_TIME_MULTIPLIER

float WorldData::SUDDENCHANGE_TIME_MULTIPLIER = 0.2
protected

Definition at line 13 of file worlddata.c.

◆ WIND_DIRECTION_TIME_MULTIPLIER

float WorldData::WIND_DIRECTION_TIME_MULTIPLIER = 0.05
protected

Definition at line 16 of file worlddata.c.

◆ WIND_MAGNITUDE_TIME_MULTIPLIER

float WorldData::WIND_MAGNITUDE_TIME_MULTIPLIER = 0.1
protected

Definition at line 15 of file worlddata.c.


The documentation for this class was generated from the following file: