DIFF

class RainProcurementComponentBaseSource

RainProcurementComponentBarrel RainProcurementComponentBase Managed

All members, including inherited

Constructors 1

void RainProcurementComponentBase(ItemBase procuringItem)

Constants 1

protected const int UPDATE_ROOFCHECK_COUNT = 3

do roofcheck every n updates

Referenced by OnUpdate()

Members 5

protected ItemBase m_ProcuringItem
protected bool m_IsUnderRoof
protected bool m_IsActive
Referenced by IsActive(), and SetActive()
protected int m_UpdateCounter
Referenced by OnUpdate(), and Reset()

Methods 9

void StartRainProcurement()

Called on server to queue rain procurement (on next cycle end)

void StopRainProcurement()

Called on server to queue rain procurement removal (on next cycle end)

void OnUpdate(float deltaTime, float amount)
protected void Reset()
References m_UpdateCounter
protected void ProcureLiquid(float amountBase, int liquidType = LIQUID_CLEANWATER)
Referenced by OnUpdate()
protected void UpdateIsUnderRoof()
Referenced by OnUpdate()
float GetBaseLiquidAmount()

override this to get different amount per ProcureLiquid cycle

Referenced by ProcureLiquid()
void SetActive(bool run)
References Reset(), and m_IsActive