DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
RainProcurementHandler Class Reference

Private Member Functions

void RainProcurementHandler (MissionBaseWorld mission)
 
void QueueStart (RainProcurementComponentBase component)
 
void QueueStop (RainProcurementComponentBase component)
 
void Update (float timeslice)
 
protected bool ProcessBatch ()
 returns 'true' when all the batches are finished
 
protected void Cleanup ()
 
protected void Reset ()
 
protected void HandleChangedComponents ()
 
protected void CheckUpdating ()
 
float GetLiquidAmountCoef ()
 
float DetermineAmountCoef ()
 scalable on handler level. Now also handles SNOW, total value can exceed 1.0
 

Private Attributes

protected MissionBaseWorld m_Mission
 
protected ref set< RainProcurementComponentBasem_ActiveComponents
 
protected ref set< RainProcurementComponentBasem_ChangedQueue
 
protected ref set< intm_CleanupQueue
 
protected const int UPDATE_BATCH_SIZE = 20
 
const int UPDATE_TIME = 10
 
protected bool m_Update
 
protected bool m_ProcessComponents
 
protected bool m_ProcessingFinished
 
protected int m_NextToProcessIdx
 
protected float m_UpdateTimer
 
protected float m_LiquidAmountCoef
 

Constructor & Destructor Documentation

◆ RainProcurementHandler()

Member Function Documentation

◆ CheckUpdating()

protected void CheckUpdating ( )
inlineprivate

References m_ActiveComponents, and m_Update.

Referenced by Update().

◆ Cleanup()

protected void Cleanup ( )
inlineprivate

References m_ActiveComponents, and m_CleanupQueue.

Referenced by Update().

◆ DetermineAmountCoef()

float DetermineAmountCoef ( )
inlineprivate

scalable on handler level. Now also handles SNOW, total value can exceed 1.0

References WeatherPhenomenon::GetActual(), GetGame(), Weather::GetRain(), Weather::GetSnowfall(), and CGame::GetWeather().

Referenced by Update().

◆ GetLiquidAmountCoef()

float GetLiquidAmountCoef ( )
inlineprivate

References m_LiquidAmountCoef.

◆ HandleChangedComponents()

protected void HandleChangedComponents ( )
inlineprivate

References component, m_ActiveComponents, and m_ChangedQueue.

Referenced by Update().

◆ ProcessBatch()

protected bool ProcessBatch ( )
inlineprivate

returns 'true' when all the batches are finished

References Math::Clamp(), m_ActiveComponents, m_CleanupQueue, m_LiquidAmountCoef, m_NextToProcessIdx, m_UpdateTimer, and UPDATE_BATCH_SIZE.

Referenced by Update().

◆ QueueStart()

void QueueStart ( RainProcurementComponentBase  component)
inlineprivate

◆ QueueStop()

void QueueStop ( RainProcurementComponentBase  component)
inlineprivate

◆ Reset()

protected void Reset ( )
inlineprivate

◆ Update()

Field Documentation

◆ m_ActiveComponents

◆ m_ChangedQueue

protected ref set<RainProcurementComponentBase> m_ChangedQueue
private

◆ m_CleanupQueue

protected ref set<int> m_CleanupQueue
private

◆ m_LiquidAmountCoef

protected float m_LiquidAmountCoef
private

◆ m_Mission

protected MissionBaseWorld m_Mission
private

Referenced by RainProcurementHandler().

◆ m_NextToProcessIdx

protected int m_NextToProcessIdx
private

◆ m_ProcessComponents

protected bool m_ProcessComponents
private

◆ m_ProcessingFinished

protected bool m_ProcessingFinished
private

◆ m_Update

protected bool m_Update
private

◆ m_UpdateTimer

protected float m_UpdateTimer
private

◆ UPDATE_BATCH_SIZE

protected const int UPDATE_BATCH_SIZE = 20
private

Referenced by ProcessBatch().

◆ UPDATE_TIME

const int UPDATE_TIME = 10
private

Referenced by Update().


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