DIFF

class RainProcurementHandlerSource

RainProcurementHandler Managed

All members, including inherited

Constructors 1

Constants 2

protected const int UPDATE_BATCH_SIZE = 20

Tweak this to adjust max batch size

Referenced by ProcessBatch()
const int UPDATE_TIME = 10

seconds

Referenced by Update()

Members 10

protected MissionBaseWorld m_Mission
protected ref set<RainProcurementComponentBase> m_ActiveComponents
protected ref set<RainProcurementComponentBase> m_ChangedQueue
protected ref set<int> m_CleanupQueue
protected bool m_Update
Referenced by CheckUpdating(), QueueStart(), QueueStop()
Show 2 more, RainProcurementHandler(), and Update()
protected bool m_ProcessComponents
protected bool m_ProcessingFinished
protected int m_NextToProcessIdx
protected float m_UpdateTimer
Referenced by ProcessBatch(), RainProcurementHandler(), Reset()
Show 1 more, Update()
protected float m_LiquidAmountCoef

Methods 10

protected bool ProcessBatch()

returns 'true' when all the batches are finished

Referenced by Update()
protected void Cleanup()
References set.Clear(), set.Count(), set.Remove()
Show 2 more, m_ActiveComponents, and m_CleanupQueue
Referenced by Update()
protected void Reset()
Referenced by Update()
protected void HandleChangedComponents()
Referenced by Update()
protected void CheckUpdating()
Referenced by Update()
float GetLiquidAmountCoef()
float DetermineAmountCoef()

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

Referenced by Update()