768 {
770
772
773 if (rain_intensity > 1 || rain_intensity < 0)
774 wetness = 0;
775
776 if (wetness == 0)
778
780
781 if ( rain_intensity > 0 )
782 {
784 SetSynchDirty();
785 }
786
787 for ( int i = 0; i < slots_count; i++ )
788 {
790 {
792
793 if ( slot )
794 {
795 slot.GiveWater( wetness * Math.RandomFloat01() );
796 }
797 }
798 }
799 }
proto native Weather GetWeather()
Returns weather controller object.
ref array< ref Slot > m_Slots
int GetGardenSlotsCount()
static const int CHECK_RAIN_INTERVAL
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native float GetActual()
proto native CGame GetGame()